Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Unable to load STM32F401CC custom board with STM32 #1023

Closed
1 task done
dingyifei opened this issue Sep 7, 2020 · 4 comments · Fixed by #954
Closed
1 task done

[feature] Unable to load STM32F401CC custom board with STM32 #1023

dingyifei opened this issue Sep 7, 2020 · 4 comments · Fixed by #954

Comments

@dingyifei
Copy link

dingyifei commented Sep 7, 2020

Thank you for giving feedback to the stlink project.

NOTICE: Please read and follow instructions in #906 before submitting a ticket. This feature request will be deleted without notice when not enough information is provided! So please ensure that all fields are filled out.

  • I made serious effort to avoid creating duplicate or nearly similar issue

In order to allow developers and other contributors to isolate and target your respective issue, please take some time to fill out each of the following items appropriate to your specific problem:

  • Programmer/board type: [STlink V3SET] (e.g Stlink /v1, /v2, /v2-clone, /v2-1)
  • Operating system and version: [Windows] (e.g Linux, Mac OS X, Windows)
  • Stlink tools version and/or git commit hash: [v1.6.1] (e.g v1.1.0/git-c722056)
  • Stlink commandline tool name: [st-util] (e.g st-info, st-flash, st-util)
  • Target chip (and board if applicable): [STM32F401CC] (e.g STM32F402VG)

Futher we kindly ask you to describe the detected problem as detailed as possible and to add debug output if available, by using the following template:

I think it has a connection to #761

Commandline-Output:

GDB:

(gdb) target extended localhost:4242
Remote debugging using localhost:4242
0x00000000 in ?? ()
(gdb) load
Loading section .text, size 0xb86c lma 0x8000000
Loading section .ARM.exidx, size 0x8 lma 0x800b86c
Loading section .data, size 0xa08 lma 0x800b874
Error finishing flash operation
(gdb) disconnect
Ending remote debugging.
(gdb) target extended localhost:4242
Remote debugging using localhost:4242
0x00000000 in ?? ()
(gdb) load
Loading section .text, size 0xb86c lma 0x8000000
Loading section .ARM.exidx, size 0x8 lma 0x800b86c
Loading section .data, size 0xa08 lma 0x800b874
Error finishing flash operation
(gdb)

stlink-util.exe

$ ./st-util.exe
st-util
2020-09-06T18:16:59 INFO usb.c: Unable to match requested speed 1800 kHz, using 1000 kHz
2020-09-06T18:16:59 INFO common.c: F4xx (low power): 64 KiB SRAM, 256 KiB flash in at least 16 KiB pages.
2020-09-06T18:16:59 INFO gdb-server.c: Listening at *:4242...
2020-09-06T18:17:10 INFO gdb-server.c: Found 0 hw breakpoint registers
2020-09-06T18:17:10 INFO gdb-server.c: GDB connected.
2020-09-06T18:17:12 INFO common.c: Attempting to write 16384 (0x4000) bytes to stm32 address: 134217728 (0x8000000)
EraseFlash - Sector:0x0 Size:0x4000 2020-09-06T18:17:12 INFO common.c: Flash page at addr: 0x08000000 erased
2020-09-06T18:17:12 INFO common.c: Finished erasing 1 pages of 16384 (0x4000) bytes
2020-09-06T18:17:12 INFO common.c: Starting Flash write for F2/F4/L4
2020-09-06T18:17:12 INFO flash_loader.c: Successfully loaded flash loader in sram
enabling 32-bit flash writes
size: 16384
2020-09-06T18:17:13 ERROR flash_loader.c: flash loader run error
2020-09-06T18:17:13 ERROR common.c: stlink_flash_loader_run(0x8000000) failed! == -1

Expected/description:

correctly flash STM32F401CC

Thank you for your support.

The stlink project maintainers

@dingyifei dingyifei changed the title [STM32F401CC]: [_$Unable to load F401 cusbom board with STM32 _] [STM32F401CC]: [Unable to load F401 cusbom board with STM32 ] Sep 7, 2020
@dingyifei dingyifei changed the title [STM32F401CC]: [Unable to load F401 cusbom board with STM32 ] [STM32F401CC]: Unable to load F401 cusbom board with STM32 Sep 7, 2020
@chenguokai
Copy link
Collaborator

STLink v3 is not fully supported, I would recommend using v2 or v2.1 for now.

@dingyifei
Copy link
Author

dingyifei commented Sep 7, 2020

Thank you for your reply, I'll try STlink v2 to see if it works.

@Nightwalker-87 Nightwalker-87 added this to the v1.6.2 milestone Sep 7, 2020
@Nightwalker-87 Nightwalker-87 changed the title [STM32F401CC]: Unable to load F401 cusbom board with STM32 [feature-request]: Unable to load STM32F401CC custom board with STM32 Sep 7, 2020
@dingyifei
Copy link
Author

dingyifei commented Sep 7, 2020

I just tested it with V2, F401CC works with the STlink v2.

@Nightwalker-87 Nightwalker-87 changed the title [feature-request]: Unable to load STM32F401CC custom board with STM32 [feature] Unable to load STM32F401CC custom board with STM32 Dec 20, 2020
@Nightwalker-87 Nightwalker-87 modified the milestones: v1.6.2, v1.6.3 Mar 10, 2021
@Nightwalker-87 Nightwalker-87 self-assigned this Apr 3, 2021
@Nightwalker-87 Nightwalker-87 modified the milestones: v1.7.0, v1.6.2 Apr 3, 2021
@Nightwalker-87
Copy link
Member

Closed by #954.

@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants