cancel
Showing results for 
Search instead for 
Did you mean: 

How to Force a chip reset in debug mode?

edware
Associate III
Posted on January 07, 2008 at 21:54

How to Force a chip reset in debug mode?

3 REPLIES 3
edware
Associate III
Posted on May 17, 2011 at 12:20

I have a IAR STM32-SK board, debugging with a Jlink Jtag debugger.

How can I cause the STM32 to be hard-reset using the debugger?

From my testing it appears the nRST is never activated.

When restarting my application (using the IAR reset button), the micro registers are not reset to their default states.

I have tried the EWARM Jlink options (reset methods), but have not managed to achieve a HW reset of the STM32.

Is there something I'm missing?

Thanks!

[ This message was edited by: edware on 03-01-2008 11:34 ]

asterix
Associate II
Posted on May 17, 2011 at 12:20

Hi,

You can refer to IAR web site and check if your Jlink is compliant with this technical Note:

http://supp.iar.com/Support/?note=76557&from=note+63427

Hope this helps You ;) Magigimix

edware
Associate III
Posted on May 17, 2011 at 12:20

Thanks for the suggestions Magigimix!

I checked my Jlink, which is Version 6, and also checked the drivers which are the latest (V3.74m).

I tried changing the reset strategies, but still cannot get the ARM registers to return to their default (power on) values via the EWARM IDE.

I have been performing a manual reset of the board to reset the registers.

I looked up a reference to the SWD interface, but have no idea of how to enable/ disable this feature, or even if it's being used. Can you direct me to some info regarding the SWD interface?

It's not a major stumbling block for me, but I would like to understand how to assert the reset line on the micro.

Regards

Ed

;)