![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
RTOS
文章平均质量分 58
田园诗人之园
我是一位平凡的诗人,也是一位平凡的工程师。
展开
-
nuttx app添加自己的小应用程序
nuttx想要添加自己写的一些小应用非常方便,具体的步骤如下:1,在apps/examples/目录下添加自己的目录。2,添加Kconfig, Makefile, Make.defs, 以及应用的源文件。3,通过build.sh menuconfig去选择自己添加的app即可。4,将编译好的版本下载到板子中,在nuttx shell试图下执行?回车即可看到自己添加的小应用。在shell下输入自己添加的小应用的名字回车既可运行程序。首先我们如果想添加一些自己的小程序需要在apps/examples/原创 2020-06-25 10:31:50 · 1088 阅读 · 0 评论 -
nuttx link script
1, .text, .bss, .data, .rodata, stack and heap.text code.data global and static init variable, 即占文件空间,又占用运行时内存空间的.bss uninit global and static variable只占运行时的内存空间,而不占文件空间.rodata const dataStack local variable and paramHeap malloc2,MEMORY{ flash原创 2020-06-11 08:39:06 · 307 阅读 · 0 评论 -
nuttx enter_critical_section
When we call a function like nxsig_timeout, it will first call the funtion enter_critical_section, then callup_unblock_task, but up_unblock_task will triger a ecall irq, After finish it’s handlation, will callleave_critical_section leave the function nxs原创 2020-06-09 20:21:15 · 398 阅读 · 0 评论 -
nuttx watchdog理解
首先是wd_start函数,调用该函数是为了设置一个watchdog定时器。/**************************************************************************** * Public Functions ****************************************************************************//**************************************原创 2020-06-20 00:57:20 · 880 阅读 · 0 评论 -
Threadx-Priority Inheritance
In priority inheritance, a lower-priority thread temporarily acquires the priority of ahigher-priority thread that is attempting to obtain the same mutex owned by the lowerpriority thread.When the ...原创 2019-08-27 22:11:06 · 251 阅读 · 0 评论 -
Threadx-ARM EXCEPTION HANDLING
IntroductionAn exception is an asynchronous event or error condition that disrupts the normal flowof thread processing. Usually, an exception must be handled immediately, and then controlis returne...原创 2019-08-22 17:01:20 · 856 阅读 · 2 评论 -
Threadx-Deadly Embrace
One of the potential pitfalls in using mutexes is the so-called deadly embrace. This is anundesirable situation in which two or more threads become suspended indefinitely whileattempting to get mute...原创 2019-08-22 14:16:30 · 207 阅读 · 0 评论 -
Threadx-Priority Inversion
Undesirable situations can occur when two threads with different priorities share a commonresource. Priority inversion is one such situation; it arises when a higher-prioritythread is suspended beca...原创 2019-08-21 17:28:27 · 185 阅读 · 0 评论 -
Threadx-Round-Robin Scheduling
The term round-robin scheduling refers to a scheduling algorithm designed to provideprocessor sharing in the case in which multiple threads have the same priority. There aretwo primary ways to achie...原创 2019-08-21 17:19:13 · 514 阅读 · 0 评论 -
Threadx-Comparison of a mutex with a counting semaphore
A counting semaphore resembles a mutex in several respects, but there are differences, aswell as reasons to use one resource over the other.A mutex is exceptionally robust in providing mutual exclu...原创 2019-08-21 14:23:33 · 149 阅读 · 0 评论 -
Real-Time Embedded Multithreading--Using ThreadX & ARM-INTERNAL SYSTEM CLOCK AND APPLICATION TIMERS
If you want to get the book of Real-Time Embedded Multithreading–Using ThreadX please click the below link, https://download.csdn.net/download/u014100559/11583651Internal System Clock ServicesThread...原创 2019-08-20 17:18:11 · 508 阅读 · 0 评论 -
Real-Time Embedded Multithreading--Using ThreadX & ARM-MEMORY MANAGEMENT: Block Pools
Summary of Memory Block PoolsAllocating memory in a fast and deterministic manner is essential in real-time applications.This is made possible by creating and managing multiple pools of fixed-size m...原创 2019-08-19 17:29:22 · 442 阅读 · 1 评论 -
Real-Time Embedded Multithreading--Using ThreadX & ARM-MEMORY MANAGEMENT: BYTE POOLS
This is the learn of Real-Time Embedded Multithreading–Using ThreadX & ARM-MEMORY MANAGEMENT: BYTE POOLS AND BLOCK POOLS.IntroductionRecall that we used arrays for the thread stacks in the previ...原创 2019-08-19 14:54:27 · 566 阅读 · 0 评论