I'm using Eclipse/GNU C/OpenOCD as the development environment, for the
STR750 controller. The STR750 has two separate flash banks, with
non-contiguous addresses. The main program code loads into bank 0, no
problem flashing it with OpenOCD.
In my C program I create a separate section for field modifiable
application parameter data to load into bank 1, using the _attribute_
((section(".infomem"))) qualifier on global declarations (no code, data
only in this section). I would like to flash the ".infomem" section
into bank 1.
My question is how can I program both banks of flash from OpenOCD? I
assume this will take two separate flash write commands, one to write
bank 0, and one for bank 1. Does OpenOCD know from addressing in the
bin file where to place code/data in flash banks? The loader file in
the build does assign the actual flash bank 1 base address to the
".infomem" section of code.
Jack Peacock