Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ALich3
Beginner
458 Views

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:

vnc.PNG

 

 

My code

Code.PNG

 

 

#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:

errror.PNG

 

Thanks a lot for pointing me into right direction.

 

Tags (1)
0 Kudos
1 Reply
50 Views

Hello Welcome to INTEL forum. The DE10-Nano Board belong to Terasic. It would be better if you could contact Terasic for enquiry related to Terasic board. https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=12&No=20 Please accept my apologies for not being able to assist you fully as this is out of my expertise.
Reply