AnsweredAssumed Answered

Dual bank mode - built in bootloader doesn't seem to work properly

Question asked by amg on Dec 15, 2016
Latest reply on Dec 15, 2016 by Oliver Beirne

I've configured the STM32F767 on board of a Nucleo-F767ZI board to work in Dual Bank mode by changing the DBANK bit to 0 (DBOOT left to 1). Modified flash option bytes:

Address         Value

1fff0000         5500aaff

1fff0008         2000dfff

1fff0010         ff7f0080

1fff0018         ffbf0040

 

I can erase and write from within my application running but the dfu-util doesn't work but the dfu-util does not return any error!

To write to the second bank via dfu-util I must do a mass erase before and download the code:

 

dfu-util -a0 -d 0483:df11 -v -s 0x08000000:force:mass-erase -D *****

dfu-util -a0 -d 0483:df11 -v -D *****

 

Also, the mass erase actually returns -7 (timeout) but actually the memory is all FF when read back (ie it works).

 

It looks like the builtin bootloader does not work properly when in the memory is in dual bank mode. 

Am I right or missing something?

 

Thanks,

Giuseppe

Outcomes