Hi, it seems that 'program' command doesn't work because of lack of 'unlock'. I tried with:
flash protect 1 0 last off; flash write_image erase Test.elf and it works. Also the stmqspi mass_erase command works, it was my error, wrong bank id. sorry for the noise. On 28/06/2016 13:34, Claudio Lanconelli wrote: > Hi, > I'm testing #3162 "Flash driver for QUADSPI interface in various STM32 > variants." on stm32f7discovery board, > however I can't neither program or erase the QSPI flash. > > Here the output of program: > > openocd -f board/stm32f7discovery.cfg -c "program > Debug-MB1191B-0/Demo_Slider_Hor.elf verify reset exit" > Open On-Chip Debugger 0.10.0-dev-00324-g8be32bb (2016-06-28-11:49) > Licensed under GNU GPL v2 > For bug reports, read > http://openocd.org/doc/doxygen/bugs.html > Warn : Interface already configured, ignoring > Error: already specified hl_layout stlink > Info : The selected transport took over low-level target control. The results > might differ compared to plain JTAG/SWD > adapter speed: 2000 kHz > adapter_nsrst_delay: 100 > srst_only separate srst_nogate srst_open_drain connect_deassert_srst > Info : Unable to match requested speed 2000 kHz, using 1800 kHz > Info : Unable to match requested speed 2000 kHz, using 1800 kHz > Info : clock speed 1800 kHz > Info : STLINK v2 JTAG v24 API v2 SWIM v11 VID 0x0483 PID 0x374B > Info : using stlink api v2 > Info : Target voltage: 3.225688 > Warn : Silicon bug: single stepping will enter pending exception handler! > Info : stm32f7x.cpu: hardware has 8 breakpoints, 4 watchpoints > stm32f7x.cpu: target state: halted > target halted due to debug-request, current mode: Thread > xPSR: 0x01000000 pc: 0x08023008 msp: 0x20050000 > ** Programming Started ** > auto erase enabled > Info : device id = 0x10016449 > Info : flash size = 1024kbytes > stm32f7x.cpu: target state: halted > target halted due to breakpoint, current mode: Thread > xPSR: 0x61000000 pc: 0x20000046 msp: 0x20050000 > Info : Found flash1 device 'micron n25q128' (ID 0x18ba20) > Error: Flash sector 0 protected > Error: failed erasing sectors 0 to 15 > ** Programming Failed ** > shutdown command invoked > > > Here the output of erase: > > openocd -f board/stm32f7discovery.cfg -c "init; targets; reset init; flash > banks; stmqspi mass_erase 0" > Open On-Chip Debugger 0.10.0-dev-00324-g8be32bb (2016-06-28-11:49) > Licensed under GNU GPL v2 > For bug reports, read > http://openocd.org/doc/doxygen/bugs.html > Info : The selected transport took over low-level target control. The results > might differ compared to plain JTAG/SWD > adapter speed: 2000 kHz > adapter_nsrst_delay: 100 > srst_only separate srst_nogate srst_open_drain connect_deassert_srst > Info : Unable to match requested speed 2000 kHz, using 1800 kHz > Info : Unable to match requested speed 2000 kHz, using 1800 kHz > Info : clock speed 1800 kHz > Info : STLINK v2 JTAG v24 API v2 SWIM v11 VID 0x0483 PID 0x374B > Info : using stlink api v2 > Info : Target voltage: 3.225688 > Warn : Silicon bug: single stepping will enter pending exception handler! > Info : stm32f7x.cpu: hardware has 8 breakpoints, 4 watchpoints > TargetName Type Endian TapName State > -- ------------------ ---------- ------ ------------------ ------------ > 0* stm32f7x.cpu hla_target little stm32f7x.cpu halted > stm32f7x.cpu: target state: halted > target halted due to debug-request, current mode: Thread > xPSR: 0x01000000 pc: 0x08023954 msp: 0x20050000 > #0 : stm32f7x.flash (stm32f2x) at 0x00000000, size 0x00000000, buswidth 0, > chipwidth 0 > #1 : stm32f7x.qspi (stmqspi) at 0x90000000, size 0x00000000, buswidth 0, > chipwidth 0 > Info : device id = 0x10016449 > Info : flash size = 1024kbytes > Error: Timeout while polling BUSY > > > Here you can find a log with debug enabled: http://pastebin.com/VL4xajJF > > ------------------------------------------------------------------------------ > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San > Francisco, CA to explore cutting-edge tech and listen to tech luminaries > present their vision of the future. This family event has something for > everyone, including kids. Get more information and register today. > http://sdm.link/attshape > _______________________________________________ > OpenOCD-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openocd-devel > > ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
