At 01:32 PM 9/5/10, Spencer Oliver wrote:
>>>On 03/09/2010 20:29, John Hartman (NoICE) wrote:
>>>The STM32 parts have Flash beginning at 0x8000000, and OpenOCD's
>>>stm32x.c places the Flash there regardless of the address used in the
>>>"flash" command in the cfg file.
>>>
>>>The chips have two pins that can be jumpered to specify what appears at
>>>address 0: Flash, RAM, or the boot loader. For embedded work, I think
>>>"Flash" will be the most common case.
>>>
>>>But if I link my program at zero, it is a pain to burn my program,
>>>because OpenOCD tells gdb there is only RAM at 0, with Flash at 8000000.
>>>(material deleted for brevity)
>>
>>Just use the virtual bank cmd, that's what it there for
>>flash bank $_FLASHNAME stm32x 0 0 0 0 $_TARGETNAME
>>flash bank vbank0 virtual 0x00000000 0 0 0 $_TARGETNAME $_FLASHNAME

This is EXACTLY what I need. No changes to OpenOCD (aside from my cfg file), and no need to modify the configuration of other tools.

Thank you.


Best regards, John Hartman
        NoICE Debugging Tools
        http://www.noicedebugger.com
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to