-
Notifications
You must be signed in to change notification settings - Fork 56
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
How to program an STM32H750? #67
Comments
Chip ID 0x450 should be known, since the code contains this: The problem is, the default release of stm32loader on PyPI is too old. It is 0.5.1 while you need 0.6.x . I can add 0.6.0 if you're prepared to test it out? |
Hi, version 0.6.0 is released. Can you give it a try? |
You're also welcome to test out the test version of 0.7.0 from here: https://test.pypi.org/project/stm32loader/0.7.0.dev0/#files |
Thanks @florisla. I upgraded to
Programming without -f does. The chip id is now known and the missing -f warning is printed (good).
Adding -f H7 crashes the program
I will try 0.7.0 dev and will report here. |
And this is what I got with 0.7.0.dev0
Without the -f H7 it crashes:
And it crashes with the -f H7
|
You exposed not one but two bugs... Sorry about the inconvenience. Could you test |
Hi @florisla, I tried dev 1 and it doesn't program at all, exiting with a message regarding a missing length.
|
Sorry about that! |
@florisla, thank you for taking the time. It looks good now. If you have additional tests in mind, please let me know.
|
One more thing, the chip is STM32H750 but is identified as STM32H76xxx/77xxx. Anything that can be done?
|
Funny, the H76xxx and H77xxx series don't even exist :-) I think it's a copy-paste error because AN2606 does in fact mention Will be fixed in the final v0.7.0. I'm confused that the write action seems to occur before the erase, and verification succeeds after erase... Did you truncate some of the output? Would be great if you could test erasing a single sector of the flash memory:
|
No, didn't truncate the output, it includes everything. This is what I get when I try the erase command:
|
This one should work better: |
@florisla, here is the log of the three commands. It looks good. The erasure message is still at the end. Also, would be nice to say exactly in the log what was erased, it's not clear if its just the write area or the entire flash. (as a layman I don't know that 'Extended erase (0x44)' means). Thanks for your help, If you want me to run additional tests please let me know. This utility is a god send. It allows me to provide a single reflashing utility (I build an app specific binary using pyinstaller such that they don't need to install python) instead of instructing the users to register to ST and download their programming app.
|
Hi, if you want to distribute a binary, it may be worthwhile to try out |
It looks like a very capable tool indeed. I am using stm32loader because it allows me to add a thin layer application specific logic, and is highly portable since it's based on Python. https://github.com/zapta/daq/blob/main/host/src/flasher.py#L52 My system has other python based binaries so I don't mine generating one more for the flasher. https://github.com/zapta/daq/blob/main/host/pyinstaller/windows/build_flasher.bat#L18 |
All these fixes are now release as v0.7.1. |
TL;DR, what -f (family) value to use with STM32H750 ?
When I program an STM32H750 I am getting a message that -f family is missing and that chip id 0x450 is unknown. When I add -f H7 I am getting an error. What -f value should I use?
Programming without the -f flag
Programming with the -f H7 flag:
The text was updated successfully, but these errors were encountered: