Author Topic: Compilation error  (Read 618 times)

DavidT4F

  • RFduino Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Compilation error
« on: October 12, 2016, 02:36:50 AM »
Hi,

I installed the Ardunio version 1.6.5 and Simblee Boards version 1.1.0. My computer works with the Windows 10 OS.

When I try to load a program into the simblee, I get the following compilation error:

arm-none-eabi-g++: error: C:\............AppData\Local\Temp\build6717283240942369211.tmp/core/syscalls.c.o: No such file or directory
arm-none-eabi-g++: error: C:\............AppData\Local\Temp\build6717283240942369211.tmp/core.a: No such file or directory
Error de compilaciĆ³n

It is for the operating system?


tolson

  • Global Moderator
  • *****
  • Posts: 803
  • Karma: +18/-0
    • View Profile
    • Thomas Olson Consulting
Re: Compilation error
« Reply #1 on: October 12, 2016, 10:12:38 AM »
Arduino 1.6.5 is way old and I don't think the latest Simblee Library works with that.

Use Arduino 1.6.11

RFDNewbie

  • RFduino Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Compilation error
« Reply #2 on: October 12, 2016, 11:12:06 AM »

tolson

  • Global Moderator
  • *****
  • Posts: 803
  • Karma: +18/-0
    • View Profile
    • Thomas Olson Consulting
Re: Compilation error
« Reply #3 on: October 12, 2016, 11:55:04 AM »
Good point. Perhaps the wrong JSON file was used.

But, since this sounds like a first install of the Arduino IDE, I wanted to encourage the use of the latest known working version of Arduino IDE, instead of deprecated ones, to take advantage of whatever improvements are in place.

But you are right, if  you must use 1.6.5 then use...
https://www.simblee.com/package_simblee_index.json

Otherwise use...
https://www.simblee.com/package_simblee166_index.json

DavidT4F

  • RFduino Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Compilation error
« Reply #4 on: October 17, 2016, 11:05:14 AM »
I installed version Arduino IDE 1.6.5 and the problem has been solved.

Now, I have a problem with Simblee and the library SoftwareSerial.h. I understand that the UART communication, the library,  is not supported with simblee because it us using Bluetooth..?

I'm trying to communicate with a sensor for UART. The sensor is Leddartech One.

How I can do it with the simblee? This is the code:

Code: [Select]
#include <SoftwareSerial.h>
#include <Leddar.h>

LeddarOne Leddar1(115200,1);
//Baudrate = 115200
//Modbus slave ID = 01
// NOTE: If your RS-485 shield has a Tx Enable (or DE) pin,
// use: Leddar Leddar1(115200,1, TxEnablePinNumber, 1);


void setup()
{
Serial.begin(115200); //Opens serial connection at 9600bps.

//Initialize Leddar
Leddar1.init();
}

void loop()
{
unsigned int Distance = 0;
unsigned int Amplitude = 0;

char result = Leddar1.getDetections();

if (result >= 0)
{
// Show the first detection only
Distance = Leddar1.Detections[0].Distance;
Amplitude = Leddar1.Detections[0].Amplitude;

Serial.print("Distance: "); Serial.println(Distance);
Serial.print("Amplitude: "); Serial.println(Amplitude);

}
delay(50);
}

« Last Edit: October 17, 2016, 01:08:58 PM by tolson »