RT-Thread Nano移植

参考:RT-Thread Nano移植 http://www.stmcu.org.cn/module/forum/thread-618970-1-1.html

RT_Thread移植:在MDK下以组件形式提供

https://pan.baidu.com/s/1miac86O#list/path=%2Fsharelink4264488348-377157516700337%2F%E5%BC%80%E5%8F%91%E6%9D%BF%E4%BE%8B%E7%A8%8B%2F%E6%AD%A3%E7%82%B9%E5%8E%9F%E5%AD%90%2F%E6%AD%A3%E7%82%B9%E5%8E%9F%E5%AD%90RT-Thread%E4%BE%8B%E7%A8%8B%E5%92%8Cquickstart%E6%95%99%E7%A8%8B%2Fquick%20start%E4%BE%8B%E7%A8%8B&parentPath=%2Fsharelink4264488348-377157516700337.

通常STM32的各型号芯片,在RT-Thread上只需要在board.h中更改下不同的SRAM大小就可以把Kernel + shell跑起来

1RT-Thread Pack的安装地址 。https://www.rt-thread.org/download/mdk/      

2移植方面:

2.0:Manage Run-Time-Environment 添加RT Thread Nano RTOS到工程里

2.1将stm32xx_it.c中的以下三个函数注释掉,并配置 SysTick_Handler

    //void HardFault_Handler(void)
    //void PendSV_Handler(void)
    //void SysTick_Handler(void)

2.2 将 然后把main.c里注释掉的系统初始化,都添加到void rt_hw_board_init()函数里;//然后需要在board.c 如果用hal库 #include "stm32g0xx_hal.h";

2.3 rtconfig.h中配置时钟节拍、堆栈,控制台输出需要的串口等

3 启动流程分析:

 

posted on 2019-04-16 14:09  杰瑞鼠  阅读(976)  评论(0编辑  收藏  举报