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.

Sleep Mode - RM57L HDK

Other Parts Discussed in Thread: UNIFLASH

Hi everyone!

I'm working with the RM57L Hercules Development Kit from TI.

It worked very good, but now i made a mistake to set the board to the sleep-Mode by using the command: "systemPowerDown(SYS_SLEEP_MODE);"

I flashed this code, and ran it while using break points and live debugging.
At the Moment the command was executed i lost the connection to the board.

Know there is the following problem, that i can't reconnect the board.

the error message is:

Error connecting to the target:
(Error -1170 @ 0x0)
Unable to access the DAP. Reset the device, and retry the operation.
If error persists, confirm configuration, power-cycle the board,
and/or try more reliable JTAG settings (e.g. lower TCLK).
(Emulation package 5.1.507.2)


I reset the board by using the "PORRST" and "RST" button on the board.
I also disconnected the main power supply, but that don't fixes the problem.

I want to get back the connection to the board to flash new programs.

Thank you very much!

Best regards,

Lukas Maul

  • Lukas,

    You can hold down the nRST button and then try to erase the part using UniFlash, and then release the nRST button. There is some time for which the code executes before executing the instruction to disable all clock sources. The flash erase command needs to halt the CPU before it has executed the instruction to disable the clocks. You may have to attempt this a few times before getting the timing right.

    Regards,
    Sunil
  • Thanks a lot!

    I hold/toggled the RST button a few times while i was trying to flash the program with ccs.
    It worked after a few times like you said, and now i got access to the HDK back.
    Therefore once again, thanks!

    Best regards,
    Lukas
  • Thanks for the confirmation. Usually while you are still developing your application, you can put a "gate" for entry to any low-power mode. This could be an input pin, which needs to be high/low in order to enter the LPM. This will help prevent accidentally turning off all clocks.

    Regards,
    Sunil
  • Okay, I implemented this "gate" as canMessageNotification Function.
    So only if there is any activity on the CAN BUS 2 the command "systemPowerDown(SYS_SLEEP_MODE);" will be executed.

    I'm not sure, but I think when I use this command the system goes to an "Global Power Down Mode".
    If this is the case, is there any possibility to wake up the whole system by receiving a new CAN Message? (f.i. CAN BUS 1)
    Entering GPD mode with setting "PSPwrDwnSetx" bit? (PCR)
    Wake up with setting "WakeUpPnd" bit? (DCAN ES)

    I already entered the "local power down mode" with setting the PDR bit and wake up back by receiving a CAN BUS message. (WUBA is set to 1)
    This worked fine!

    Another question:
    Is there an document which includes the electricity consumption in SLEEP/DOZE/SNOOZE mode?

    thanks and regards,

    Lukas
  • Lukas,

    The RM57 MCUs are high-performance MCUs and are not really designed for applications that require low-power-consumption modes. These modes are still available, but the performance in these modes is not specified since the expected leakage current number is quite high.

    Regards,
    Sunil