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:
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?