2020-12-09 05:49 AM
I am implementing a USBPD application, using the NUCLEO-G474RE example of x-cube-usbpdm1 (it is called TCPP01_Consumer).
The example works fine, but I am a bit confused as to where all the peripherals are initalized. The MX init functions are generated, but in the example project STM32CubeMX was configured to NOT generate a function call.
I have found the place where the ADC and the GPIO pins are initalized, however, I can't find out where UCPD1, DMA or LPUART1 are initalized.
I am quite sure that the init functions generated by STM32CubeMX are never called by the example code. Where are these peripherals initalized?
Solved! Go to Solution.
2020-12-09 06:31 AM
Dear @FGeig.1
UCPD1 and LPUART1 initialization are done inside the different drivers:
It is why we don't need to use the initialization function generated by CubeMX.
Regards,
Yohann
2020-12-09 06:31 AM
Dear @FGeig.1
UCPD1 and LPUART1 initialization are done inside the different drivers:
It is why we don't need to use the initialization function generated by CubeMX.
Regards,
Yohann
2020-12-09 07:05 AM
Hi @Yohann M.
Thank you very much for your quick reply, makes perfect sense now!