Forum Discussion

ALich3's avatar
ALich3
Icon for New Contributor rankNew Contributor
6 years ago

Trying to get DE10Nano to work with Bluetooth HC-05 module using UART - missing files from mraa library

Default DE10Nano image for SD card is supposed to have mraa library.that has declared UART functions but it seems like source files are missing. All I found is this:

My code

#include "mraa/uart.h"

#include "mraa/common.h"

#include "mraa/firmata.h"

#include "mraa/gpio.h"

#include "mraa/pwm.h"

#include "mraa/i2c.h"

#include "mraa/iio.h"

#include "mraa/spi.h"

#include "mraa/types.h"

#include "mraa/uart_ow.h"

#include <stdio.h>

int main(void)

{

mraa_uart_context uart;

uart=mraa_uart_init_raw("/dev/ttyS0");

if (uart!=NULL)

{

printf("Error\n");

}

return 0;

}

Error:

Thanks a lot for pointing me into right direction.