Debugging dynamic library in MCUxpresso RT1052

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Debugging dynamic library in MCUxpresso RT1052

1,103 次查看
VeselinK
Contributor I

Hello NXP team,

We are looking for a way to debug dynamic libraries which are built separately from the main project and are sent to the IMX via SPI at runtime. The libraries are used for calculations and are changed depending on the situation. The libraries and main project are all built with "-g" compiler flag. I have tried some GDB commands to load symbols and source files, but I can't get it working. Is there some way to debug these libraries? An example or a good guide would help immensely. 

Best Regards,

Ves

标签 (1)
0 项奖励
回复
1 回复

1,086 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @VeselinK ,

There isn't any guide or example can meet your request. The only tradeoff way I can think of is connecting to a running target. Please see 11.3.2 in MCUXresso IDE user guide. After you downloading the library, let main project call the library function and stay there. Then debug your library project by attach only.

 

Regards,

Jing

0 项奖励
回复