Hi there.
I'm new to Hercules and Embedded Development. I'm not good at English, Please forgive the poor English of the question.
I'm faced with a problem of CPU Self Test and breakpoint.
I use
・CCS5.5
・TMS570LS3137 HDK
・HALCoGen 04.05.02
・XDS100v2
Q1. In my environment, software breakpoint don't work.
Is it beacuse my program is running from Flash?
(I think that Running from Flash is default Code generated by HALCoGen)
Q2. I tried to test CPU Self Test.
I Checked [Enable CPU Self test] in HALCoGen.([Enable CPU Self test]:SAFATY INIT →Self test Enable)
I didn't add any code to _c_int00 function.
I just made test code in main(). The test code is
void main(void)
{
unsigned int i =0;
printf("enter main\n");
hetInit(); // Light HDK's LED
while(1)
{
i++;
}
}
I set a H/W beakpoint on [printf("enter main\n")] line.
I built project and debug, some problems occured.
・did not stop at H/W beakpoint.
・did not work printf("enter mian\n") (to CCS Consle)
・HDK's LED is Lighted.(← [hetInit()] line is excuted.)
・After a while, When I Clicked Suspend(Alt + F8), Current Instruction is [i++] line.
WHY did this problems occur?
Note: I tested to uncheck [Enable CPU Self test] and did same.
・stopped H/W breakpoint
・worked printf ("enter mian\n")
・HDK's LED is Lighted.
Q3.I would like to do:
1. Before Application program is starting, excute 24 intervals self test(24 intervals self test need to be done in _c_int00)
2. After excuting 24 intervals self test, go to Application program.
Should I add or modify code generated by HALCoGen?
Should I save Context?(TRM 8.2.2)
I'm sorry so many questions and poor English.