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/LAUNCHXL2-RM57L: Debug error

Part Number: LAUNCHXL2-RM57L
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

I'm new to using the Hercules board and am attempting to just run the following simple code: int main(void) { return 0; }

The board is connected to the computer via USB, and I do a clean build and debug. When I run it, the program stays in a busy loop in a function that's labeled as "ABORT - ABNORMAL PROGRAM TERMINATION. CURRENTLY JUST HALTS EXECUTION." led1, which is the error LED, also lights up.

I get the following output from the console:

CortexR5: GEL Output: Memory Map Setup for Flash @ Address 0x0CortexR5: GEL Output: Memory Map Setup for Flash @ Address 0x0 due to System Reset
CortexR5: GEL Output: Memory Map Setup for Flash @ Address 0x0 due to System Reset

I'm using CCS 9.0.1.

I'm not sure why I'm getting this error. Any help?

  • Hello,
    Use while(1) loop before return 0 in your main to avoid exiting.

    Youi can use HALCoGen to configure MCU. After installing HALCoGen you will find some examples in example folder. Description how to use those examples is in Help-->Help Topics-->Exmaples from HALCoGen menus. HalCoGen will generate all needed files for you.

    Best regards,
    Miro
  • Hi,

    Thank you for your help. I will definitely use your suggestions.

    Just a quick question, was the error that I got a normal thing? Is the busy loop the standard fix for this issue?

    Thank you.

  • Hello,
    The error is expected because you have "exited" the code, but you should never leave MCU to exit.

    Best regards,
    Miro