2019-04-23 01:45 PM
Hello,
dual boot into ITCM-flash doesn't work like I do it.
Dual Boot into AXIM-flash works.
With OpenOCD I do the following for boot from AXIM-flash:
Boot adddress is 0x8010000 (boot_addr = 0x2004)
> stm32f2x options_write 0 0xCFC 0x2004 0x2004
> stm32f2x options_read 0
stm32f2x user_options 0xCFC, boot_add0 0x2004, boot_add1 0x2004
Content of relevant boot addresses (SP and reset handler):
> mdw 0x08010000 2
0x08010000: 20020000 08010239
Breakpoint at reset handler and check if breakpoint is reached:
> bp 0x08010239 2 hw
breakpoint set at 0x08010239
> reset
adapter speed: 2000 kHz
target halted due to breakpoint, current mode: Thread
xPSR: 0x21000000 pc: 0x08010238 msp: 0x20020000
Same for ITCM-flash
Boot adddress is 0x210000 (boot_addr = 0x84)
> stm32f2x options_write 0 0xCFC 0x84 0x84
> stm32f2x options_read 0
device id = 0x10006451
flash size = 2048kbytes
Dual Bank 2048 kiB STM32F76x/77x found
stm32f2x user_options 0xCFC, boot_add0 0x0084, boot_add1 0x0084
Content of relevant boot addresses (SP and reset handler):
> mdw 0x08010000 2
0x08010000: 20020000 00210239
Breakpoint at reset handler and check if breakpoint is reached:
> bp 0x00210239 2 hw
breakpoint set at 0x00210239
> reset
adapter speed: 2000 kHz
No stop at breakpoint as bootloader is started.
Value at OPTCR and OPTCR1 register:
> mdw 0x40023C14 2
0x40023c14: cfffaafd 20042004
What do I wrong?
Regards
Tobias