2025-11-27 7:06 PM - last edited on 2025-11-28 1:49 AM by mƎALLEm
Edited by a ST moderator. In next time please use English language.
|
在STM32CUBEIDE中配置STM32F103C4完以后直接编译出现《没有 “huart2() at 0x20000108” 对应的源文件》不知道该如何把huart导入到编译器的路径下 |
Translation: After configuring the STM32F103C4 in STM32CUBEIDE, I encountered the error "No source file corresponding to 'huart2() at 0x20000108'" during compilation. I don't know how to import the huart2() file into the compiler's path.
2025-11-28 9:45 AM
Hello @LEGENDTU and welcome to ST community.
It seems the debug symbols are empty in your case. Are you using "Release" in debug settings?
If it is the case, you should use "Debug" instead.
2025-11-28 9:49 AM
"huart2()" suggests that it's trying to treat your UART handle as a function?
2025-11-28 8:59 PM - edited 2025-11-29 3:47 AM
It's pointing to RAM.
You show no code or usage detail.
Present the problem in a fashion that might be understood or diagnosed.
2025-11-29 1:35 AM
@Tesla DeLorean wrote:It's pointing to RAM.
Which is where you'd expect a UART handle to be.
@LEGENDTU perhaps try searching your code for any instance of "huart2()" ...