13.6 About testing the flash configuration
With the files described in the previous sections in place, it should be possible to make a connection to the target in DS-5 and inspect the flash devices available and program an image. Although, with the files in their current form, no data will actually be written to flash.
NoteIf DS-5 is already open and
project_types.xml is changed, it will be necessary to
rebuild the configuration database.
Within DS-5 Debugger, connect to your target
system and enter info flash into the
Commands view. You should get an output similar to:
parameters: programPageTimeout: 100
sectorSizes: ((0x800, 0x00000000))
name: STM32F10x High-density Flash
You can test the flash programming operation by attempting to program with a test ELF
flash load flashyprogram.axf
Writing segment 0x00008000 ~ 0x0000810C (size 0x10C)
Flash programming completed OK (target state has been preserved)
NoteYou can use any ELF (.axf) file which contains data within
the configured address range.