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

STM32F303K8 detected as F334 device #685

Closed
6 tasks done
WRansohoff opened this issue Mar 17, 2018 · 6 comments · Fixed by #758
Closed
6 tasks done

STM32F303K8 detected as F334 device #685

WRansohoff opened this issue Mar 17, 2018 · 6 comments · Fixed by #758

Comments

@WRansohoff
Copy link
Contributor

  • Programmer/board type: Stlink/v2
  • Programmer firmware version: Unknown; generic ST-Link clone.
  • Operating system: Ubuntu 16.04
  • Stlink tools version and/or git commit hash: v1.5.0 release
  • Stlink commandline tool name: st-util
  • Target chip (and optional board): STM32F303K8

A as-detailed description possible of the problem with debug output when available.

Output:

st-util 1.5.0
2018-03-16T22:54:36 INFO usb.c: -- exit_dfu_mode
2018-03-16T22:54:36 INFO common.c: Loading device parameters....
2018-03-16T22:54:36 INFO common.c: Device connected is: F334 device, id 0x10016438
2018-03-16T22:54:36 INFO common.c: SRAM size: 0x3000 bytes (12 KiB), Flash: 0x10000 bytes (64 KiB) in pages of 2048 bytes
2018-03-16T22:54:36 INFO gdb-server.c: Chip ID is 00000438, Core ID is  2ba01477.
2018-03-16T22:54:36 INFO gdb-server.c: Listening at *:4242...

Expected/description:
The chips are STM32F303K8T6s, not F334s. I first noticed this with some chips that I ordered from Taobao and figured I'd just gotten some rejects from a mislabeled batch or something, but this also happens with chips from Digikey.

I don't think this causes any serious issues, but it's a little odd.

@xor-gate
Copy link
Member

The output is based on this:

https://github.com/texane/stlink/blob/master/include/stlink/chipid.h#L55

Probably the chipid 0x438 is F3xx series and the string should be different. As done by the pystlink project https://github.com/pavelrevak/pystlink/blob/master/lib/stm32devices.py#L360-L373

@xor-gate xor-gate added this to the Unplanned (Contributions Welcome) milestone Mar 17, 2018
@WRansohoff
Copy link
Contributor Author

Interesting, thanks - I think I also have a Nucleo board with an F303K chip, I'll double-check that and/or look for reference documents to see if a new ID might make sense.

@WRansohoff
Copy link
Contributor Author

Sorry to leave this open for so long; I looked it up in RM0316, the ID is for F303x6, F303x8, F334, and F328 devices.

So I'm not sure what to call that or if it's even worth updating, but:

#758

(Or just close the issue, I guess)

@xor-gate
Copy link
Member

PR #758 is merged, so probably you can close this issue now?

@xor-gate xor-gate modified the milestones: Unplanned (Contributions Welcome), Next Jan 13, 2019
@xor-gate
Copy link
Member

@WRansohoff nice to know is when you use special text in commit messages it automaticly is added to the issue e.g (see issue #685). See https://help.github.com/articles/closing-issues-using-keywords/

@WRansohoff
Copy link
Contributor Author

Oh, good to know - thanks

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

Successfully merging a pull request may close this issue.

3 participants