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

[STM32WB55]: Misidentified as STM32H7 when selecting chip ID code byte #1100

Closed
5 tasks done
C-Elegans opened this issue Mar 11, 2021 · 0 comments · Fixed by #1101
Closed
5 tasks done

[STM32WB55]: Misidentified as STM32H7 when selecting chip ID code byte #1100

C-Elegans opened this issue Mar 11, 2021 · 0 comments · Fixed by #1101

Comments

@C-Elegans
Copy link
Contributor

C-Elegans commented Mar 11, 2021

  • Programmer/board type: STLink/V2-1
  • Operating system an version: Linux (Arch)
  • Stlink tools version and/or git commit hash: 86e6dd0
  • Stlink commandline tool name: st-flash
  • Target chip (and board, if applicable): STM32WB55

When running st-flash on the develop branch, it outputs the following:

[mnolan@trillian stlink]$ ./build/Release/bin/st-flash --debug --area=option read 
st-flash 1.6.1-216-g1ef2570
2021-03-11T12:06:23 DEBUG common.c: *** looking up stlink version
2021-03-11T12:06:23 DEBUG common.c: st vid         = 0x0483 (expect 0x0483)
2021-03-11T12:06:23 DEBUG common.c: stlink pid     = 0x374b
2021-03-11T12:06:23 DEBUG common.c: stlink version = 0x2
2021-03-11T12:06:23 DEBUG common.c: jtag version   = 0x25
2021-03-11T12:06:23 DEBUG common.c: swim version   = 0x1a
2021-03-11T12:06:23 DEBUG common.c: stlink current mode: mass
2021-03-11T12:06:23 DEBUG usb.c: JTAG/SWD freq set to 0
2021-03-11T12:06:23 DEBUG common.c: *** set_swdclk ***
2021-03-11T12:06:23 DEBUG common.c: stlink current mode: mass
2021-03-11T12:06:23 DEBUG common.c: *** stlink_enter_swd_mode ***
2021-03-11T12:06:23 DEBUG common.c: *** stlink_jtag_reset ***
2021-03-11T12:06:23 DEBUG common.c: *** stlink_reset ***
2021-03-11T12:06:23 WARN usb.c: NRST is not connected
2021-03-11T12:06:23 DEBUG usb.c: Using reset through SYSRESETREQ
2021-03-11T12:06:23 DEBUG common.c: *** stlink_soft_reset ***
2021-03-11T12:06:23 DEBUG common.c: *** stlink_write_debug32 0xa05f0003 to 0xe000edf0
2021-03-11T12:06:23 DEBUG common.c: *** stlink_write_debug32 0x01000500 to 0xe000edfc
2021-03-11T12:06:23 DEBUG common.c: *** stlink_read_debug32 0x01030003 at 0xe000edf0
2021-03-11T12:06:23 DEBUG common.c: *** stlink_write_debug32 0x05fa0004 to 0xe000ed0c
2021-03-11T12:06:23 DEBUG common.c: *** stlink_read_debug32 0x03010001 at 0xe000edf0
2021-03-11T12:06:23 DEBUG common.c: *** stlink_read_debug32 0x01010001 at 0xe000edf0
2021-03-11T12:06:23 DEBUG common.c: *** stlink_write_debug32 0x0000001f to 0xe000ed30
2021-03-11T12:06:23 DEBUG common.c: Loading device parameters....
2021-03-11T12:06:23 DEBUG common.c: *** stlink_core_id ***
2021-03-11T12:06:23 DEBUG common.c: core_id = 0x6ba02477
2021-03-11T12:06:23 DEBUG common.c: *** stlink_read_debug32 0x0000001f at 0x5c001000
2021-03-11T12:06:23 WARN common.c: unknown chip id! 0x1f

Evidently it is trying to read the chip ID from address 0x5c001000, however the STM32WB55 has its chip ID stored at 0xe0042000. This error also does not occur using st-flash v1.6.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.