FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5929 Discussions

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

ALich3
Beginner
799 Views

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.

 

0 Kudos
1 Reply
AR_A_Intel
Employee
391 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.
0 Kudos
Reply