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

[STM32H503] SPI1 does not send anything #2598

Closed
fpistm opened this issue Dec 9, 2024 Discussed in #2595 · 0 comments · Fixed by #2599
Closed

[STM32H503] SPI1 does not send anything #2598

fpistm opened this issue Dec 9, 2024 Discussed in #2595 · 0 comments · Fixed by #2599
Labels
bug 🐛 Something isn't working
Milestone

Comments

@fpistm
Copy link
Member

fpistm commented Dec 9, 2024

Discussed in https://github.com/orgs/stm32duino/discussions/2595

Originally posted by smalcom December 9, 2024
Good day, everyone.

I'm trying to launch SPI1 under Arduino IDE. The transmission didn't work and I switched to direct control of the registers.

The problem is solved. By default, stm32duino sets the system clocking from PLL1P. And SPI1 cannot use this signal as a source. I switched SPI1 to clocking from PER_CK and everything worked.

Copy of the stthread

@fpistm fpistm added this to the 2.10 milestone Dec 9, 2024
@fpistm fpistm added the bug 🐛 Something isn't working label Dec 9, 2024
@fpistm fpistm changed the title [SOLVED] [STM32H503] SPI1 does not send anything [STM32H503] SPI1 does not send anything Dec 9, 2024
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Dec 9, 2024
Also prevent to use HSE as it is not operational
as oscillator. See Errata sheet.

Fixes stm32duino#2598

Signed-off-by: Frederic Pillon <[email protected]>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Jan 20, 2025
Also prevent to use HSE as it is not operational
as oscillator. See Errata sheet.

Fixes stm32duino#2598

Signed-off-by: Frederic Pillon <[email protected]>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Jan 21, 2025
SPI clock selection have to be explicitly done
and ensure frequency allows standard SPI freq
based on the SPI baudrate prescaler.

Also prevent to use HSE as it is not operational
as oscillator. See Errata sheet.

Fixes stm32duino#2598

Signed-off-by: Frederic Pillon <[email protected]>
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Jan 22, 2025
SPI clock selection have to be explicitly done
and ensure frequency allows standard SPI freq
based on the SPI baudrate prescaler.

Also prevent to use HSE as it is not operational
as oscillator. See Errata sheet.

Fixes stm32duino#2598

Signed-off-by: Frederic Pillon <[email protected]>
fpistm added a commit that referenced this issue Jan 22, 2025
SPI clock selection have to be explicitly done
and ensure frequency allows standard SPI freq
based on the SPI baudrate prescaler.

Also prevent to use HSE as it is not operational
as oscillator. See Errata sheet.

Fixes #2598

Signed-off-by: Frederic Pillon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

1 participant