-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[STM32F407VG]: unknown chip id! 0x374b #1122
Comments
@frankplow If you have a board with connected nrst pin, then you do not need to press the reset button. Judging by the fact that the |
Thank you, using that fork/branch has resolved the issue. NRST is connected directly to the Reset button, so the technique given in #1012 worked. I have managed to reproduce the issue by uploading a specific binary (https://www.dropbox.com/s/mvo04e8oemirly4/mbed-os-example-blinky-baremetal.bin?dl=0). Here is the source of the file: https://arm-software.github.io/CMSIS_5/DSP/html/arm_dotproduct_example_f32_8c-example.html. I am compiling it using mbed-cli. |
@frankplow There is no hardware configuration in the code. Apparently mbed-cli adds it for you. You may be using Mbed OS and it going into sleep (for example sleep with SysTick interrupt wake-up). |
I returned to this today, aiming to do a bit more testing and narrow down exactly what it was in that file causing the issue, and the binary above no longer creates the @Ant-ON Yeah I omitted the detail of adding |
@frankplow Then I have no ideas yet, which leads to the inaccessibility of the target for debugging. |
The STLINK/V2-A was working as expected for some time, then seemingly randomly stopped working. Initially, it failed to flash or erase (note:
st-flash erase
is used here, but runningst-flash write
results in the exact same errors in all cases) instead giving the output:As per recommendation in #1040 and #1047, I upgraded the STLINK firmware. It is now running version V2J37M27. This firmware upgrade did not fix the issue, and appeared to make little difference to the output of
st-info
(apologies, I lost this output from before the upgrade). The read chip ID was changed to0x374b
however, so I now get the output:If I use the development version of stlink, I get
and if the reset button is held:
however no erasure actually occurs.
Following the advice in #1012 to tap reset then immediately execute the erase command results in:
Some assorted
--debug
,st-info
andst-util
outputs are provided here: https://pastebin.com/eYQJVwkzNotably, the chip ID seems to be read as
0
by bothst-info
andst-util
.Expected/description:
The device is erased.
The text was updated successfully, but these errors were encountered: