error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.


編譯環境:RVMDK

CPU :STM32F103VC

錯誤:.\obj\movSERVO.sct(7): error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.

原因:項目中同時包含以下啟動文件,

   startup_stm32f10x_hd.s

        startup_stm32f10x_md.s

        startup_stm32f10x_ld.s

     ......

        應該針對不同的CPU選擇不同的啟動文件。

解決辦法1:從項目中刪除不相關的啟動文件

解決辦法2:右擊不相關的啟動文件,點擊 options for file 'startup_stm32f10x_md.s'...

                在彈出的對話框中的properties頁,勾去灰化的'Include in Target Build'和‘Always Build’兩項。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM