ST意法半导体
直播中

刘军

7年用户 1361经验值
私信 关注
[问答]

自定义链接器无法编译的原因?怎么处理?

我试图在 RAM 中为模拟的 eeprom 保留空间。我可以很好地读写,但是当我尝试修改链接器时它不会编译。
添加的用户部分
  • /* Specify the memory areas */
  • MEMORY
  • {
  •   FLASH (rx)      : ORIGIN = 0x08000000, LENGTH = 96K
  •   USER_DATA (rwx) : ORIGIN = ORIGIN(FLASH) + LENGTH(FLASH)‬‬, LENGTH = 32K
  •   RAM (xrw)       : ORIGIN = 0x20000000, LENGTH = 8K
  •   MEMORY_B1 (rx)  : ORIGIN = 0x60000000, LENGTH = 0K
  • }

Howerver 在尝试编译时在链接描述文件的新部分的行中显示“无效字符”:
c:stSTM32cubeide_1.3.0stm32cubeidepluginscom.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610toolsarm -none-eabibinld.exe :../stm32_flash.ld:48: 忽略表达式中的无效字符“342”
c:ststm32cubeide_1.3.0stm32cubeidepluginscom.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610toolsarm -none-eabibinld.exe :../stm32_flash.ld:48: 忽略表达式中的无效字符“200”
尝试打开 c:/st/stm32cubeide_1.3.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610/ tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7-mlibm.a 失败
c:ststm32cubeide_1.3.0stm32cubeidepluginscom.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610toolsarm -none-eabibinld.exe :../stm32_flash.ld:48: 忽略表达式中的无效字符“254”
c:ststm32cubeide_1.3.0stm32cubeidepluginscom.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610toolsarm -none-eabibinld.exe :../stm32_flash.ld:48: 忽略表达式中的无效字符“342”
c:ststm32cubeide_1.3.0stm32cubeidepluginscom.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610toolsarm -none-eabibinld.exe :../stm32_flash.ld:48: 忽略表达式中的无效字符“200”








回帖(1)

李萌

2023-2-7 10:41:17
你的脚本中有 unicode 字符,它们应该是严格的 ASCII。
删除它抱怨的行并在键盘上重新键入。不要粘贴复制。
举报

更多回帖

发帖
×
20
完善资料,
赚取积分