From: Jim M. <jm...@am...> - 2014-11-14 13:40:49
|
A few thoughts... (Sorry, these thoughts are from a OpenOCD noob...) 1) Make sure you are executing the code you think you are. Add an echo command. echo "File: stm32fdiscovery.cfg - reset-init event" 2) Use the "reset init" command to trigger the reset-init event 3) Try setting your Program Counter register, such that you can begin execution besides address zero 4) Are you interactively entering commands with OpenOCD through a telnet connection, or using a framework to enter the commands? An interactive session would allow many more tests, one after another. Maybe the above ideas can help..?? Maybe this issue is beyond my ability as well.... -----Original Message----- From: Steiner Marc [mailto:Mar...@al...] Sent: Friday, November 14, 2014 5:15 AM To: ope...@li... Subject: [OpenOCD-user] STM32f303: boot from main flash memory with BOOT0 pin high Hi, On a STM32f303 board with BOOT0 pin set to high, I need to start debugging in main flash memory - i.e. skip the bootloader. This is required for development on the production board. So I added the following to the end of stm32fdiscovery.cg: ... $_TARGETNAME configure -event reset-init { # overwrite Vector Table Offset Register with memory address mww 0xE000ED08 0x08000000 # overwrite SYSCFG_CFGR1 MEM_MODE #mww 0x40010000 0x7C000000 } Neither variant works. I'd be grateful for any help. Cheers! Marc -------------------------------------------------------------------------- ---- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clkt rk _______________________________________________ OpenOCD-user mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/openocd-user |