cancel
Showing results for 
Search instead for 
Did you mean: 

SWD Conflict w/ USART2 or System Wake-Up on STM32L0?

jvavra
Associate III

Using CubeMX to create a new project on the STM32L0X0 series. I need two UARTS, which this part offers. However, in CubeMX, when I try to enable the SWD, it creates a conflict is the SYS tab for "System Wake-Up 3". When I roll over this, it says it conflicts with "USART2: Asynchronous Mode" . I'm not sure what System Wake-Up 3 is; I don't see any reference to multiple instances of wake-ups in the reference manual. I also don't see a GPIO conflict; the SWD interface only uses PA13 and PA14 which nothing else needs. What am I missing?

1 ACCEPTED SOLUTION

Accepted Solutions
Jaroslav JANOS
ST Employee

Hi @Community member​,

the conflict in the CubeMX is caused by placing USART2_TX signal on the same pin where SYS_WKUP3 is located. So you cannot enable it because the pin is already "occupied". If you don't need this wake-up pin (I suppose you only need SWD), you can ignore it, there is no conflict with SWD and nothing should be stopping you from generating the code.

BR,

Jaroslav

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
Jaroslav JANOS
ST Employee

Hi @Community member​,

the conflict in the CubeMX is caused by placing USART2_TX signal on the same pin where SYS_WKUP3 is located. So you cannot enable it because the pin is already "occupied". If you don't need this wake-up pin (I suppose you only need SWD), you can ignore it, there is no conflict with SWD and nothing should be stopping you from generating the code.

BR,

Jaroslav

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.