-
Notifications
You must be signed in to change notification settings - Fork 488
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
CMSIS Pack for STM32F7/H7 broken? #727
Comments
Hi On my side (python 2.7 + Windows 10), I could connect my NUCLEO-F767ZI:
Maybe you could try to update the board ST Link FW: https://www.st.com/en/development-tools/stsw-link007.html |
Hi Jerome, After updating the Firmware through the STM32 ST-Link Utility and erasing the chips flash pyocd works. It seems like the software I flashed previously somehow kept pyocd from reliably making a connection. Yet the DFP for the STM32F7, H7 and G0 aren't properly downloaded by pyocd, thus keeping me from installing them through Thank you very much! |
I met the same problem as you. Have you solved it? |
Not really. I just went with downloading the CMSIS pack manually and erasing the STMs flash memory before flashing and/or using PyOCD. It's more of a workaround than a true "solution", but once you automate it you'll forget about it really. |
Hi, I have the same issue, how did you supply the CMSIS packs manually? |
Please see the target support documentation for how to do this. In short, download packs from the pack list, then use Fyi, the pack download problem described by this issue is actually fixed. But there is a problem where pyocd/cmsis-pack-manager is too aggressive in parallelizing the index download. This triggers the servers' DoS protection and the requests are blocked. Only Keil and NXP servers seem to have this response. Documented in pyocd/cmsis-pack-manager#190. |
I'm trying to build and run code through MBed Studio, and when I try to build any program it compiles successfully, but when I try to run it I get the 'No cores were discovered' error. I don't really know if I can update the pyocd that is built in Mbed Studio unfortunately. |
The STM32 F7xx and H7xx (and a few other recent families, I think) require DBGMCU registers to be written to enable clocks in order to be fully discoverable by debuggers. This is handled in CMSIS Packs via "debug sequences". Support for debug sequences is in the works for pyocd (at a painfully slow pace, though almost done). Until that feature is merged, you'll have to configure DBGMCU yourself in a pyocd user script. It's just like any other debugger's init scripts, but in Python. See the Debug chapter of your STM32 device's RM, specifically the DBGMCU.CR register, for what settings to apply to enable all clocks. I can't really help for the specifics of Mbed Studio integration since I'm not familiar with it. |
Hi there,
I'm not sure if this is the right place to post this (guess so from reading the docs ) but I suspect that currently the CMSIS packs for the STM32F7 and STM32H7 aren't functional.
Here's the output of
pyocd pack -u
:Thus, I am not able to use pyocd for these targets. I have tried downloading the pack files manually from the site (which, as such, worked) and supplying them to pyocd through the
--pack
option, but that didn't work either. Here is the output:For reference I tried a STM NUCLEO-F303RE that I had lying around. That shows up in my local pack index and is correctly recognized by PyOCD. No issues here.
I also tried using an older version of the STM32F7 pack files (Version 2.11.0 instead of the current 2.12.0), but to no extent. The result is the same.
Can anybody reproduce this issue?
Or tell me how to reach the pack vendor (ST, I guess?) so I can report to them?
I'm using the Python 3 verion of PyOCD, PyOCD Version is 0.22.0.
Host OS is Windows 10 for anybody who might find it to be of interest.
The text was updated successfully, but these errors were encountered: