GHS toolchain project in debug configuration

cancel
Showing results for 
Search instead for 
Did you mean: 

GHS toolchain project in debug configuration

413 Views
leekate-b45752
NXP Employee
NXP Employee

Hello, 

Could you help to add the GHS toolchain project in debug configuration?

Create a project as below. 

pastedImage_2.png

pastedImage_3.png

pastedImage_4.png

pastedImage_5.png

There is no Native information tab, so configured Dwarf in the Alternative information tab. 

pastedImage_1.png

There is no ghs_test project in debug configuration even though the project finished building. 

FYI, User is using S32DS for ARM 2018.R1.

Best regards,

Kate Lee

Labels (1)
Tags (3)
0 Kudos
3 Replies

311 Views
jiri_kral
NXP Employee
NXP Employee

Hi Kate, 

If I understand it correctly - you like add Debug Configration for PE Micro or Segger J-Link, right? By default - project with GHS compiler can be debugged only with Lauterbach. 

Unfortunately - both probes (PE Micro/J-Link) doesn't fully support GHS elf format and there are some limitations (don't know which ones right now - but I'll try find it). But debugging is possible. 

Open Debug Configurations -> Right click on GDB PEMicro Interface Debugging -> New:

pastedImage_1.png

Add elf from project:

pastedImage_2.png

and select device: 

pastedImage_3.png

Hope it helps. 

Jiri 

0 Kudos

311 Views
leekate-b45752
NXP Employee
NXP Employee

Hello Jiri,

When I build the project, elf file didn't generate as below, is it a normal symptom?

pastedImage_2.png

pastedImage_1.png

 

Best regards,

Kate Lee

0 Kudos

311 Views
jiri_kral
NXP Employee
NXP Employee

Hi Kate, 

So, you are missing build target, correct? Unfortunately I don't have GHS license. Can you please share full wide output from build console? It looks, that .elf executable just don't have .elf extension. Is in Debug folder ghs_test file without extension? 

Jiri  

0 Kudos