Apache NuttX is a mature, real-time embedded operating system (RTOS)
Go to file
yinshengkai ad76a4f7a9 libcxxabi: libcxxabi enables exceptions by default
In the following code, even though the application does not use exceptions, an exception is still thrown in libcxx

If libcxxabi is not enabled, the toolchain default implementation will be used. However, arm-gcc does not enable thread
support by default, which will cause errors in a multi-threaded environment.

Therefore, we need to use libcxxabi to ensure normal functions in a multi-threaded environment.

using namespace std;

void foo(bool recur);
int bar(bool recur)
{
  if (recur) {
      foo(false);
  }
  return 0xFAFAFA;
}

void foo(bool recur)
{
  static int i = bar(recur);
  cout << "Static is:" << i << "\n";
}

int main(int argc, char *argv[])
{
  foo(true);
  return 0;
}

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-09-06 09:52:33 +08:00
.github tools/ci/docker/linux/Dockerfile: Restarting the Docker-Linux workflow a new attempt 2024-09-02 14:11:51 -04:00
Documentation xtensa/esp32s2: add WiFi support on ESP32S2 2024-09-06 09:46:59 +08:00
arch xtensa/esp32s2: add WiFi support on ESP32S2 2024-09-06 09:46:59 +08:00
audio nuttx/audio: Add amr and opus format control switches 2024-08-23 08:57:00 +08:00
binfmt nuttx: resolve various 'FAR' and 'CODE' issues 2024-08-26 10:21:03 +08:00
boards xtensa/esp32s2: add WiFi support on ESP32S2 2024-09-06 09:46:59 +08:00
cmake cmake/nuttx_kconfig.cmake: fixed the correct .config path in the build folder 2024-08-30 23:47:11 +08:00
crypto crypto: export interfaces abort aes-cmac 2024-08-27 07:44:06 -04:00
drivers sched: replace up_cpu_index with this_cpu 2024-09-05 12:09:24 +08:00
dummy
fs sched: use this_task replace nxsched_self 2024-09-05 09:33:50 -03:00
graphics nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
include sched: change pthread_mutex implementation from sem to mutex 2024-09-06 09:42:53 +08:00
libs libcxxabi: libcxxabi enables exceptions by default 2024-09-06 09:52:33 +08:00
mm sched: use this_task replace nxsched_self 2024-09-05 09:33:50 -03:00
net can: Before we use pstate, we should check if it is NULL. 2024-09-05 21:25:22 +08:00
openamp nuttx/atomic.h:replace ALL stdatomic.h with nuttx/stdatomic.h in nuttx/ 2024-08-22 01:44:29 +08:00
pass1
sched sched: change pthread_mutex implementation from sem to mutex 2024-09-06 09:42:53 +08:00
syscall nuttx/syscall: delete getrandom in syscall.csv 2024-08-27 21:44:33 +08:00
tools ci-docker: add subversion to linux dockerfile 2024-09-05 21:25:46 +08:00
video
wireless nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
.asf.yaml
.gitignore boards/sim: Defconfigs for nand and mnemofs 2024-09-05 11:02:05 +08:00
.pre-commit-config.yaml Created pre-commit config file 2024-08-19 21:40:56 +02:00
.yamllint
AUTHORS
CMakeLists.txt CMake: fix CMake compile errors during the protected build mode 2024-08-29 01:59:29 +08:00
CONTRIBUTING.md
INVIOLABLES.md
Kconfig make/disassembly: generate disassembly file 2024-08-16 15:22:25 +08:00
LICENSE libc/x86_64: port string functions from bionic 2024-07-02 23:59:18 +08:00
Makefile
NOTICE
README.md Gathering community recommendations 2023-10-28 13:55:56 +08:00
ReleaseNotes

README.md

POSIX Badge License Issues Tracking Badge Contributors GitHub Build Badge Documentation Badge

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.