analogdevicesinc / msdk

Software Development Kit for Analog Device's MAX-series microcontrollers
Apache License 2.0
60 stars 76 forks source link

UART clarity for MAX78000 #864

Closed khavernathy closed 6 months ago

khavernathy commented 6 months ago

I saw in the MAX78000 User guide there are 4 UART instances: image

On the MAX78000 Feather card, there appear to be only 2 (in yellow): image

When I'm writing software to use the UART on the MAX78000 Feather chip, what UART designation should I use for UART2, for example (pins P1_1 and P1_0).

Right now I'm using this:

static mxc_uart_regs_t *Con_Uart = MXC_UART_GET_UART(1);  // 1 for UART2 instead of 0 for default/debug/USB UART.

but i'm currently unable to see printf and other UART writes through the P1_1 and P1_0 pins. I've tested the receiving MCU UART connection and it seems fine (TX/RX to itself, 115200 bps).

khavernathy commented 6 months ago

Ah. I got it working. These were indeed the correct pins. I just had some other initialization steps to take for my specific MCU. Specifically the voltage select: gpioTXD.vssel= MXC_GPIO_VSSEL_VDDIOH;.