调试遇到这个问题Break at address "" with no debug information available, or outside of program cod

编程入门 行业动态 更新时间:2024-10-25 09:40:47

I encountered the same issue when using j-link to debug my Board(STM32F407ZG), after changing the startup_stm32f407xx.s into startup_stm32f407xx.S(with uppercase 's' ), the problem disappeared. The reason might be gcc handles .s and .S in different ways

Change your startup_xx.s file suffix to uppercase.

 

Although the assembler can be invoked directly, assembly files are more typically passed through gcc. The case of the assembly
file’s suffix (.s versus .S) is important. If gcc is invoked with an uppercase assembly file suffix (.S) it is passed first to the
preprocessor whereas a lowercase file suffix (.s) passes goes directly to the assembler.

---



Please note that GCC treats files with the suffixes ".s" and ".S"
differently: the preprocessor is run on files with the ".S" (capital s)
suffix, not on the ones with the ".s" suffix.



---
 

file.s


Assembler code. Apple's version of GCC runs the preprocessor
on these files as well as those ending in `.S'. 


 

file.S

Assembler code which must be preprocessed.

更多推荐

调试遇到这个问题Break at address "" with no debug information available, or ou

本文发布于:2023-06-14 03:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1434083.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:这个问题   address   Break   quot   code

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!