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



原文:http://www.cnblogs.com/wellrun/archive/2011/03/21/1990074.html

編譯環境: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’兩項。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章