H7 migration, send SPI without using HAL
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-04-28 6:06 AM
Hello dear community!
I've migrated from F7 to H7, everything fine so far.
To save CPU time I don't want to use HAL for sending two SPI bytes.
My F7 transmit SPI code was very simple and perfectly working :
SPI6->DR = byte_0;
SPI6->DR = byte_1;
But on the H7, the same code doesn't work :
SPI6->TXDR = byte_0;
SPI6->TXDR = byte_1;
In both F7 and H7 projects, this is always working (but time-consuming) :
HAL_SPI_Transmit(&hspi6, const_cast<uint8_t*>(buffer), 2, 1000);
Do you know why bypassing HAL is not possible on the H7 ?
Thanks!
Jean
Labels:
- Labels:
-
SPI
-
STM32F7 Series
-
STM32H7 Series
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-07-25 6:27 AM
Excellent - please mark that as the solution;
https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256
A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
A complex system designed from scratch never works and cannot be patched up to make it work.

- « Previous
-
- 1
- 2
- Next »