Where are peripherals initialized?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-09 5: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.
- Labels:
-
STM32CubeMX
-
STM32G4 Series
-
TCPP
-
USB-PD
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-09 6:31 AM
Dear @FGeig.1​
UCPD1 and LPUART1 initialization are done inside the different drivers:
- UCPD is initialized in the following drivers:
- LPUART is initialized through TRACER_EMB utility:
It is why we don't need to use the initialization function generated by CubeMX.
Regards,
Yohann
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-09 6:31 AM
Dear @FGeig.1​
UCPD1 and LPUART1 initialization are done inside the different drivers:
- UCPD is initialized in the following drivers:
- LPUART is initialized through TRACER_EMB utility:
It is why we don't need to use the initialization function generated by CubeMX.
Regards,
Yohann
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-09 7:05 AM
Hi @Yohann M.​
Thank you very much for your quick reply, makes perfect sense now!
