HOWTO: debug multi-core project in S32 Design studio

cancel
Showing results for 
Search instead for 
Did you mean: 

HOWTO: debug multi-core project in S32 Design studio

No ratings

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

Comments

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

Version history
Revision #:
1 of 1
Last update:
‎09-21-2017 02:58 AM
Updated by: