2019-09-30 06:25 AM
I am trying to flash STM32CubeDemo_STM32769I-DISCO_V1.0.1.hex into the board, under Linux, with st-flash. And it does not work:
$ st-flash --serial /dev/ttyACM0 --format ihex write STM32F769I-Discovery/Demonstration/Binary/STM32CubeDemo_STM32769I-DISCO_V1.0.1.hex
st-flash 1.5.1-38-gc3577b5
2019-09-30T15:13:15 INFO common.c: Loading device parameters....
2019-09-30T15:13:15 INFO common.c: Device connected is: F76xxx device, id 0x10006451
2019-09-30T15:13:15 INFO common.c: SRAM size: 0x80000 bytes (512 KiB), Flash: 0x200000 bytes (2048 KiB) in pages of 2048 bytes
2019-09-30T15:13:16 INFO common.c: Ignoring 108 bytes of 0xff at end of file
2019-09-30T15:13:16 INFO common.c: Attempting to write -2004393772 (0x888760d4) bytes to stm32 address: 134217728 (0x8000000)
2019-09-30T15:13:16 ERROR common.c: addr too high
stlink_fwrite_flash() == -1
What should I do ?
Thanks
Olivier S
2019-10-03 01:00 AM
Work nice ! Thx !
$ openocd -f board/stm32f769i-disco.cfg -c "program STM32Cube_FW_F7_V1.4.0/Projects/STM32F769I-Discovery/Demonstration/Binary/STM32769I-DISCO_DEMO_V1.0.0_FULL.hex verify reset exit"
Open On-Chip Debugger 0.10.0+dev-00937-gd10aa40f (2019-10-01-07:38)
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
Info : clock speed 2000 kHz
Info : STLINK V2J31M21 (API v2) VID:PID 0483:374B
Info : Target voltage: 3.224115
Info : stm32f7x.cpu: hardware has 8 breakpoints, 4 watchpoints
Info : Listening on port 3333 for gdb connections
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080b9570 msp: 0x20074100
** Programming Started **
Warn : continuing after end-of-file record: :020000040810E2
Warn : continuing after end-of-file record: :020000040818DA
Info : device id = 0x10006451
Info : flash size = 2048 kbytes
Info : Single Bank 2048 kiB STM32F76x/77x found
Info : Flash write discontinued at 0x080b9fce, next section at 0x08100000
Info : Padding image section 1 at 0x0816e381 with 72831 bytes
Info : Padding image section 2 at 0x081801f8 with 8 bytes
Info : flash size = 1024 bytes
Info : flash1 'mac 25l51245' id = 0x1a20c2 size = 65536kbytes
Info : Flash write discontinued at 0x9082f1f0, next section at 0x91000000
Info : Flash write discontinued at 0x92ca9a64, next section at 0x93000000
** Programming Finished **
** Verify Started **
Warn : continuing after end-of-file record: :020000040810E2
Warn : continuing after end-of-file record: :020000040818DA
** Verified OK **
** Resetting Target **
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
shutdown command invoked