2022-05-06 12:46 AM
Hello. I've been trying to make the ADC work in my stm32mp157f-ev1 board. It is my understanding that I need BSP to make it work because when I disabled BSP in the ADC example code I noticed receiving the same result as my code.
When I try to add the BSP files provided in the mp1 package I get errors saying that the I2C_HandleTypeDef is not defined. I tried to work around the issue but to no avail. Is there something I'm missing that I should do or what? Thanks for any help provided
Solved! Go to Solution.
2022-05-06 05:34 AM
HI @Yamir.1 ,
did you generate your code with STM32CubeMx or STM32CubeIDE ?
I recommend that you start a CubeMx/CubeIDE project from STM32MP157F-EV1 board and modify it as you need.
Maybe some help on this page: https://wiki.st.com/stm32mpu/wiki/STM32CubeMP1_Package#Drivers
EV1 BSP are located in Drivers\BSP\STM32MP15xx_EVAL
STPMIC1 control is needed to start ADC supply
Regards.
2022-05-06 05:34 AM
HI @Yamir.1 ,
did you generate your code with STM32CubeMx or STM32CubeIDE ?
I recommend that you start a CubeMx/CubeIDE project from STM32MP157F-EV1 board and modify it as you need.
Maybe some help on this page: https://wiki.st.com/stm32mpu/wiki/STM32CubeMP1_Package#Drivers
EV1 BSP are located in Drivers\BSP\STM32MP15xx_EVAL
STPMIC1 control is needed to start ADC supply
Regards.
2022-05-06 09:37 AM
Thanks for clearing that the problem is with the need for the BSP's STPMIC1. I've worked more on the issue based on that and realized that I need to have I2C enabled when including the BSP driver files to the project. After doing so no error appears anymore.
Thanks a lot for your help