WRT mass-erase: this just seems to be a genuinely slow flash IC? This openocd command sequence: source [find board/stm32f746g-disco.cfg] init flash probe 1 stm32f2x mass_erase 0 stmqspi mass_erase 1 flash write_image firmware.elf produces these numbers: Info : flash1 'micron n25q128' id = 0x18ba20 size = 16384kbytes flash 'stmqspi' found at 0x90000000 Info : device id = 0x10016449 Info : flash size = 1024kbytes stm32x mass erase complete stmqspi mass erase completed in 105.095627s (155.896 KiB/s)...
Thanks a lot, both of your suggested fixes (TCEN=0 or QUADSPI_LPTR=0x1000) fix the problem and allow succesful verification, i.e.: ** Verify Started ** target halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x2000002e msp: 0x20040000 target halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x2000002e msp: 0x20040000 target halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x2000002e msp: 0x20040000 verified 5264824 bytes in 1.861677s (2761.719...
command line arguments: openocd --file openocd.cfg -d2 -c 'program firmware.elf verify reset exit' openocd.cfg has just a single non-comment line: source [find board/stm32f746g-disco.cfg] option bytes: > mdw 0x1fff0000 8 0x1fff0000: 5500aaff 5500aaff 0000ffff 0000ffff ff7f0080 ff7f0080 ffbf0040 ffbf0040 debug log "-d3" attached. problem occurs reproducible every time I run openocd to perform a QSPI upload once the problem occured, openocd is unable to connect to the device, until I power-cycle: Error:...
command line arguments: openocd --file openocd.cfg -d2 -c 'program firmware.elf verify reset exit' openocd.cfg has just a single non-comment line: source [find board/stm32f746g-disco.cfg] option bytes: > mdw 0x1fff0000 8 0x1fff0000: 5500aaff 5500aaff 0000ffff 0000ffff ff7f0080 ff7f0080 ffbf0040 ffbf0040 debug log "-d3" attached. problem occurs reproducible every time I run openocd to perform a QSPI upload once the problem occured, openocd is unable to connect to the device, until I power-cycle: ~~~...
Problems with experimental driver for STM32 QUAD-/OCTOSPI interface