-
Notifications
You must be signed in to change notification settings - Fork 243
STM32U5 #504
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
Comments
Ah, main availability won't be until September and it looks like CubeMX (and hence the packs containing the SVD files) won't be around until then. I expect it'll appear at https://github.com/STMicroelectronics/STM32CubeU5 |
Update from September: the GitHub repo exists and has C headers, but no sign of an SVD file there or on st.com yet. |
Seems like they heard you talking about it; available here, uploaded on the same day. 😅 |
Just being curious: what do you think is a typical / reasonable timeline for a dedicated crate for this MCU? :) . |
I have no need for the chip now, so I won't be writing anything (unless I'm paid to do so). |
I've got my hands on a I've followed the steps in the "Adding New Devices" section in the README:
Any input how to solve the error? cc @adamgreig, @jonathanpallant |
Thanks for trying to get it working! The error message is saying that the SMS1 field in the TIM1_SMCR register has some _clear_fields: ["*"] See the |
The board is indeed in stock at Mouser for example at the time of writing this :) : https://no.mouser.com/ProductDetail/STMicroelectronics/NUCLEO-U575ZI-Q?qs=Wj%2FVkw3K%252BMD4hdUJJxGixg%3D%3D . Any update? Being curious / n00b: once the pull request from @Urhengulas is merged, does it mean that there will be full support from Rust for all functionalities, or will this be only basic support, with more work needed to get different peripherals / advanced functions to work? :) |
As far as I understand (which might be wrong) this repository only generates "device support crates" aka. "peripheral access crates" (PAC). After my PR lands we still needs to be build the "hardware abstraction layer" (HAL), for it to be actually useful. |
Aaah, ok, many thanks for the explanation, and I guess the HAL is the more labor intensive part, right? Do you know if there are plans / ongoing work for a dedicated HAL for this chip once your PAC PR lands? :) |
I'd be generally interested to participate in that effort. Mainly to try out building support for a new chip. But as you can see from how long my PR is already dangling, my bandwith is currently rather limited 🤷🏾 |
Yes, that is very natural, and it is very kind of you to contribute so much already :) . Curious: would the HAL be on this repo too, or on another repo? If a new repo gets set up for the HAL, can you let me know? :) Btw, @gauteh , guess this is related to what you were mentioning about quite some work needed to take the chip into use? :) |
The HAL is in different repository, e.g. https://github.com/stm32-rs/stm32l4xx-hal. There is usually significant overlap between the chip families, which can be used when setting up a new HAL. But as far as I can see it is a bit hard to share code between the different families now, so keeping things consistent and fixing common issues requires a bit of effort. |
What's the status of the PR right now @Urhengulas? I'm a n00b but have played with a growing variety of microcontrollers in rust so there is an outside chance I might be able to help get this across the finish line. Maybe after the PAC is in place we can get some help from this repo's maintainer on a working HAL? |
Sounds like a plan. Due to time constraints, I couldn't test the PR yet. But I am hopeful I can do that in the following week(s). |
for anyone looking to use Rust on STM32u5: embassy-stm32 already has full support. |
If a crate depends on embedded-hal to work, does that mean this issue needs to finish supporting the STM32U5 family? For example, can various driver crates such as max7219 use embassy-stm32 to solve this, or is our only option updating stm32-rs and beginning stm32u5xx-hal? I don't mind contributing to this, just trying to build an understanding of if it's necessary. |
This project provides only peripheral (register) access level crates (using SVD files as source) and it does not depend on embedded-hal. So you need
|
@TjRichmond |
Cortex-M33, ultra lower power device. New out today. Let's get to it!
https://www.st.com/en/microcontrollers-microprocessors/stm32u5-series.html
The text was updated successfully, but these errors were encountered: