[M252] RT-Thread Nano Porting

, Nov 04, 2024|
0
127
0
  • Application: This example, based on the GPIO_OutputInput demo in BSP, shows how to port RT-Thread Nano and create 2 threads.
  • BSP Version: M251_M252_M254_M256_M258_Series_BSP_CMSIS_V3.02.006
  • Hardware: NuMaker-M252SD V1.2


This example, based on the GPIO_OutputInput demo in BSP, shows how to port RT-Thread Nano and create 2 threads. Thread 1 can control LED flashing every 500 ms through GPIO. Thread 2 alternately prints the words "Hello" and "World" every 1000 ms through UART.


RT-Thread Nano is a refined hard real-time kernel designed for systems with limited memory resources. It includes functions such as thread management, inter-thread synchronization and communication, clock management, interrupt management, and memory management, which make RT-Thread Nano ideal for embedded systems requiring high-performance real-time control. It supports a variety of CPU architectures, including Arm Cortex M0/M23/M3/M4/M7 and RISC-V, and requires minimal memory resources, with a minimum of 3 KB Flash and 1.2 KB RAM.


This example is based on the M252SD2AE microcontroller, which includes 64 KB Flash and 12 KB RAM, and shows how to port the RT-Thread Nano and create 2 threads.


You can download the sample code at https://www.nuvoton.com/resource-download.jsp?tp_GUID=EC012024102310122021