Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KEIL AC6编译报错 #72

Open
kuhetingyu opened this issue Jun 1, 2023 · 4 comments
Open

KEIL AC6编译报错 #72

kuhetingyu opened this issue Jun 1, 2023 · 4 comments

Comments

@kuhetingyu
Copy link

./components/cm_backtrace\cm_backtrace.h(32): warning: In file included from...
./components/cm_backtrace/cmb_def.h(364): error: function definition is not allowed here
attribute( (always_inline) ) static __inline uint32_t cmb_get_msp(void) {
^
./components/cm_backtrace/cmb_def.h(369): error: function definition is not allowed here
attribute( (always_inline) ) static __inline uint32_t cmb_get_psp(void) {
^
./components/cm_backtrace/cmb_def.h(374): error: function definition is not allowed here
attribute( (always_inline) ) static __inline uint32_t cmb_get_sp(void) {

@kuhetingyu
Copy link
Author

Error: L6218E: Undefined symbol Image$$ER_IROM1$$Base (referred from cm_backtrace.o).
Error: L6218E: Undefined symbol Image$$ER_IROM1$$Limit (referred from cm_backtrace.o).
Warning: L6330W: Undefined symbol STACK$$Base (referred from cm_backtrace.o). Unused section has been removed.
Warning: L6330W: Undefined symbol STACK$$Limit (referred from cm_backtrace.o). Unused section has been removed.

@cunyu-wxy
Copy link

Error: L6218E: Undefined symbol Image$$ER_IROM1$$Base (referred from cm_backtrace.o). Error: L6218E: Undefined symbol Image$$ER_IROM1$$Limit (referred from cm_backtrace.o). Warning: L6330W: Undefined symbol STACK$$Base (referred from cm_backtrace.o). Unused section has been removed. Warning: L6330W: Undefined symbol STACK$$Limit (referred from cm_backtrace.o). Unused section has been removed.

https://my.oschina.net/u/4428324/blog/4623734
reset your "stack" begin name and "Irom1" name in def.h,it's from your mcu's start file and your scf file

@wdfk-prog
Copy link

Error: L6218E: Undefined symbol Image$$ER_IROM1$$Base (referred from cm_backtrace.o). Error: L6218E: Undefined symbol Image$$ER_IROM1$$Limit (referred from cm_backtrace.o). Warning: L6330W: Undefined symbol STACK$$Base (referred from cm_backtrace.o). Unused section has been removed. Warning: L6330W: Undefined symbol STACK$$Limit (referred from cm_backtrace.o). Unused section has been removed.

链接文件没有定义这几个地址

@cunyu-wxy
Copy link

Error: L6218E: Undefined symbol Image$$ER_IROM1$$Base (referred from cm_backtrace.o). Error: L6218E: Undefined symbol Image$$ER_IROM1$$Limit (referred from cm_backtrace.o). Warning: L6330W: Undefined symbol STACK$$Base (referred from cm_backtrace.o). Unused section has been removed. Warning: L6330W: Undefined symbol STACK$$Limit (referred from cm_backtrace.o). Unused section has been removed.

链接文件没有定义这几个地址

意思是那个配置文件.h的那个默认的STACK和IROM你要按照你自己的项目的.s文件的启动stack名和rom名来替换
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants