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.

(Again) ESM after Startup

Other Parts Discussed in Thread: TMS570LS20216, TMS570LS3137

Hi

I´ve read http://e2e.ti.com/support/microcontrollers/hercules/f/312/t/107810.aspx which describes exactly what i ran into:

I get an ESM Stat 1 of "0x80000000 immediatly after startup. I set the STCCLKDIV to 3 (using 140 Mhz System clock), but the error remains.

Even more: After resetting in CCS5.2.0 that bit remains set. Even after just stepping over the hardware init handler (setting STCCLKDIV).

I´ve the feeling doing something fundamentally wrong....

best regards

ds

  • Dominik,

    This is a known issue on the first pre-production silicon. It has been fixed in later revisions. Would you please confirm the silicon version. In the mean time, you can use the attached startup code as a workaround.

    5123.boot_flash_ecc_r4_esm_error_EABI.asm

    Please let know if this answers your question.

    Thanks and regards,

    Zhaohong

  • Thanks very much for the immediate reply.

    My device reads "TM_P_570LS20216_A_" which should not exist - if i got the errata sheet right (Page 6 Table 1 says: "Rev A is availbale as TMX only).

    Is the above errata valid for that kind of device

     

    Thanks!

     

    Dominik

  • Dominik,

    When I replied to your post, I thought that you were using TMS570LS3137. You are actually using TMS570LS20216 from the part number in your post. You should not have the "CCM error after reset" issue on this device. Would you please try two things in your code?

    (1) At the address 0x0, replace "b _c_int00" by "b #-8". This will force CPU loop at address 0x0 after reset. Everything on the device will be at default. You check if there are any any errors.

    (2) At the beginning of the boot up function, make sure that you have code to make all CPU registers to zero. After a power-on-reset, those registers have random values. since we have two CPUs, a register read would cause CCM error if they are not initialized.

    Thanks and regards,

    Zhaohong

  • Thanks for the reply. Strangely enough the problem disappeared.

    I must admit, i didn´t try to "power off and on again" during that test (as the system never crashed). The next day i implemented the code and the problem was gone. But it seems to be gone anyway ... Now i ran into something new - but that will be another thread.

    Thanks for your help..