microsoft / uf2-samdx1

USB Mass Storage bootloader (based on UF2) for SAMD21 and SAMD51
Other
250 stars 305 forks source link

SAMD51 using SERCOM5? #95

Closed edspark closed 4 years ago

edspark commented 4 years ago

I'm a little stumped. I've double and triple checked my hardware on this, but the following configuration for my device does not show up as a boot drive when connected to a computer. Is there something about SERCOM5, or these particular pins that do not work in this configuration? Could someone point me to some literature or forum post that would help elucidate what's going on?

#define BOOT_USART_MODULE                 SERCOM5
#define BOOT_USART_MASK                   APBDMASK
#define BOOT_USART_BUS_CLOCK_INDEX        MCLK_APBDMASK_SERCOM5
#define BOOT_USART_PAD_SETTINGS           UART_RX_PAD1_TX_PAD0
#define BOOT_USART_PAD3                   PINMUX_UNUSED
#define BOOT_USART_PAD2                   PINMUX_UNUSED
#define BOOT_USART_PAD1                   PINMUX_PB30D_SERCOM5_PAD1
#define BOOT_USART_PAD0                   PINMUX_PB31D_SERCOM5_PAD0
#define BOOT_GCLK_ID_CORE                 SERCOM5_GCLK_ID_CORE
#define BOOT_GCLK_ID_SLOW                 SERCOM5_GCLK_ID_SLOW

I should mention I'm using a SAMD51J20A....

edspark commented 4 years ago

Sorry to clutter the space - I had to do a lot more reading than I was willing to do 5 hours ago, but I did figure it out.