W dniu 2012-04-05 14:59, Spencer Oliver pisze: > The problem is it is working fine for me.
The reset via OpenOCD does not work for me either. It does "reset" the core, but all peripherals are intact. Here's an example. The board has some code that enables the PLL, so I check the RCC->CR register. > Open On-Chip Debugger >> halt > target was in unknown state when halt was requested > target state: halted > target halted due to debug-request, current mode: Thread > xPSR: 0x81000000 pc: 0x08000404 psp: 0x200003f0 >> mdw 0x40023800 > 0x40023800: 03038c83 >> reset halt > target state: halted > target halted due to debug-request, current mode: Thread > xPSR: 0x01000000 pc: 0x08000188 msp: 0x20000000 >> mdw 0x40023800 > 0x40023800: 03038c83 // I pressed the hardware reset button here to really reset the chip into halted mode >> mdw 0x40023800 > 0x40023800: 00008c83 >> As you see the register is completely unchanged after "reset halt", yet changes after real reset. OpenOCD was run using just the script for discovery board. Here's the log: > >openocd-0.6.0-dev-120404085158 -f board/stm32f4discovery.cfg > Open On-Chip Debugger 0.6.0-dev-00497-ga6cf60c (2012-04-06-08:15) > Licensed under GNU GPL v2 > For bug reports, read > http://openocd.sourceforge.net/doc/doxygen/bugs.html > 1 kHz > trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain > Info : clock speed 1 kHz > Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints > Info : accepting 'telnet' connection from 4444 > Warn : target was in unknown state when halt was requested > target state: halted > target halted due to debug-request, current mode: Thread > xPSR: 0x81000000 pc: 0x08000404 psp: 0x200003f0 > 0x40023800: 03038c83 > target state: halted > target halted due to debug-request, current mode: Thread > xPSR: 0x01000000 pc: 0x08000188 msp: 0x20000000 > 0x40023800: 03038c83 > 0x40023800: 00008c83 4\/3!! ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
