stm32移植注意:
工程配置中,記得加入include paths,debug按所使用編譯器選取對應下載器,Utilities下記得也要選取對應下載器。
工程建立後編譯錯誤:STM32-uCOSii.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.
參照這裏 http://blog.csdn.net/penglijiang/article/details/6564546解決問題
Options for Target ' xxxx ',裏面的Linker選項下面:
1、去掉勾選 Use Memory Layout from Target Dialog
2、清空 Acatter File裏面的內容
點確定,okay了
還有編譯時出現
D:/Keil/ARM/INC/ST/STM32F10x/stm32f10x_type.h(23): error: #256: invalid redeclaration of type name "s32" (declared at line 470 of "..\src\CMSIS\stm32f10x.h") 錯誤,按網上的說法,修改include paths
http://blog.csdn.net/iceiilin/article/details/6100494
弄了好久不行,最後刪除工程,重新建立工程,組織目錄結構如下,問題解決,具體怎麼回事還不清楚