Skip to main content
Nandan V
Associate II
July 21, 2021
Solved

X-CUBE-SMBUS Middleware not supported for STM32F407

  • July 21, 2021
  • 2 replies
  • 1043 views

Is there any way to use the X-CUBE-SMBUS middleware from ST with STM32F407?

The controller does support it but ST's middleware does not.

Does anyone know why it would not be supported?

The reason I say its not is because the HAL for it is not in the #ifdef switches as shown in the code snippet below.

// From en.x-cube-smbus_v2.0.3/STM32_AN4502_FW_V2.0.3/Middlewares/ST/STM32_SMBus_Stack/inc/stm32_SMBUS_stack.h
 
#include "stm32_config_stack.h" 
 
#ifdef STM32F072xB
#include "stm32f0xx_hal.h"
#endif
 
#ifdef STM32F303xC
#include "stm32f3xx_hal.h"
#endif
 
#ifdef STM32L053xx
#include "stm32l0xx_hal.h"
#endif
 
#ifdef STM32L476xx
#include "stm32l4xx_hal.h"
#endif
 
#ifdef STM32L4R5xx
#include "stm32l4xx_hal.h"
#endif
 
#ifdef STM32H743xx 
#include "stm32h7xx_hal.h"
#endif 
 
#ifdef STM32WB55xx 
#include "stm32wbxx_hal.h"
#endif
 
#ifdef STM32G431xx 
#include "stm32g4xx_hal.h"
#endif

This topic has been closed for replies.
Best answer by Bubbles

Hello @Community member​ 

the STM32F1, F2 and F4 use different communication interface than the newer series. Their HAL driver is not compatible with the MW. You can try to modify the MW to support the older series, it should be possible with some effort. However ST is not going to commit resources to that project, focus is on new product development.

J.

2 replies

Technical Moderator
July 23, 2021

Hello @Community member​ ,

There is no plan yet to modify the SMBUS middleware to support and use the STM32F4 HAL driver.

Please have a look at this post for more details.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Imen

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
Bubbles
BubblesBest answer
ST Employee
July 26, 2021

Hello @Community member​ 

the STM32F1, F2 and F4 use different communication interface than the newer series. Their HAL driver is not compatible with the MW. You can try to modify the MW to support the older series, it should be possible with some effort. However ST is not going to commit resources to that project, focus is on new product development.

J.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.