Skip to main content
sk-st
Associate III
June 15, 2015
Question

STM32F042F PA11/PA12 remapping

  • June 15, 2015
  • 1 reply
  • 703 views
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.
    This topic has been closed for replies.

    1 reply

    chrif
    Visitor II
    June 18, 2015
    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.