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.

RM57 HDK does not work

Other Parts Discussed in Thread: HALCOGEN, UNIFLASH, CC3100, CC3200

Hi.

I've tried to use RM57 HDK, but there is an error.

1. Error LED(red) is turned on when start erasing flash in debug mode(in any project, e.g. empty or HALCoGen project).

2. 'Hercules safety MCU DEMOs' is not working on my HDK. An error occure at programming the demo project to HDK. it worked well when I used it RM48 HDK before.

How can I check the problem? Why it doesn't work in HDK an empty project..

 +) These are some ESM register values not '0'.

Low-time counter = 0x00003FFF

Low-time counter preload = 0x00003FFF

Error Key = 0x00000005

  • Hi Wonjae,

      I'm able to also see that the LED turned on when the debugger is connected to the target. When the LED is turned on, my ESM status registers shows that there is a CPU compare error. Please look at ESM Stat2 register to see if you are getting a value of 0x00000004. For my case, the reason for the error is that the debugger operations place the CPU in a halting debug state where the code execution is halted. Since the halting debug events are asynchronous, there is a possibility for debug requests to cause loss of lock. In RM48 type of devices, the CCM module will disable the compare between the two CPUs' outputs upon detection that the CPU is in the halting debug state. The signal that indicates the CPU is in debug state is broadcasted to the rest of the system. However, in RM57 device, the signal that indicates the CPU is in debug state is first connected to CTI (Cross Trigger Interface) module. The CTI debug architecture in RM57 allows a programmable triggering capability that enables the CPU's halting request to propagate to certain modules but not to others at user's choice. However, by default after reset, the CTI module is in a disable state. This means that when the CPU is in the halting debug state, the signal that indicates as such is blocked at the CTI module. Therefore, the rest of the system including the CCM module does not know the CPU is in a halting debug state. The CCM will continue to compare while the CPU is in debug state. As mentioned earlier, the two CPU could be out of lockstep when in debug state. We will need to clarify this behavior in our next errata. Once you clear the LED, it will not have CPU compare error anymore.

    If you run into the situation where you see the LED right after you connect to the target, please clear the LED by writing 0x5 to the Error Key (ESMEKR) register. In your case, you might have started to perform some program/erase operation to the flash. The flash loader will perform a debugger reset to the target. This reset is like a system reset which actually resets some of the ESM's internal registers. When this happens, you can not clear the LED by writing 0x5. You either need to go through a power up reset to clear the LED or by first writing 0xA to the ESMEKR register followed by another write of non 0xA value such as 0x0 to the ESMEKR register.

    For your Demo problem, could you elaborate what errors you are getting. Could you download the Demo from the below link http://www.ti.com/tool/hercules_safety_mcu_demos again and try to reflash the HDK with the Demo software?

     

     

     

  • Hi, Charles

    Thank you for your detailed answer. It is cleared.

    But I couldn't test HDK Demo yet. It said I cannot use it because there is no 'Uniflash' on my pc when I execute the DEMO after download it.

    So, I tried to download the uniflash, but I failed. My security SW in my PC prevent download it from internet..

    Could you send me the full version(need not to connect online) of uniflash or link it on this post?

    Regards.

     

  • Hi Wonjae,

      I will try to send you the uniflash privately.

     

  • Hi Charles,

    i got nearly the same problem and hope you can help me.
    I can't reflash the Hercules Demos software, because uniflash is not installed... but actually it is.
    I downloaded and installed "uniflash_3.3" from the TI webside.
    But if i start the Hercules safety MCU Demos, first my RM57Lx HDK board is detected and need to be flashed because the demo software was not found on microcontroller.
    If i click on "yes, flash it now" an error appears and told me that there is no installation of uniflash, please download from this webside...
    "www.ti.com/tool/uniflash" which does not exists(anymore).

    Do you got any ideas how this can be fixed?

    thanks in advance!

    Lukas
  • Hi Lukas,
    Do you have the uniflash installed? If not can you please go to the below Wiki page to download it?
  • Hi Charles,

    thanks für your fast response!
    I downloaded and installed the Uniflash Simplelink CC3100 and CC3200 from this page.

    www.ti.com/.../uniflash

    But Hercules Demos still can't find any uniflash to flash the demo programm.
    The suggested page to download the uniflash is the link above, but my browser tries to open that link.

    "www.ti.com/.../nowflash"

    which is not found.

    Where is the difference between Uniflash and Nowflash?

    Could it be any kind of version compatibility problem?

    Can you try to sent me the uniflash also privately?

    Thanks a lot!
    Best regards,

    Lukas
  • Hi Lukas,

     You selected the incorrect one. In the same page you should select the one below uniflash-simplelink.  The one below that says "Uniflash for  TI Microcontrollers (MCU).....". Please give it a try. If you still have problem accessing it then it could be a problem for many customers. I would rather report the web page problem instead of giving you a offline copy privately.  I can still give you a offline copy though as a temp solution if you still fail to download the uniflash. I tried it yesterday and it worked for me.

  • Both NowFlash and Uniflash can be used to program/erase the microcontroller. However, we would like to move users to Uniflash. I'm not sure if NowFlash even support the newer microcontroller such as RM57x. In addition, the Demo requires the uniflash to load the demo code to flash so what you really need is the Uniflash.