cancel
Showing results for 
Search instead for 
Did you mean: 

LL Driver Support for SPI on STM32H743ZI

mohitha
Visitor

I am working on a project using the STM32H743ZI microcontroller.
I want to implement SPI communication using the LL (Low-Layer) drivers instead of HAL.

:question_mark: Can you confirm whether the STM32H743ZI supports LL SPI driver APIs like LL_SPI_Init, LL_SPI_TransmitData8, etc.?

Also, are there any specific settings or header files (like USE_FULL_LL_DRIVER) required to enable these LL functions in STM32CubeIDE

Does STM32H743ZI support SPI communication using LL drivers? I’m using STM32CubeIDE.
SPI1 is enabled, but LL_SPI functions are disabled unless I define USE_FULL_LL_DRIVER.
Is this the correct way to enable LL SPI support?

4 REPLIES 4
KnarfB
Super User

How was the project code generated? By STM32CubeMX (.ioc file)?

 

I am using stm32h747bit6-DISO board in stm32cubeide 1.18.1 software 

You can switch between HAL and LL drivers (when available) in the Project Manager TAB (Advanced Settings).

This should enable USE_FULL_LL_DRIVER automatically.

Andrew Neil
Super User

@mohitha wrote:

Can you confirm whether the STM32H743ZI supports LL SPI driver APIs like LL_SPI_Init, LL_SPI_TransmitData8, etc.?


You have that question the wrong way around!

The STM32H743ZI neither knows nor cares what you use in your source code - all it sees are the binary instructions in its Flash.

The question, then, is whether the Firmware Pack provides these LL APIs.

 

You can find this on the 'Tools & Software' tab of the STM32H743ZI  Product Page:

https://www.st.com/en/microcontrollers-microprocessors/stm32h743zi.html#tools-software

This links you to the STM32CubeH7 firmware package - see the 'Documentation' tab for documentation:

https://www.st.com/en/embedded-software/stm32cubeh7.html#documentation

 

The document you require is UM2217Description of STM32H7 HAL and low-layer drivers:

AndrewNeil_0-1750751839940.png

 

https://www.st.com/resource/en/user_manual/um2217-description-of-stm32h7-hal-and-lowlayer-drivers-stmicroelectronics.pdf#page=3561 

 

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.