Creating custom STM32L072 board and need advice on the SWO pin
I have a custom STM32L072 board I developed and I'm trying to understand the ST-Link/SWD pin layout. Looking at the Discovery board schematics I was able to determine which pins to use for the SWCLK, and SWDIO pins, but there is some confusion on the SWO pin. Based on the schematic, PA10 is used for the SWO pin - but what is this pin supposed to be configured as in code? STM32CubeMX does not give me any options other then 'Serial Wire Debug' in the SYS tabs. PA10 alternate function is USART1_RX but that doesn't seem right for single wire USART.
I have my board configured with USB on PA12/PA11, and SWD on PA15 (SWCLK) and PA13 (SWDIO). Does anyone have any insight on the SWO pin on the STM32L072 chips?
After some reading, it seems I will have full debug functionality with the SWDIO/SWCLK pins using an external STLink USB connector, but I want to make sure before I get the board developed for testing. I should be able to flash from USB regardless, but having the STLink capability would be nice, and having printfs() capability as well.
Thank you for the help.
