Tool/software: Code Composer Studio
Urgent!
Need your help!
I meet a weird problem while using DSP28335's SCI_Boot function. By the way, I used Flash_API to load the program to FlashE.
In the beginning,I load a project with XDS100V3 USB Debug Probe, the program is running normally.
But if I use SCI to download the same program, the program will enter an illegal interruption.
I have found the line jump to illegal interruption, which was written to choose the ePWM counting mode, but why does this can cause error?
The line where occur an ITRAP0:
C code:
EPwm2Regs.TBCTL.bit.HSPCLKDIV = TB_DIV1;
EPwm2Regs.TBCTL.bit.CLKDIV = TB_DIV1;