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

st-util returns "unknown chip id! 0" / STM32F429 #322

Closed
mrechte opened this issue Jul 26, 2015 · 9 comments
Closed

st-util returns "unknown chip id! 0" / STM32F429 #322

mrechte opened this issue Jul 26, 2015 · 9 comments

Comments

@mrechte
Copy link

mrechte commented Jul 26, 2015

Hello.
Board is STM32F4 Discovery kit for STM32F429

$ st-util
2015-07-26T16:28:00 INFO src/stlink-common.c: Loading device parameters....
2015-07-26T16:28:00 WARN src/stlink-common.c: unknown chip id! 0
$ st-info --chipid
0x0419

stlink build from 1.1.0 source

st-util -v99
2015-07-26T16:48:08 DEBUG src/stlink-common.c: stlink current mode: debug (jtag or swd)
2015-07-26T16:48:08 DEBUG src/stlink-common.c: stlink current mode: debug (jtag or swd)
2015-07-26T16:48:08 DEBUG src/stlink-common.c: *** looking up stlink version
2015-07-26T16:48:08 DEBUG src/stlink-common.c: st vid         = 0x0483 (expect 0x0483)
2015-07-26T16:48:08 DEBUG src/stlink-common.c: stlink pid     = 0x3748
2015-07-26T16:48:08 DEBUG src/stlink-common.c: stlink version = 0x2
2015-07-26T16:48:08 DEBUG src/stlink-common.c: jtag version   = 0x11
2015-07-26T16:48:08 DEBUG src/stlink-common.c: swim version   = 0x0
2015-07-26T16:48:08 DEBUG src/stlink-common.c:     notice: the firmware doesn't support a swim interface
2015-07-26T16:48:08 INFO src/stlink-common.c: Loading device parameters....
2015-07-26T16:48:08 DEBUG src/stlink-common.c: *** stlink_core_id ***
2015-07-26T16:48:08 DEBUG src/stlink-common.c: core_id = 0x2ba01477
2015-07-26T16:48:08 DEBUG src/stlink-common.c: *** stlink_read_debug32 0 is 0xe0042000
2015-07-26T16:48:08 DEBUG src/stlink-common.c: *** stlink_read_debug32 0 is 0x40015800
2015-07-26T16:48:08 WARN src/stlink-common.c: unknown chip id! 0
2015-07-26T16:48:08 DEBUG src/stlink-common.c: *** stlink_close ***
@ghost
Copy link

ghost commented Nov 25, 2015

I'm facing the same problem in Mac OS X.

@mrechte
Copy link
Author

mrechte commented Nov 25, 2015

The problem is Nutx specific. Have a look here: http://www.nuttx.org/doku.php?id=wiki:howtos:jtag-debugging

@xor-gate
Copy link
Member

Could some of you verify it still exists with v1.2.0 or master ?

@kubark42
Copy link

kubark42 commented May 17, 2016

I still get this after checking out latest master and copy-pastaing all text from the readme:

st-util
2016-05-17T14:47:32 INFO /Users/kenz/Documents/sandbox/stlink/src/common.c: Loading device parameters....
2016-05-17T14:47:32 WARN /Users/kenz/Documents/sandbox/stlink/src/common.c: unknown chip id! 0x3001641b

P.S. There doesn't seem to be a --version flag for st-flash. (Related to #378)

@xor-gate
Copy link
Member

xor-gate commented May 17, 2016

@kubark42 yes I know about --version as most people would expect. This is currently not implemented because of not very nice implemented commandline argument parsing and will be resolved in milestone v2.0.0.

I'm trying to dig up the chipid 0x3001641b from the datasheets but i'm unable to find it. Could you help me out?

RM0090 states:

Bits 11:0 DEV_ID[11:0]: Device identifier (STM32F405xx/07xx and STM32F415xx/17xx)
The device ID is 0x413.
Bits 11:0 DEV_ID[11:0]: Device identifier (STM32F42xxx and STM32F43xxx)
The device ID is 0x419

@kubark42
Copy link

kubark42 commented May 17, 2016

@xor-gate Crap, I was trying to update this before anyone got a chance to respond. I hadn't realized I was using an STM32F4Discovery board that still had its jumpers in place. It's no surprise that this was a GIGO situation.

This result should make you happier:

STM32F427

 st-util
2016-05-17T14:57:24 INFO /Users/kenz/Documents/sandbox/stlink/src/common.c: Loading device parameters....
2016-05-17T14:57:24 INFO /Users/kenz/Documents/sandbox/stlink/src/common.c: Device connected is: F42x and F43x device, id 0x20016419
2016-05-17T14:57:24 INFO /Users/kenz/Documents/sandbox/stlink/src/common.c: SRAM size: 0x40000 bytes (256 KiB), Flash: 0x200000 bytes (2048 KiB) in pages of 16384 bytes
2016-05-17T14:57:24 INFO /Users/kenz/Documents/sandbox/stlink/src/gdbserver/gdb-server.c: Chip ID is 00000419, Core ID is  2ba01477.
2016-05-17T14:57:24 INFO /Users/kenz/Documents/sandbox/stlink/src/gdbserver/gdb-server.c: Target voltage is 2881 mV.
2016-05-17T14:57:24 INFO /Users/kenz/Documents/sandbox/stlink/src/gdbserver/gdb-server.c: Listening at *:4242...

STM32F429

$ st-util
2016-05-17T14:58:05 INFO /Users/kenz/Documents/sandbox/stlink/src/usb.c: -- exit_dfu_mode
2016-05-17T14:58:05 INFO /Users/kenz/Documents/sandbox/stlink/src/common.c: Loading device parameters....
2016-05-17T14:58:05 INFO /Users/kenz/Documents/sandbox/stlink/src/common.c: Device connected is: F42x and F43x device, id 0x10036419
2016-05-17T14:58:05 INFO /Users/kenz/Documents/sandbox/stlink/src/common.c: SRAM size: 0x40000 bytes (256 KiB), Flash: 0x200000 bytes (2048 KiB) in pages of 16384 bytes
2016-05-17T14:58:05 INFO /Users/kenz/Documents/sandbox/stlink/src/gdbserver/gdb-server.c: Chip ID is 00000419, Core ID is  2ba01477.
2016-05-17T14:58:05 INFO /Users/kenz/Documents/sandbox/stlink/src/gdbserver/gdb-server.c: Target voltage is 2880 mV.
2016-05-17T14:58:05 INFO /Users/kenz/Documents/sandbox/stlink/src/gdbserver/gdb-server.c: Listening at *:4242...

So I can confirm that I'm not seeing the problem on an STM32F429Discovery while using OSX 10.

@xor-gate
Copy link
Member

xor-gate commented May 17, 2016

Yeah, those things happen. Still we are error-creating-humans 👍. Thanks for testing. I have cross-referenced about the commandline arguments and edited your post. @kubark42 basicly this means we can close this issue then?

When there are still issues with v1.2.0 or master feel free all to open a new issue. Thanks all for your contributions.

@kubark42
Copy link

@xor-gate Thanks for the understanding, and glad after sorting it out I could help test. It does indeed look like there is full st-link support for the STM32F42x chips.

@xor-gate
Copy link
Member

Great!

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

No branches or pull requests

4 participants