IAR for ARM 工程模版不相容修改方法

2021-08-06 03:11:16 字數 1676 閱讀 2128

本文章是基於最新版iar for arm v8.10的,但是對於低版本步驟大同小異也可參考本文

一.fatal error[pe1696]: cannot open source file "core_cm3.h" 

解決辦法:1.remove 工程中的「core_cm3.c」,並且點到workspace最上層的project -***處

2.project->option->general option->library configration->勾上右下角的use cmsis

3.點ok再make一下,這裡就不會再報錯了。

二. warning[25]: label '***xx' is defined pubweak in a section implicitly declared root

例如:warning[25]: label 'reset_handler' is defined pubweak in a section implicitly declared root c:\users\administrator\desktop\stm32f10x 工程模板-iar\libraries\cmsis\cm3\devicesupport\st\stm32f10x\startup\iar\startup_stm32f10x_md_vl.s 137 

warning[25]: label 'nmi_handler' is defined pubweak in a section implicitly declared root c:\users\administrator\desktop\stm32f10x 工程模板-iar\libraries\cmsis\cm3\devicesupport\st\stm32f10x\startup\iar\startup_stm32f10x_md_vl.s 145 

warning[25]: label 'hardfault_handler' is defined pubweak in a section implicitly declared root c:\users\administrator\desktop\stm32f10x 工程模板-iar\libraries\cmsis\cm3\devicesupport\st\stm32f10x\startup\iar\startup_stm32f10x_md_vl.s 150 

解決辦法:1.找到工程資料夾中的startup_stm32f10x_md_vl.s並開啟(不同晶元此處的.s檔案不同,按照報錯提示開啟相應檔案)

2.在所有section .text:code:reorder(1)的「reorder」和「(1)"之間加入」noboot「,如圖:

全部修改完成後make一下這個warning就沒了。

大致會碰到上述兩個主要版本相容問題。還有就是標頭檔案路徑別忘新增,否則也會報錯,諸如:fatal error[pe1696]: cannot open source file "***.h",標頭檔案新增方法網上很好找

。以下是我自用的工程模板:

微軟Office 2007與OOXML不相容

4月21 日,peter judge 在cnet 上發表乙份特稿 special 宣稱 由微軟 office 2007 所生成的電子文件沒有通過 ooxml 相容性測試 這給微軟出了乙個小難題。情況是怎樣的呢?國際標準組織 iso 新近任命 alex brown 負責ooxml 標準的維護工作。注 ...

eclipse 不編譯工程

網摘 eclipse出現不編譯工程的現象。怎麼重新整理classes目錄下也是空的.具體都操作了 開啟project build automatically 試後不行,還是不編譯.開啟project build automatically 另外 clean一下就可能會編譯了,結果還不行.eclips...

easyui form與360瀏覽器的不相容性

之前的系統主要用firefox進行前台測試,偶爾用ie 搜狗,360測試一下,感覺功能一切都正常。結果這幾天給深圳的員工使用時,發現他們都是登入不上,登入時用的是easyui的form控制項,結果一直顯示登入中。我這邊用ff測試過一直都沒問題,發現對方用的是360瀏覽器,結果我也用了乙個360,果然...