Hi,
I am trying to do software reset but everytime during the reset it is unable to boot. It looks like that it is hanged. Even if I do the hardware reset, still it does not respond. I have to power down the mcu and then power it up again.
I tried to do the reset using two ways: -
- Asserting Software Reset Bit
- Backup Watchdog Timer Expiration
Both of them do not work at all.
Here is code for each section: -
Software Reset
----------------------
MCF_RCM_RCR = MCF_RCM_RCR_SOFTRST | MCF_RCM_RCR_FRCRSTOUT;
Backup Watchdog Timer
------------------------------------
MCF_CLOCK_BWCR = 0x00; | |
MCF_BWT_WMR = 0xFFFF; | |
MCF_BWT_WCR = MCF_BWT_WCR_EN; |
while(1) { } |
Thanks in advance for the help.
Regards.
Type "mcf52259 soft reset" into the Search Field and see if any of the previous posts on this topic give a solution.
Here's someone who now has soft reset working fine. There must be a difference between his hardware and yours:
Re: Software Reset For MCf52259
Here's one from 2011 stating that the M52259DEMO Board doesn't soft-reset, but the M52259EVB Board does work. Also that it doesn't work with the debugger connected.
Re: MCF52259: Software Reset hangs
That should be enough to get you working.
Tom