Thanks to visit codestin.com
Credit goes to github.com

Skip to content

STM32F407IGT6: Device not flashing #638

@banuanandan

Description

@banuanandan

Hi,
I am unable to flash the compiled file. I am using STM32F407IGT6 on a custom board. It shows stlink_fwrite_flash() == -1 error. I tried reinstalling stlink but to no avail.

  • Programmer/board type: Stlink/v2
  • Operating system: 4.4.0-96-generic # 119~14.04.1-Ubuntu SMP i686 GNU/Linux
  • Stlink tools version and/or git commit hash: 1.4.0-9-g6511a7e
  • Stlink commandline tool name: st-flash
  • Target chip (and optional board): STM32F407IGT6
    A as-detailed description possible of the problem with debug output when available.

Output:

st-flash write build/flash.enc 0x8010000
st-flash 1.4.0-9-g6511a7e
2017-09-28T12:43:48 INFO src/common.c: Loading device parameters....
2017-09-28T12:43:48 INFO src/common.c: Device connected is: F4 device, id 0x10036413
2017-09-28T12:43:48 INFO src/common.c: SRAM size: 0x30000 bytes (192 KiB), Flash: 0x100000 bytes (1024 KiB) in pages of 16384 bytes
2017-09-28T12:43:48 INFO src/common.c: Attempting to write 257772 (0x3eeec) bytes to stm32 address: 134283264 (0x8010000)
Flash page at addr: 0x08040000 erasedEraseFlash - Sector:0x6 Size:0x20000 
2017-09-28T12:43:54 INFO src/common.c: Finished erasing 3 pages of 131072 (0x20000) bytes
2017-09-28T12:43:54 INFO src/common.c: Starting Flash write for F2/F4/L4
2017-09-28T12:43:54 INFO src/flash_loader.c: Successfully loaded flash loader in sram
enabling 32-bit flash writes
size: 32768
2017-09-28T12:44:04 ERROR src/flash_loader.c: flash loader run error
2017-09-28T12:44:04 ERROR src/common.c: stlink_flash_loader_run(0x8010000) failed! == -1
stlink_fwrite_flash() == -1

It was working fine couple of days ago but wouldn't work anymore. Am I doing anything wrong?

Thank you!

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions