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

NUCLEO-WL55JC: unknown chip id! 0x497 #1273

Closed
dmazzer opened this issue Sep 29, 2022 · 2 comments · Fixed by #1173
Closed

NUCLEO-WL55JC: unknown chip id! 0x497 #1273

dmazzer opened this issue Sep 29, 2022 · 2 comments · Fixed by #1173

Comments

@dmazzer
Copy link

dmazzer commented Sep 29, 2022

This is a similar issue reported by #1241 but for a different target.

  • Programmer/board type: Onboard STlink (NUCLEO-WL55JC)
  • Operating system an version: Ubuntu 22.04
  • stlink tools version and/or git commit hash: v1.7.0/git-179650d
  • stlink commandline tool name: st-flash, st-info, STM32CubeProgrammer
  • Target chip (and board, if applicable): STM32WL55/NUCLEO-WL55JC

Commandline output:

$ st-flash --format ihex write build/FreeRTOS_Timers.hex.hex
st-flash 1.7.0
2022-09-29T14:32:12 INFO usb.c: Unable to match requested speed 1800 kHz, using 1600 kHz
2022-09-29T14:32:12 WARN common.c: unknown chip id! 0x497
Failed to connect to target

Commandline output:

$ st-info --probe
Found 1 stlink programmers
  version:    V3J10
  serial:     003000175553500920393256
  flash:      0 (pagesize: 0)
  sram:       0
  chipid:     0x0497

With the STM32CubeProgrammer the board can be programmed without problems:

Commandline output:

$ ~/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer.sh -c port=SWD mode=UR -w build/FreeRTOS_Timers.hex -v -g
      -------------------------------------------------------------------
                        STM32CubeProgrammer v2.11.0                  
      -------------------------------------------------------------------

ST-LINK SN  : 003000175553500920393256
ST-LINK FW  : V3J10M3
Board       : NUCLEO-WL55JC
Voltage     : 3,26V
SWD freq    : 12000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x497
Revision ID : Rev Z
Device name : STM32WLxx
Flash size  : 256 KBytes
Device type : MCU
Device CPU  : Cortex-M4
BL Version  : 0xc3



Memory Programming ...
Opening and parsing file: FreeRTOS_Timers.hex
  File          : FreeRTOS_Timers.hex
  Size          : 13,34 KB 
  Address       : 0x08000000 


Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 6]
Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:02.512



Verifying ...


Read progress:
[==================================================] 100% 

Download verified successfully 



RUNNING Program ... 
  Address:      : 0x8000000
Application is running, Please Hold on...
Start operation achieved successfully

Expected/description:
The expected result is that the st-flash could program the board.

@gszy
Copy link
Collaborator

gszy commented Sep 30, 2022

STM32WL/0x497 is not supported in version 1.7.0, it should work in current master, see the changelog and #1173.

@Nightwalker-87
Copy link
Member

Edit: ... in the current develop branch. Thanks @gszy 👍
Thus this issue has already been resolved.

@Nightwalker-87 Nightwalker-87 added this to the v1.7.1 milestone Oct 23, 2022
@Nightwalker-87 Nightwalker-87 changed the title [NUCLEO-WL55JC]: unknown chip id! 0x497 NUCLEO-WL55JC: unknown chip id! 0x497 Oct 23, 2022
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Oct 23, 2022
@Nightwalker-87 Nightwalker-87 linked a pull request Oct 23, 2022 that will close this issue
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