[super detailed tutorial] porting RT thread nano to GD32F10x series
preparation
Download the RT thread nano source code: https://github.com/RT-Thread/rtthread-nano/archive/refs/heads/master.zip. The latest version is 3.15 (written on March 1, 2022)New bare metal Keil project of GD32F10x series This article has been described very clearly, so I won't repeat it. Of course, you can find a keil project that can r ...
Added by echox on Sun, 06 Mar 2022 10:26:30 +0200
[013] [RT thread learning notes] dynamic memory heap management
RT thread version: 4.0.5 MCU model: STM32F103RCT6 (ARM Cortex-M3 core)
introduction
stay Program memory distribution It is explained that the space from the end address of ZI segment to the tail of RAM memory is RTT dynamic memory heap. This paper mainly describes the RT thread dynamic memory heap management algorithm, analyzes the ...
Added by andreiga on Fri, 11 Feb 2022 08:31:16 +0200
Detailed explanation and application of [005] [RT-Thread learning notes] semaphore
RT-Thread version: 4.0.5 MCU model: STM32F103RCT6 (ARM Cortex-M3 kernel)
1 Synchronization and Mutual Exclusion
First add a few concepts:
Execution Unit: Determined by the current hardware platform and the operating system it runs. For RT-Thread and STM32, the execution units are threads and interruptsCritical Zone: Multiple execut ...
Added by mcollyns on Sat, 05 Feb 2022 20:24:58 +0200
[RTT] SPI Flash and file system: DFS and EasyFlash
Reference documents (domestic): DFS reference documentation Reference documents (domestic): EasyFlash reference documentation
1, DFS overview
DFS is a virtual file system component provided by RT thread. Its full name is Device File System, that is, device virtual file system. for detailed description, please refer ...
Added by fleabay on Fri, 21 Jan 2022 09:48:07 +0200
[RT thread kernel details series] implementation of priority based full preemptive scheduling algorithm
The unexamined life is not worth living. Life without examination is not worth living. – Socrates
1, Principle overview
RT thread is not only an embedded real-time operating system (RTOS), but also an excellent Internet of things operating system. Compared with the bare metal polling scheduling algorithm, its thread (task) scheduling ...
Added by po on Sat, 08 Jan 2022 18:42:17 +0200
Rt-threadSource Analysis Paper 14: rt_system_signal_init function analysis
1. rt_system_signal_init source
int rt_system_signal_init(void)
{
_rt_siginfo_pool = rt_mp_create("signal", RT_SIG_INFO_MAX, sizeof(struct siginfo_node));
if (_rt_siginfo_pool == RT_NULL)
{
dbg_log(DBG_ERROR, "create memory pool for signal info failed.\n");
RT_ASSERT(0);
}
return 0;
}
2. rt_system_signal_ ...
Added by teanza on Mon, 06 Sep 2021 19:09:59 +0300