CubeMX MDF/ADF Driver for STM32U3 does not build
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.
