简体   繁体   中英

Debugging a composed project on STMcubeIDE

Briefly, I am trying to debug a project of 2 subprojects, one of them needs to be uploaded to the board first, but in this case, I can not follow the debugging through the source code of the uploaded project.
I am trying to debug a module and a module project of ThreadX through STMcubeIDE, the structure of the project is as follows:
Parent project which includes Module project and ModuleManager project,
I can debug it through the ModuleManager, however, I would like to follow the source code of the Module while debugging.
The problem: the Module should be uploaded to the board before uploading and debugging through the ModuleManager

Debugging a module is dependent on the debugger you are using. You need to load debug symbols for both the module and manager. I recommend building the module at a specific code address and using the in_place_load function to load the module, that way the debugger can resolve the code addresses. Your debugger will not likely be able to resolve data addresses because data is relocatable/relative.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM