This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I modified the sample adc SOC code for tms320f28035 for running it from flash. The code gets compiled properly.
When I run the code , The DSP gets trapped in Illegal ISR loop and program stops.
How should I solve this issue.
Best Regards,
Shantanu.
Shantanu,
Hope you had made the following changes to the project:
extern Uint16 RamfuncsLoadStart;
extern Uint16 RamfuncsLoadEnd;
extern Uint16 RamfuncsRunStart;
The following things could cause Illegal_ISR interrupt:
Also, it is relatively easy to find out the source of illegal_ISR routine by checking the contents of the stack when illgal_ISR is entered. Please find the address and the data which triggers illegal ISR.
Regards,
Manoj
Hi,
I did the step run.
The program goes to ilegal ISR loop when it runs
(*Device_cal);
Please let me know how to solve the problem.
Regards,
Shantanu.
Shantanu,
Try single stepping in "mixed mode" (which has both assembly and C instructions). When (*Device_cal) is executed the PC should go to 0x3D7C80. Did you see this happen?
Can you share with me the contents of 0x3D7C80 – 0x3D7CBF in data memory?
Regards,
Manoj
Yes!
If I put the initAdc() function after the InitFlash Code then things work!
Regards,
Shantanu
I had the same problem, and your solution solved it Shantanu.
Very happy to have found this thread!
Dear Manoj,
Thanks for your post it does work for me on TMS320F2810...
Regards,
Sean
Dear Manoj,
I am the problem of my code, that works with the RAM cmd file, gets trapped in the Illegal_ISR when I try to run it from flash.
Can you please provide more details on how to find the source of the illegal_ISR?
Best
Daniele
Can you inform me how to deal with same problem, when it is done Flashing the DSC from Matlab generated source files.
What all changes that need to be made in target preference settings,etc.
Kind Regards
Karuna