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.

Debugging hibernation mode on a LM4F212E5QC with 326msec on time and 900msec hibernation time.

I am starting to play around with the hibernation module in order to get a remote keypad implementation to use little power.  On my first try I was happy to see that my hibernation implementation worked as programmed 326mseconds on, then 900 msec hibernation.

I am using CCS 5.0 and a Spectrum Digital XDS560v2 STM.

It is nice.

Unfortunately, I did not program a backdoor to stay in run mode.  I can no longer connect with the debugger as the processor is not awake long enough for CCS to step in and gain control.

Is there any suggestion on how I can get back into the debugger?

I sure hope I did not programmatically brick this processor!

  • John,

    Remove the battery (or voltage) from Vbat and power cycle the board.  This will force the chip to not hibernate, as a valid Vbat has to be present.   You should then be able to connect with the debugger. 

    Lela

  • Thanks for your super fast reply.

    Your answer indicates that it will be necessary to cut a trace at the very least.  Is this a correct assumption?

  • It is unclear to me if you are using a Stellaris evaluation kit from the information that you provided.   Which kit are you using or are you using your own custom design?

     

    Lela

  • We are using our own custom design. I am not using an EKS.

  • John,

    Depending on your custom design...then you will have to cut the trace.

    Lela

  • Is there a TI tool that will quickly enter emulation, then erase flash using the DS XDS560V2?  The problem with CCS is it takes a few seconds to connect, so it misses the 300msec the device is actually on.

    I actually was able to un-brick the processor.  I found a back door which allowed me to write to a couple of global RAM locations which in turn blocked the hibernation code from executing.

    New code now provides explicit controllable conditions to block hibernation from being entered.

  • John,

    What other JTAG emulators do you have?  The best would be the Stellaris ICDI that comes on an eval kit with debug out option and use with LM Flash Programmer.  However, it may be easier to just stick with inserting a debug section of code to hold the 300msec to allow JTAG to connect with your XDS and CCS.

    Lela

  • Lela,

    We do have an eval kit, but it is lashed into a prototype right now.  I think our electrical guy is figuring out how to lash in a switch to the VBAT pin.  You would have to know our board.  But the VBAT is nestled in between the OSC pins, so there are components close to the board and it will be a challenge to get connections.

    Luckily, we have about 20 more prototype boards.  I moved onto a new board, leaving the bricked board with our electrical guy.

    I may be digressing, but I am currently just getting FW modules working.  At some time I will need to hand over a specification for how the factory will load the bootloader.  For our Atmel AVR design we give them a hex file and use Atmel's AVR studio, a bed of nails and an ISP module to download the bootloader.  How would I accomplish this with Stellaris?  Is LM Flash Programmer the TI version of Atmel's AVR Studio?  If so, what in circuit programmer would I use?  I do not think programming out of CCS is acceptible as we cannot expose our code to our third party circuit board builder.

    John