Has anyone had any success getting UART working on the Azure Sphere?
I've taken a look at Microsofts documentation and the UART example that I could find. I can't seem to get a UART_OPEN that doesn't return an error (-1).
I think I'm getting Tripped up on UART ID. My guess is that this UART_ID is the ID defined in the application manifest eg "Uart": ["ISU0] would be 0.
I've done the usual rx->tx and tx_>rx, ensured my serial device is 3.3v and is outputting data so I'm a bit confused by this.
I've ensured that i've defined "Uart": ["ISU0"] in my app_manifest.json.
Has anyone had any success and have any tips?
Minimal example for what I'm trying
```c
#include <applibs/log.h>
#include <applibs/gpio.h>
#define UART_STRUCTS_VERSION 1
#include <applibs/uart.h>
int uartFd = -2;
int main(int argc, char *argv[])
{
UART_Config uartConfig;
UART_InitConfig(&uartConfig);
uartConfig.baudRate = 9600;
uartFd = UART_Open(0, &uartConfig);
if (uartFd < 0)
{
Log_Debug(":( Couldn't open UART");
}
else
{
Log_Debug("YAY!");
}
return 0;
}
```