cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F042F PA11/PA12 remapping

sk-st
Associate II
Posted on June 15, 2015 at 10:05

Hi,

i want to use the STM32F042F in a TSSOP20 package.

I need USB (device) and CAN. Both USB and CAN are routed

to PA11/PA12. Datasheet tells, that PA11/PA12 can be remapped

to PA9/PA10. Does the USB_DP and USB_DM stay at PA11/PA12

when doing this and CAN AF moves to PA9/PA10?

Thanks.
1 REPLY 1
chrif
Associate II
Posted on June 18, 2015 at 16:23

Hi,

According to the datasheet and page 177 of the reference manual RM0091, the peripheral CAN is only available on PA11/PA12 (configured as an alternate function). So, you can use USB device by setting '1' in the bit 4 (

PA11_PA12_RMP)

of the register

SYSCFG_CFGR1, and USB_DP and USB_DM are routed to PA9/PA10.