SCR debugging with Trace32

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
pistons7
Level 4
Level 4
50 questions asked 10 likes given 100 sign-ins

I'm using lauterbach's Trace32 as my debugger.
I was wondering if anyone had a similar experience.

I understand that I would normally inquire about lauterbach,inquiries to
lauterbach are also being made in parallel.

Symptoms include:

Each elf file of Tricore/SCR to target board using script
to load.

When scr_boot of cstart.c of Tricore is executed with 0x01, S/W is fine
Operate.
(The flashing of the LED on the target board is as designed.)

However, if I set scr_boot to 0x0A and debug, the SCR side
Debug because the starting point starts from the address of "_Exit or nop"
can't do

However, the above problem can be avoided by specifying Program Counter in the script.

The problem is that when the program jump from _Start to _init, the processing there is nop.
Therefore, the operation stops there and the main function is not called.

Neither lauterbach nor I have yet figured out why _init is nop.
As I've said many times, the S/W works normally when flashing.
I don't think it's a problem with the program because it works when I flash it.
I think it's a bug in Trace32.

Please let me know if there is any workaround for this situation.
Lauterbach has no answer to this question.

0 Likes
1 Solution
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Based on my understanding, debugging SCR using Lauterbach may require a different approach, so it may be best to consult with Lauterbach directly for assistance with this. However, if you encounter any issues when debugging the main core using Trace32, please let me know and I'll do my best to help you.

View solution in original post

0 Likes
1 Reply
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Based on my understanding, debugging SCR using Lauterbach may require a different approach, so it may be best to consult with Lauterbach directly for assistance with this. However, if you encounter any issues when debugging the main core using Trace32, please let me know and I'll do my best to help you.

0 Likes