HOWTO: debug multi-core project in S32 Design studio

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

HOWTO: debug multi-core project in S32 Design studio

HOWTO: debug multi-core project in S32 Design studio

Build your project and choose Debug Configuration option 

pastedImage_2.png

On the left side select Launch Group of your choice (Flash/RAM) and press Debug button

s32ds_2017-09-21_11-33-28.png

Wait while debug session is fully started. If you left default startup configuration - all cores has active break-point at the beginning of main() function. You can chose any core for debugging just by clicking on the core's thread. Sometimes are init functions - including startup of other cores - inside main() of boot core (for S32R274 is boot core Z4). In this case you should let boot core perform init sequence first and then try debug other cores. On next picture are all cores halted. 

s32ds_2017-09-21_11-35-49.png

On this picture are core 1 (Z4) and 2 (Z7_0) running - and third one is stopped. You can perform any debug operation on this core (memory/registers view, instruction step...) without effect on other cores. 

s32ds_2017-09-21_11-36-17.png

On the last picture are running cores 1 (Z4) and 3 (Z7_1) and second core (Z7_0) is stopped and any debug operation can be performed on this core. 

s32ds_2017-09-21_11-36-58.png

评论

Hey Jiri,

What debug configurations have you used for this sample project?

I am getting following error: 

Error in services launch sequence.
PEmicro GDB Launch Failure : The GDB Server was not able to establish a connection to the target processor. Please check your connections and power. Verify that the launch settings in the Debug Configuration are accurate.

I have checked and made sure that it is not a hardware issue. I am not able to establish a connection with the target processor. I wantd to know what are the GDB run parameters that you are giving.

Thanks,

Su

无评分
版本历史
最后更新:
‎09-21-2017 02:58 AM
更新人: