我正在使用Em::Blocks进行嵌入式开发。我当前的项目包括程序集文件startup_stm32f429x.S。一切都很好。但是,当我用更新版本startup_stm32f429_439xx.s替换此文件时,我在构建时遇到以下GCC错误:
src\startup_stm32f429_439xx.s|1|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|2|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|3|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|4|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|5|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|6|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|7|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|8|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|9|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|10|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|11|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|12|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|13|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|14|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|15|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|16|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|17|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|18|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|19|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|21|Error: bad instruction `licensed under MCD-ST Liberty SW License Agreement V2,(the "License")'|
src\startup_stm32f429_439xx.s|22|Error: bad instruction `you may not use this file except in compliance with the License.'|
src\startup_stm32f429_439xx.s|23|Error: bad instruction `you may obtain a copy of the License at:'|
src\startup_stm32f429_439xx.s|27|Error: bad instruction `unless required by applicable law or agreed to in writing,software'|
src\startup_stm32f429_439xx.s|28|Error: bad instruction `distributed under the License is distributed on an "AS IS"BASIS,'|
src\startup_stm32f429_439xx.s|29|Error: bad instruction `without WARRANTIES OR CONDITIONS OF ANY KIND,either express or implied.'|
src\startup_stm32f429_439xx.s|30|Error: bad instruction `see the License for the specific language governing permissions and'|
src\startup_stm32f429_439xx.s|31|Error: bad instruction `limitations under the License.'|
src\startup_stm32f429_439xx.s|33|Error: junk at end of line, first unrecognized character is `*'|
src\startup_stm32f429_439xx.s|35|Error: bad instruction `amount of memory(in bytes)allocated for Stack'|
src\startup_stm32f429_439xx.s|36|Error: bad instruction `tailor this value to your application needs'|
src\startup_stm32f429_439xx.s|37|Error: junk at end of line, first unrecognized character is `<'|
src\startup_stm32f429_439xx.s|38|Error: junk at end of line, first unrecognized character is `<'|
src\startup_stm32f429_439xx.s|39|Error: junk at end of line, first unrecognized character is `<'|
src\startup_stm32f429_439xx.s|41|Error: bad instruction `stack_size EQU 0x00000400'|
src\startup_stm32f429_439xx.s|43|Error: bad instruction `area STACK,NOINIT,READWRITE,ALIGN=3'|
src\startup_stm32f429_439xx.s|44|Error: bad instruction `stack_mem SPACE Stack_Size'|
src\startup_stm32f429_439xx.s|45|Error: bad instruction `__initial_sp'|
src\startup_stm32f429_439xx.s|48|Error: junk at end of line, first unrecognized character is `<'|
src\startup_stm32f429_439xx.s|49|Error: junk at end of line, first unrecognized character is `<'|
src\startup_stm32f429_439xx.s|50|Error: junk at end of line, first unrecognized character is `<'|
src\startup_stm32f429_439xx.s|52|Error: bad instruction `heap_size EQU 0x00000200'|
src\startup_stm32f429_439xx.s|54|Error: bad instruction `area HEAP,NOINIT,READWRITE,ALIGN=3'|
src\startup_stm32f429_439xx.s|55|Error: bad instruction `__heap_base'|
src\startup_stm32f429_439xx.s|56|Error: bad instruction `heap_mem SPACE Heap_Size'|
src\startup_stm32f429_439xx.s|57|Error: bad instruction `__heap_limit'|
src\startup_stm32f429_439xx.s|59|Error: bad instruction `preserve8'|
src\startup_stm32f429_439xx.s|60|Error: bad instruction `thumb'|
src\startup_stm32f429_439xx.s|63|Error: bad instruction `vector Table Mapped to Address 0 at Reset'|
src\startup_stm32f429_439xx.s|64|Error: bad instruction `area RESET,DATA,READONLY'|
src\startup_stm32f429_439xx.s|65|Error: bad instruction `export __Vectors'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings (0 minutes, 3 seconds) ===|
在我看来,Em :: Blocks以某种方式将我的文件解释为C源文件,尽管它已正确命名。 (.s-suffix代表“汇编源文件,据我所知,它不需要预处理。)
有谁知道如何解决此问题?我没有找到任何手动设置文件语言的选项。