SAMB11 megamux UART

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did anyone have any success in using the megamux values ?

 

I tried to map the UART0 to GPIO 6/7 using

 

config_uart.pin_number_pad[0] = MEGAMUX_LP_GPIO_6_UART0_RXD; 
config_uart.pin_number_pad[1] = MEGAMUX_LP_GPIO_7_UART0_TXD; 
config_uart.pinmux_sel_pad[0] = MUX_LP_GPIO_6_MEGAMUX; 
config_uart.pinmux_sel_pad[1] = MUX_LP_GPIO_7_MEGAMUX; 

 

 

and using UART0 module at uart_init

 

But I get no output.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Try something more like this (untested but similar to something I just did successfully):

 

config_uart.pin_number_pad[0] = PIN_LP_GPIO_6; 
config_uart.pin_number_pad[1] = PIN_LP_GPIO_7; 
 

config_uart.pinmux_sel_pad[0] = PINMUX_LP_GPIO_6_M_UART0_RXD; 
config_uart.pinmux_sel_pad[1] = PINMUX_LP_GPIO_7_M_UART0_TXD; 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you for posting this information.  Do you know where I can find documentation on setting megamux options in the Atmel software? Thanks a lot!