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

Skip to content

STM32VL won't flash #579

@bolorkhuu

Description

@bolorkhuu

Hello,

I'm getting following error on stm32vl discovery board.

> st-flash write STM32VL-Discovery.bin 0x8000000
st-flash 1.3.1
2017-03-25T04:54:29 INFO src/common.c: Loading device parameters....
2017-03-25T04:54:29 INFO src/common.c: Device connected is: F1 Medium/Low-density Value Line device, id 0x10016420
2017-03-25T04:54:29 INFO src/common.c: SRAM size: 0x2000 bytes (8 KiB), Flash: 0x20000 bytes (128 KiB) in pages of 1024 bytes
2017-03-25T04:54:29 INFO src/common.c: Attempting to write 19612 (0x4c9c) bytes to stm32 address: 134217728 (0x8000000)
Flash page at addr: 0x08004c00 erased
2017-03-25T04:54:29 INFO src/common.c: Finished erasing 20 pages of 1024 (0x400) bytes
2017-03-25T04:54:29 INFO src/common.c: Starting Flash write for VL/F0/F3 core id
2017-03-25T04:54:29 INFO src/flash_loader.c: Successfully loaded flash loader in sram
  0/19 pages written2017-03-25T04:54:29 ERROR src/flash_loader.c: write error, count == 511
2017-03-25T04:54:29 ERROR src/common.c: stlink_flash_loader_run(0x8000400) failed! == -1
stlink_fwrite_flash() == -1
  • Operating system: Mac OS X Yosemite
  • Stlink tools version: v1.3.1
  • Target chip (and optional board): (STM32VL Discovery)
> st-util -p 4242
st-util 1.3.1
2017-03-25T04:58:24 INFO src/common.c: Loading device parameters....
2017-03-25T04:58:24 INFO src/common.c: Device connected is: F1 Medium/Low-density Value Line device, id 0x10016420
2017-03-25T04:58:24 INFO src/common.c: SRAM size: 0x2000 bytes (8 KiB), Flash: 0x20000 bytes (128 KiB) in pages of 1024 bytes
2017-03-25T04:58:24 INFO src/gdbserver/gdb-server.c: Chip ID is 00000420, Core ID is  1ba01477.
2017-03-25T04:58:24 INFO src/gdbserver/gdb-server.c: Listening at *:4242...
> arm-none-eabi-gdb STM32VL-Discovery.elf 
GNU gdb (GNU Tools for ARM Embedded Processors) 7.10.1.20160923-cvs
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin10 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from STM32VL-Discovery.elf...done.
(gdb) tar extended-remote :4242
Remote debugging using :4242
Reset_Handler () at ../system/src/cortexm/exception_handlers.c:31
31	{
(gdb) load
Loading section .isr_vector, size 0x418 lma 0x8000000
Loading section .inits, size 0x28 lma 0x8000418
Loading section .text, size 0x466d lma 0x8000440
Loading section .data, size 0x1ec lma 0x8004ab0
Error finishing flash operation
(gdb) 

Does anyone know, how to solve this?

Thank you,

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions