Debugging dynamic library in MCUxpresso RT1052

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Debugging dynamic library in MCUxpresso RT1052

1,102件の閲覧回数
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,085件の閲覧回数
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 件の賞賛
返信