Test: (see tests/testcases/rpmsgdev for details) # 1. Register dummy device testdev -d 0 -r "/dev/ttyGNSS0" # 2. Call rpmsgdev_export() to export the device to remote testdev -d 2 -c "droid" -l "/dev/ttyGNSS0" Log: [ap] arm_busfault: PANIC!!! Bus Fault: [ap] arm_busfault: IRQ: 5 regs: 0x3c434e44 [ap] arm_busfault: BASEPRI: 00000000 PRIMASK: 00000000 IPSR: 00000005 CONTROL: 00000004 [ap] arm_busfault: CFSR: 00008200 HFSR: 00000000 DFSR: 00000000 BFAR: 00000000 AFSR: 00040000 [ap] arm_busfault: Bus Fault Reason: [ap] arm_busfault: Precise data bus error [ap] dump_assert_info: Current Version: NuttX ****** ***** *** 12.3.0 ********** Sep 23 2024 18:35:50 arm [ap] dump_assert_info: Assertion failed panic: at file: armv8-m/arm_busfault.c:113 task: testdev process: testdev 0x2c86ca75 Backtrace: backtrace_unwind /workspace/nuttx/arch/arm/src/common/arm_backtrace_unwind.c:632 sched_backtrace /workspace/nuttx/sched/sched/sched_backtrace.c:105 sched_dumpstack /workspace/nuttx/libs/libc/sched/sched_dumpstack.c:69 dump_running_task /workspace/nuttx/sched/misc/assert.c:629 arm_busfault /workspace/nuttx/arch/arm/src/armv8-m/arm_busfault.c:113 irq_dispatch /workspace/nuttx/sched/irq/irq_dispatch.c:142 arm_doirq /workspace/nuttx/arch/arm/src/armv8-m/arm_doirq.c:95 strcmp /workspace/nuttx/libs/libc/machine/arm/armv8-m/gnu/arch_strcmp.S:107 rpmsgdev_server_created /workspace/nuttx/drivers/misc/rpmsgdev_server.c:520 (discriminator 1) rpmsg_register_callback /workspace/nuttx/drivers/rpmsg/rpmsg.c:245 rpmsgdev_export /workspace/nuttx/drivers/misc/rpmsgdev_server.c:552 _register_driver /workspace/tests/testcases/rpmsgdev/testdev.c:216 nxtask_startup /workspace/nuttx/libs/libc/sched/task_startup.c:70 nxtask_start /workspace/nuttx/sched/task/task_start.c:114 Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com> |
||
|---|---|---|
| .github | ||
| arch | ||
| audio | ||
| binfmt | ||
| boards | ||
| cmake | ||
| crypto | ||
| Documentation | ||
| drivers | ||
| dummy | ||
| fs | ||
| graphics | ||
| include | ||
| libs | ||
| mm | ||
| net | ||
| openamp | ||
| pass1 | ||
| sched | ||
| syscall | ||
| tools | ||
| video | ||
| wireless | ||
| .asf.yaml | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| .yamllint | ||
| AUTHORS | ||
| CMakeLists.txt | ||
| CONTRIBUTING.md | ||
| INVIOLABLES.md | ||
| Kconfig | ||
| LICENSE | ||
| Makefile | ||
| NOTICE | ||
| README.md | ||
| ReleaseNotes | ||
Apache NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOSs (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).
For brevity, many parts of the documentation will refer to Apache NuttX as simply NuttX.
Getting Started
First time on NuttX? Read the Getting Started guide! If you don't have a board available, NuttX has its own simulator that you can run on terminal.
Documentation
You can find the current NuttX documentation on the Documentation Page.
Alternatively, you can build the documentation yourself by following the Documentation Build Instructions.
The old NuttX documentation is still available in the Apache wiki.
Supported Boards
NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.
Contributing
If you wish to contribute to the NuttX project, read the Contributing guidelines for information on Git usage, coding standard, workflow and the NuttX principles.
License
The code in this repository is under either the Apache 2 license, or a license compatible with the Apache 2 license. See the License Page for more information.