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

STM32F1 hal lacks some interfaces #79809

Open
Szewcson opened this issue Oct 14, 2024 · 6 comments · May be fixed by zephyrproject-rtos/hal_stm32#239
Open

STM32F1 hal lacks some interfaces #79809

Szewcson opened this issue Oct 14, 2024 · 6 comments · May be fixed by zephyrproject-rtos/hal_stm32#239
Assignees
Labels
Feature Request A request for a new feature platform: STM32 ST Micro STM32

Comments

@Szewcson
Copy link

Is your feature request related to a problem? Please describe.
STM32F1x hal lacks fsmc, i2s, sdio and probably other interfaces.

Describe the solution you'd like
Add dtsi definitions like in higher families

Additional context
I want to port Zephyr to stm32primer 2 board, I'm currently working on board folder, and thinking about adding drivers, but I think hal is not my cup of tea.

@Szewcson Szewcson added the Feature Request A request for a new feature label Oct 14, 2024
@nordicjm nordicjm added the platform: STM32 ST Micro STM32 label Oct 15, 2024
@erwango
Copy link
Member

erwango commented Oct 15, 2024

Hi @Szewcso, thanks for your interest. We don't have plans or bandwidth to do these developments atm, but we'll surely help to review attempts to make it happen if you'd like to contribute.

@benjaminbjornsson
Copy link
Member

Hi @Szewcson,

Maybe I can help. Not sure exactly what you're asking for though, can you elaborate?

@Szewcson
Copy link
Author

Szewcson commented Oct 28, 2024

I want to use fsmc, sdio and i2s on stm32f103vet6. I saw that that family don't have that peripherals defined in hal headers. Also I wonder if driver for fmc handles fsmc.

@Szewcson
Copy link
Author

Which file I should edit to add all the defines? Are there other changes needed to backport those peripherals to lower family?

@benjaminbjornsson
Copy link
Member

I had a look at the I2S and the SPI/I2S registers look almost identical between F1 and F4, so hopefully the driver works with at most minor changes. Also, the I2S pinctrl definitions are missing, and those will have to be generated in the hal_stm32 repository.

@benjaminbjornsson
Copy link
Member

Hi @Szewcson,

I made a draft PR #81181 which currently tries to add I2S support. Unfortunately I don't have F1 hardware, but maybe you can help me with testing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request A request for a new feature platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants