keil在编译时报错,出现这样的错误
..\OBJ\OLED.sct(7): error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.
还出现了这样的
```c
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x08001000 0x00011000 { ; load region size_region
ER_IROM1 0x08001000 0x00011000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x20000000 0x00010000 { ; RW data
.ANY (+RW +ZI)
}
}
-
改了好多次,试了很多方法也没成功,请问怎么办?
用的是STM32F103C8T6
贴出你的项目文件列表看看,有时候可能把多个类型的处理器对应的的startup_xxx.s文件放到了项目里。需要找到和你使用的处理器型号对应的文件,其它的s文件都删掉,或者把include in build的勾勾去掉。
https://blog.csdn.net/weixin_45865666/article/details/123895049
startup_stm32f10x_md.s 重复添加了