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.

CCS/TMS320F28335: DALAY_US and ILLEGAL_ISR

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

I dont understand. I take FLASH example project from control suite, added periferal like GPIO, ADC, timers. This project worked, but when i added  a few line of codes, i get ILLEGAL_ISR. I red this forum about this problem, but i have added memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (Uint32)&RamfuncsLoadSize); how it was in example file. Now i have deleted DELAY_US and added my delay function, and it helped, but i want to know how to fix it correct, becouse sometimes i see "illegalIsr".

  • Hi,

    Does the memcpy gets called before DELAY_US?

    Do you see the symbol "_FLASH" used in your code? Is the symbol defined in your project?

    You mentioned sometimes you notice "illegalisr", Could step in and check where do you see the program jump to illegalisr?

    Have you tried running the example -> <C2000Ware>\device_support\f2833x\examples\flash_f28335

    Thanks,
    Katta
  • Yes, memcpy gets called before DELAY_US.
    Yes, i used _FLASH in my code.
    I met "Illegalisr" when i make a restart code, but i cant catch it in "InitSysCtrl" function.
    I have changed the example -> <C2000Ware>\device_support\f2833x\examples\flash_f28335.
    Can i get illegalisr if i will do restart programm?
  • Hi,

    Do you get the illegalisr with the default example?

    Please do a reset before making a restart.

    So, the illegal isr doesn't come in the initial run. It comes only when you restart. Right?

    Can you please compare how many extra words were added with your change in the example for ramfuncs?

    Thanks,
    Katta