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.

CONTROLSUITE: Illegal_ISR() error

Part Number: CONTROLSUITE
Other Parts Discussed in Thread: TMS320F28377D, , C2000WARE

Hi Team,

Can you please help us with this issue that our customer encountered while using the TMS320F28377D with ControlSUITE? I have search the forum but can't find the same issue.

I encountered a problem while debugging your company's routines. This routine is called RAM_ management in ControlSUITE.I encountered this error while running. Currently using TMS320F28377D with YXDSP-XDS100V3 EMULATOR USB2.0

Regards,

Danilo

  • Danilo,

    Can you share more details about the example you are running where you observed this ITRAP. Can you confirm that you have properly configured your interrupts. If you need an example, please take a loot at the interrupt examples available in C2000Ware.

    Here is a link to a document that explains interrupts on C2000: https://software-dl.ti.com/C2000/docs/c28x_interrupt_faq/html/index.html 

    Regards,

    Ozino

  • Hi Ozino,

    Thank you for your response. I have forwarded your comment to our customer and waiting for his feedback. He sent this email earlier. 

    I forgot to mention another question, when I put this code in '2837xD'_ RAM_cpu1.cmd, the program will report an error.However, put this code in '2837xD_ FLASH_ Ink_ cpu1. cmd ', there is no error reported.This code is explanation of 'isrfunc' in the RAM_management.
    code:
    isrfunc             : LOAD = RAMD0 |  RAMLS0 | RAMLS1 | RAMLS2 | RAMLS3 | RAMLS4,
                             RUN = RAMGS15,
                             LOAD_START(_isrfuncLoadStart),
                             LOAD_END(_isrfuncLoadEnd),
                             RUN_START(_isrfuncRunStart),
    LOAD_SIZE(_isrfuncLoadSize),
    PAGE = 0
    error:<a href="file:/C:/ti/ccs1220/ccs/tools/compiler/dmed/HTML/10099.html">#10099-D</a>  program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "isrfunc" size 0x40 page 0
    Regards,
    Danilo
  • Danilo,

    Note that the line of code you have shown above is only applicable for flash build configurations. In the case for a ram build you can directly allocate the code section to a block of ram. You will only need to use the isrcodefuncs pragma in flash when you are trying to execute specific code from RAM, but in a RAM build configuration that is not applicable since everything is executed from RAM.

    Regards,

    Ozino