cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX MDF/ADF Driver for STM32U3 does not build

jacopokunak
Associate III

Hi,

I have a project working on a STM32U5 and I was curious to port it to STM32U3 to see the differences in power consumption.

I have built the project for the STM32U3 with CubeMX with the firmware packet "FW_U3 V1.1.0" , which is currently the latest available.

My project uses ADF1 to acquire the signal from a digital microphone among other things.

I configured all the pheripherals and added my code without any problem but when I built the project the mdf.c source file in function "void HAL_MDF_MspInit(MDF_HandleTypeDef* mdfHandle)" (which is automatically generated by CubeMX) gave me an undefined reference error for this definition "IS_ADF_INSTANCE(mdfHandle->Instance)".

IS_ADF_INSTANCE() is missing.

I look into my STM32U5 project and this Macro is defined in file "stm32u5xx_hal_mdf.h" .

I added it manually into the USER CODE of my STM32U3 mdf.c file and the project builds perfectly.

 

Please check the next release MDF/ADF drivers that are released for CubeMX, since this automatically generated code should be bug free. 

1 REPLY 1
KDJEM.1
ST Employee

Hello @jacopokunak ,

 

Thank you for bringing this issue to our attention. 

I reported internally.

 

Internal ticket number: 207079 (This is an internal tracking number and is not accessible or usable by customers).

 

Thank you.

Kaouthar

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.