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

STM32L476 Discovery ... unknown chip id! 0 #352

Closed
navesta opened this issue Dec 1, 2015 · 4 comments · Fixed by #367
Closed

STM32L476 Discovery ... unknown chip id! 0 #352

navesta opened this issue Dec 1, 2015 · 4 comments · Fixed by #367

Comments

@navesta
Copy link

navesta commented Dec 1, 2015

On 64-bit Ubuntu 14.04, did the following:
1- Installed GUN ARM tool chain, following https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded
2- Installed 32 bit libraries, sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
3- Installed usblib, sudo apt-get install libusb-1.0
4- Got the latest st-link and built it, i.e., (
git clone git://github.com/texane/stlink.git
$ sudo apt-get install libusb-1.0
$ sudo apt-get install autoreconf
$ cd stlink
$ ./autogen.sh
$ ./configure
$ make
$ sudo cp 49-stlinkv2-1.rules /etc/udev/rules.d
$ sudo udevadm control --reload-rules
$ sudo udevadm trigger
)
And am getting this:
stlink$ sudo ./st-util -v99
2015-12-01T12:49:20 DEBUG src/stlink-common.c: stlink current mode: debug (jtag or swd)
2015-12-01T12:49:20 DEBUG src/stlink-common.c: stlink current mode: debug (jtag or swd)
2015-12-01T12:49:20 DEBUG src/stlink-common.c: *** looking up stlink version
2015-12-01T12:49:20 DEBUG src/stlink-common.c: st vid = 0x0483 (expect 0x0483)
2015-12-01T12:49:20 DEBUG src/stlink-common.c: stlink pid = 0x374b
2015-12-01T12:49:20 DEBUG src/stlink-common.c: stlink version = 0x2
2015-12-01T12:49:20 DEBUG src/stlink-common.c: jtag version = 0x18
2015-12-01T12:49:20 DEBUG src/stlink-common.c: swim version = 0xb
2015-12-01T12:49:20 INFO src/stlink-common.c: Loading device parameters....
2015-12-01T12:49:20 DEBUG src/stlink-common.c: *** stlink_core_id ***
2015-12-01T12:49:20 DEBUG src/stlink-common.c: core_id = 0x00000000
2015-12-01T12:49:20 DEBUG src/stlink-common.c: *** stlink_read_debug32 0 is 0xe0042000
2015-12-01T12:49:20 DEBUG src/stlink-common.c: *** stlink_read_debug32 0 is 0x40015800
2015-12-01T12:49:20 WARN src/stlink-common.c: unknown chip id! 0
2015-12-01T12:49:20 DEBUG src/stlink-common.c: *** stlink_close ***

Cheers,

@jeremytregunna
Copy link

I'm also seeing the same problem with the latest code.

@jeremytregunna
Copy link

My issue was worked around by using ST's windows utility to erase flash and load a known good image onto it. After this, openocd started seeing the device properly again.

@xor-gate
Copy link
Member

xor-gate commented May 3, 2016

Please test with latest stlink (master) and newest stlink firmware. Reopen when issue still remains.

@Nightwalker-87
Copy link
Member

Fixed in #367.

@stlink-org stlink-org locked as resolved and limited conversation to collaborators Mar 13, 2021
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.

4 participants