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-570LC43: Code does not run into main function after debug

Part Number: LAUNCHXL2-570LC43
Other Parts Discussed in Thread: TMS570LC4357, HALCOGEN

Tool/software: Code Composer Studio

Dear all

I have a Hercules TMS570LC43x LaunchPad. And I follow the tutorial from the youtube  https://www.youtube.com/watch?v=XoA25XEMMQE

After I building the basic ADC codes, I try to run the codes using the "Debug" and setting some breakpoints. However, it turns out that the codes never reach the breakpoints, and I cannot see any updates of the variables. It seems that the codes never run into the "main" function.

Please help me out of this. My codes are attached.

1411.ADC0.rar

  • Hi Benfei,

    Please add breakpoints to the statements in the function _c_int00(void). The _c_int00(void) is in HL_sys_startup.c
  • Hi QJ Wang.

        Thanks a lot. I will try and update with you.

  • Dear QJ Wang

    Do you have any example codes (ADC) for the LAUNCHXL2-570LC43x Launch-pad, which can run successfully? If possible, can you share one successful project ? I can not find any good example from internet. What I need is the basic ADC, then I can modify.
    Thanks a lot.
  • Hello BenFei,

    Please check ECC status registers if any bit is set. For the TMS570LC4357, ECC protection of Flash and SRAM memories is always enabled. This differs from TMS570LS series where ECC is disabled after reset and remains disabled until enabled by software. But it also means that it is a lot more likely that you will see the RED ERR LED go on during development. A common reason for this to occur is that erased flash is full of ECC errors!

    The solution to frequent ECC related errors during development is avoid them by making sure all of the ECC data is programmed - in other words program correct ECC values even for the locations in the main flash array that are left unused.

    The easiest way to achieve this is to use the Linker to generate ECC data rather than the loader.

    Please use attached linker command file (cmd file) in place of the one provided by HALCoGen.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/5340.HL_5F00_sys_5F00_link.cmd