cancel
Showing results for 
Search instead for 
Did you mean: 

STM32C011DxY, WLCSP12

ITEC
Associate

I have a question about configuring pin D1 for UART1 TX (in conjunction with pin E2, UART1 RX).

Pin D1 has the option for PA11, [PA9], PA8

Pin E2 has the option for PA12, [PA10], PA7

1. To use pin D1 for UART1 TX, PA11 must be switched to PA9 (SYSCFG_CFGR1: PA11_RMP: = 1).

2. To use pin E2 as PA12, E2 (PA7 default) must be switched to PA12 (SYSCFG_CFGR3: PINMUX4[1:0] = 1).

3. To use pin E2 for UART1 RX, PA12 must be switched to PA10 (SYSCFG_CFGR1: PA12_RMP: = 1).

 

Question:

What is the default setting for pin D1 (PA11 or PA8)? How is PA11 bound to pin D1? I am missing a setting like (2.) for pin D1. I could not find anything in the manual.

When I configure this setting with STM32CubeMX, the following code is generated:

HAL_SYSCFG_EnableRemap(SYSCFG_REMAP_PA11);                // (1.)
HAL_SYSCFG_EnableRemap(SYSCFG_REMAP_PA12);                // (3.)
HAL_SYSCFG_SetPinBinding(HAL_BIND_WLCSP12_PINE2_PA12);    // (2.)

Where is the binding for pin D1?

 

Many thanks in advance.

Dirk

 
 

 

 

1 REPLY 1
TDK
Super User

HAL_SYSCFG_EnableRemap(SYSCFG_REMAP_PA11) should connect PA11 to D1. The manual suggests there is no SYSCFG3 setting to disable PA8. It will also be connected so keep it high impedance.

If you feel a post has answered your question, please click "Accept as Solution".