adding library to toolchain

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
ftrueck
Posts: 41
Joined: 24 Dec 2015 23:46

adding library to toolchain

Post by ftrueck » 17 Oct 2016 12:31

Hi,
I'm porting a library for BMP280 Sensor.
I've added the library folder to the same location where the ZUNO_BMP180 folder exists.
Now the compiler complains that he cannot find my library file.

Location of my libraries (where I found them) is:
C:\Users\ftrue\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.0.6\libraries
Compiler output:
SimpleMultiSensor.ino:2:25: fatal error: ZUNO_BMP280.h: No such file or directory
I've already restarted arduino IDE and nothing changed.
I was searching for config files where the libs could be registered but I found noting.

Is there something else I have to do to add the library, or am I missing someting?

p0lyg0n1
Posts: 160
Joined: 04 Aug 2016 07:14

Re: adding library to toolchain

Post by p0lyg0n1 » 17 Oct 2016 22:58

Hi, frueck. It's very strange. It have to work. So, lets do it together. Step by step:

1. You add your library to folder:
C:\Users\ftrue\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.0.6\libraries\ZUNO_BMP280\
2. Here you placed ZUNO_BMP280.h and ZUNO_BMP280.cpp
3. And then you added to the begining of your sketch
#include <ZUNO_BMP280.h>

Can you give me your sources and content of C:\Users\ftrue\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.0.6\libraries folder. Just zip it :) I can test it myself.

ftrueck
Posts: 41
Joined: 24 Dec 2015 23:46

Re: adding library to toolchain

Post by ftrueck » 18 Oct 2016 12:06

Here we go.
The steps you listed were all what I did.

compiler Error:
************* Building Arduino Sketch *************
C:\Users\ftrue\AppData\Local\Temp\build4373138677530007393.tmp/SimpleMultiSensor.cpp
***************************************************

Preprocessing file: Print.cpp with SDCPP...
Compiling Print_sdcpp_.cpp ...
Preprocessing file: Stream.cpp with SDCPP...
Compiling Stream_sdcpp_.cpp ...
Preprocessing file: Wire.cpp with SDCPP...
Compiling Wire_sdcpp_.cpp ...
Preprocessing file: HardwareSerial.cpp with SDCPP...
Compiling HardwareSerial_sdcpp_.cpp ...
Preprocessing file: HLCore.cpp with SDCPP...
Compiling HLCore_sdcpp_.cpp ...
Preprocessing file: ZUNO_DHT.cpp with SDCPP...
Compiling ZUNO_DHT_sdcpp_.cpp ...
Preprocessing file: _SimpleMultiSensor.cpp with SDCPP...
SimpleMultiSensor.ino:3:25: fatal error: ZUNO_BMP280.h: No such file or directory
compilation terminated.
Preprocessor failed!uCxx returned error code:1

Fehler beim Kompilieren.
My sketch:

Code: Select all

#include "Wire.h"
#include "ZUNO_DHT.h"
#include "ZUNO_BMP280.h"

// ================================
// GLOBAL SETUP
// ================================
#define IDLE_INTERVAL 30000

#define PIN_WIND_SENSOR 16

#define BH1750_I2CADDR 0x23
#define BH1750_CONTINUOUS_HIGH_RES_MODE  0x10

DHT    dht22_sensor(11, DHT22);
ZUNO_BMP280 bmp;


// ================================
// CHANNEL SETUP
// ================================
ZUNO_SETUP_CHANNELS(
  ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_TEMPERATURE, 
                          SENSOR_MULTILEVEL_SCALE_CELSIUS, 
                          SENSOR_MULTILEVEL_SIZE_TWO_BYTES, 
                          SENSOR_MULTILEVEL_PRECISION_TWO_DECIMALS,
                          getterTemp),
  ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_RELATIVE_HUMIDITY, 
                          SENSOR_MULTILEVEL_SCALE_PERCENTAGE_VALUE, 
                          SENSOR_MULTILEVEL_SIZE_TWO_BYTES, 
                          SENSOR_MULTILEVEL_PRECISION_TWO_DECIMALS,
                          getterHumid),
  ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_BAROMETRIC_PRESSURE, 
                          SENSOR_MULTILEVEL_SCALE_KILO_PASCAL, 
                          SENSOR_MULTILEVEL_SIZE_FOUR_BYTES, 
                          SENSOR_MULTILEVEL_PRECISION_TWO_DECIMALS,
                          getterPressure),
  ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_TEMPERATURE, 
                          SENSOR_MULTILEVEL_SCALE_CELSIUS, 
                          SENSOR_MULTILEVEL_SIZE_TWO_BYTES, 
                          SENSOR_MULTILEVEL_PRECISION_TWO_DECIMALS,
                          getterTemp2),
  ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_LUMINANCE,
                          SENSOR_MULTILEVEL_SCALE_LUX,  
                          SENSOR_MULTILEVEL_SIZE_TWO_BYTES, 
                          SENSOR_MULTILEVEL_PRECISION_ZERO_DECIMALS, 
                          getterLight),
  ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_VELOCITY,
                          SENSOR_MULTILEVEL_SCALE_METERS_PER_SECOND,  
                          SENSOR_MULTILEVEL_SIZE_TWO_BYTES, 
                          SENSOR_MULTILEVEL_PRECISION_ZERO_DECIMALS, 
                          getterWindSpeed)
);


// ================================
// SETUP BATTERY POWERED DEVICE
// ================================
//ZUNO_SETUP_SLEEPING_MODE(ZUNO_SLEEPING_MODE_SLEEPING);


// ================================
// Global variables
// ================================
float temp, humid;
word lightLux, pressure, temp2, wind_spd;
s_pin pin_wspd = PIN_WIND_SENSOR;


// ================================
// Arduino setup
// ================================
void setup() {
  pinMode(pin_wspd, INPUT_PULLUP);
  
  Wire.begin();
  Wire.beginTransmission(BH1750_I2CADDR);
  Wire.write(BH1750_CONTINUOUS_HIGH_RES_MODE);
  Wire.endTransmission();

  bmp.begin();
  dht22_sensor.begin();
}


// ================================
// main loop
// ================================
void loop() {
  readBmp280();
  readDht22();
  readBhp1750();
  readWindSpeed();
    
  zunoSendReport(1);
  zunoSendReport(2);
  zunoSendReport(3);
  zunoSendReport(4);
  zunoSendReport(5);
  zunoSendReport(6);
  
  //zunoSendDeviceToSleep();
  delay(IDLE_INTERVAL);
}


// ================================
// reader functions
// ================================
void readBmp280() {
  temp2 = bmp.readTemperature() * 10;
  pressure = bmp.readPressure() / 10;
}

void readDht22() {
  dht22_sensor.read(true); 
  delay(10);
  temp = dht22_sensor.readTemperature() * 100;
  humid = dht22_sensor.readHumidity() * 100;
}

void readBhp1750() {
  word level;

  Wire.begin();
  Wire.beginTransmission(BH1750_I2CADDR);
  Wire.requestFrom(BH1750_I2CADDR, 2);
  
  level = Wire.read() << 8;
  level += Wire.read();

  Wire.endTransmission();

  level = level / 1.2; // convert to lux
  
  lightLux = level;
}

void readWindSpeed() {
  DWORD wind_time = pulseIn(pin_wspd, HIGH, 1000000);
  wind_spd = (wind_time > 0) ? (1000000 / wind_time) * 0.4 : 0;
}

// ================================
// getters
// ================================
word getterTemp() {
  return temp;
}

word getterHumid() {
  return humid;
}

word getterTemp2() {
  return temp2;
}

long getterPressure() {
  return pressure;
}

word getterLight() {
  return lightLux;
}

word getterWindSpeed() {
  return wind_spd;
}
I also tried restarting arduino ide in case of needed file refresh but that did not help.
Attachments
ZUNO_BMP280.zip
BMP280 code
(3.67 KiB) Downloaded 157 times

p0lyg0n1
Posts: 160
Joined: 04 Aug 2016 07:14

Re: adding library to toolchain

Post by p0lyg0n1 » 18 Oct 2016 15:54

So, It works on my system normally (MacOS X / Arduino IDE 1.6.5).
You can see that it loaded your header and found some errors in .cpp-file.

Code: Select all

Используем библиотеку ZUNO_DHTlib в папке: /Users/alexander/Library/Arduino15/packages/Z-Uno/hardware/zw8051/2.0.6/libraries/ZUNO_DHTlib (legacy)

/Users/alexander/Library/Arduino15/packages/Z-Uno/tools/zuno_toolchain/00.08.10/zuno_toolchain/compiler build /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/sketch_oct18a.cpp -r /Users/alexander/Library/Arduino15/packages/Z-Uno/hardware/zw8051/2.0.6 

	************* Building Arduino Sketch *************
	/var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/sketch_oct18a.cpp
	***************************************************

Preprocessing file: /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/Print.cpp with SDCPP... 
Compiling /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/Print_sdcpp_.cpp ...
Preprocessing file: /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/Stream.cpp with SDCPP... 
Compiling /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/Stream_sdcpp_.cpp ...
Preprocessing file: /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/Wire.cpp with SDCPP... 
Compiling /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/Wire_sdcpp_.cpp ...
Preprocessing file: /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/HardwareSerial.cpp with SDCPP... 
Compiling /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/HardwareSerial_sdcpp_.cpp ...
Preprocessing file: /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/HLCore.cpp with SDCPP... 
Compiling /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/HLCore_sdcpp_.cpp ...
Preprocessing file: /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/ZUNO_DHT.cpp with SDCPP... 
Compiling /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/ZUNO_DHT_sdcpp_.cpp ...
Preprocessing file: /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/ZUNO_BMP280.cpp with SDCPP... 
Compiling /var/folders/yv/h7_1z41j5bz1k8c68k4wmcdm0000gn/T/build8419967714157405341.tmp/ZUNO_BMP280_sdcpp_.cpp ...
ZUNO_BMP280_sdcpp_.cpp:460:5:error:C++ requires a type specifier for all declarations
ZUNO_BMP280_sdcpp_.cpp:461:5:error:C++ requires a type specifier for all declarations
ZUNO_BMP280_sdcpp_.cpp:462:5:error:C++ requires a type specifier for all declarations
ZUNO_BMP280_sdcpp_.cpp:611:14:error:definition of implicitly declared default constructor
ZUNO_BMP280_sdcpp_.cpp:615:14:error:out-of-line definition of 'ZUNO_BMP280' does not match any declaration in 'ZUNO_BMP280'
ZUNO_BMP280_sdcpp_.cpp:619:14:error:out-of-line definition of 'ZUNO_BMP280' does not match any declaration in 'ZUNO_BMP280'
ZUNO_BMP280_sdcpp_.cpp:645:13:error:use of undeclared identifier 'ZUNO_BMP280_REGISTER_CHIPID'
ZUNO_BMP280_sdcpp_.cpp:649:10:error:use of undeclared identifier 'ZUNO_BMP280_REGISTER_CONTROL'
ZUNO_BMP280_sdcpp_.cpp:685:29:error:no viable conversion from 'SPISettings' to 'SPISettings *'
ZUNO_BMP280_sdcpp_.cpp:713:29:error:no viable conversion from 'SPISettings' to 'SPISettings *'
ZUNO_BMP280_sdcpp_.cpp:742:29:error:no viable conversion from 'SPISettings' to 'SPISettings *'
ZUNO_BMP280_sdcpp_.cpp:795:29:error:no viable conversion from 'SPISettings' to 'SPISettings *'
ZUNO_BMP280_sdcpp_.cpp:820:5:error:use of undeclared identifier '_ZUNO_BMP280_calib'
ZUNO_BMP280_sdcpp_.cpp:820:43:error:use of undeclared identifier 'ZUNO_BMP280_REGISTER_DIG_T1'
ZUNO_BMP280_sdcpp_.cpp:821:5:error:use of undeclared identifier '_ZUNO_BMP280_calib'
ZUNO_BMP280_sdcpp_.cpp:821:44:error:use of undeclared identifier 'ZUNO_BMP280_REGISTER_DIG_T2'
ZUNO_BMP280_sdcpp_.cpp:822:5:error:use of undeclared identifier '_ZUNO_BMP280_calib'
ZUNO_BMP280_sdcpp_.cpp:822:44:error:use of undeclared identifier 'ZUNO_BMP280_REGISTER_DIG_T3'
ZUNO_BMP280_sdcpp_.cpp:824:5:error:use of undeclared identifier '_ZUNO_BMP280_calib'Unknown error:'NoneType' object has no attribute 'name' uCxx returned error code:-1
Something wrong with your environment. If you have TeamViewer I can check it fast if you send me login/psw to PM.

ftrueck
Posts: 41
Joined: 24 Dec 2015 23:46

Re: adding library to toolchain

Post by ftrueck » 18 Oct 2016 18:20

Your output gave me the needed hint. I've enabled verbose output for compiler and noticed that it uses a path different to the one I've posted earlier. After copying the lib to the other path it is found by the compiler and throws compile errors.

Now my real work can start. :-D

User avatar
PoltoS
Posts: 4302
Joined: 26 Jan 2011 19:36

Re: adding library to toolchain

Post by PoltoS » 18 Oct 2016 22:25

Would be cool to summarize your experience in a guide on Z-Uno site. Alex, can you give me a brief howto and I publish it.

ftrueck
Posts: 41
Joined: 24 Dec 2015 23:46

Re: adding library to toolchain

Post by ftrueck » 19 Oct 2016 01:16

Currently I'm struggling with compiler errors which make no sense to me.

Code: Select all

Preprocessing file: ZUNO_BMP280.cpp with SDCPP... 
Compiling ZUNO_BMP280_sdcpp_.cpp ...['__cxx__Stream__method__println020a11', '__cxx__TwoWire__method__write02p0508', '__cxx__Stream__method__readBytesUntil030dp0d08', '__cxx__Stream__method__clearWriteError00', '__cxx__Stream__method__print010d', '__cxx__TwoWire__method__println020a11', '__cxx__Print__method__printFloat021505', '__cxx__Stream__method__readBytes02p0508', '__cxx__HardwareSerial__method__write0105', '__cxx__HardwareSerial__method__find010d', '__cxx__TwoWire__method__printNumber020a05', '__cxx__TwoWire__method__parseFloat00', '__cxx__HardwareSerial__method__readBytes02p0508', '__cxx__Print__method__print020a11', '__cxx__HardwareSerial__method__write0109', '__cxx__TwoWire__method__parseInt00', '__cxx__TwoWire__method__println020511', '__cxx__HardwareSerial__method__available00', '__cxx__Stream__method__print020511', '__cxx__HardwareSerial__method__parseInt010d', '__cxx__TwoWire__method__readBytes02p0508', '__cxx__Stream__method__println021511', '__cxx__Stream__method__printNumber020a05', '__cxx__HardwareSerial__method__printByteArr03p050505', '__cxx__Stream__method__findUntil02p05p0d', '__cxx__Stream__method__find02p0508', '__cxx__TwoWire__method__parseFloat010d', '__cxx__Stream__method__print020a11', '__cxx__HardwareSerial__method__find02p0d08', '__cxx__TwoWire__method__println020911', '__cxx__Print__method__print01p0d', '__cxx__HardwareSerial__method__write010a', '__cxx__TwoWire__method__printFloat021505', '__cxx__Stream__method__println010d', '__cxx__TwoWire__method__findMulti02prMultiTarget11', '__cxx__TwoWire__method__findUntil02p0dp0d', '__cxx__HardwareSerial__method__write0112', '__cxx__HardwareSerial__method__write0111', '__cxx__Stream__method__findUntil04p0d08p0d08', '__cxx__Stream__method__println020911', '__cxx__Stream__method__readBytesUntil030dp0508', '__cxx__Print__method__setWriteError0111', '__cxx__Print__method__printNumber020a05', '__cxx__Print__method__println021211', '__cxx__TwoWire__method__find01p05', '__cxx__Stream__init00', '__cxx__HardwareSerial__init0105', '__cxx__Print__method__print010d', '__cxx__Stream__method__println021111', '__cxx__Stream__method__println01p0d', '__cxx__BMP280__method__begin021111', '__cxx__Stream__method__print01p0d', '__cxx__HardwareSerial__method__parseFloat010d', '__cxx__Stream__method__println021211', '__cxx__TwoWire__method__read00', '__cxx__I2CDriver__method__bind00', '__cxx__BMP280__method__getError00', '__cxx__TwoWire__method__peekNextDigit00', '__cxx__Print__method__println020511', '__cxx__HardwareSerial__method__println00', '__cxx__HardwareSerial__method__flush00', '__cxx__HardwareSerial__method__find02p0508', '__cxx__TwoWire__method__findUntil04p0d08p0d08', '__cxx__TwoWire__method__print020511', '__cxx__Stream__method__println021611', '__cxx__Print__method__println021111', '__cxx__Stream__method__getWriteError00', '__cxx__TwoWire__method__println010d', '__cxx__BMP280__method__readCalibration00', '__cxx__HardwareSerial__method__peekNextDigit00', '__cxx__HardwareSerial__method__print020511', '__cxx__HardwareSerial__method__find01p0d', '__cxx__TwoWire__method__print020911', '__cxx__Print__method__println021511', '__cxx__BMP280__method__startMeasurment00', '__cxx__Stream__method__println020511', '__cxx__HardwareSerial__method__printFloat021505', '__cxx__Stream__method__available00', '__cxx__Print__method__println021611', '__cxx__TwoWire__method__print01p0d', '__cxx__Stream__method__printByteArr03p050505', '__cxx__Print__method__println00', '__cxx__Print__method__println010d', '__cxx__HardwareSerial__method__setTimeout010a', '__cxx__Print__method__getWriteError00', '__cxx__Print__method__write02p0508', '__cxx__Stream__method__parseFloat00', '__cxx__TwoWire__method__readBytesUntil030dp0508', '__cxx__I2CDriver__method__stop00', '__cxx__TwoWire__method__print021211', '__cxx__HardwareSerial__method__readBytesUntil030dp0508', '__cxx__BMP280__method__readBytes02p050d', '__cxx__HardwareSerial__method__getWriteError00', '__cxx__HardwareSerial__method__print010d', '__cxx__TwoWire__method__println01p0d', '__cxx__BMP280__method__getTemperatureAndPressure026767', '__cxx__HardwareSerial__method__println021511', '__cxx__Stream__method__findMulti02prMultiTarget11', '__cxx__HardwareSerial__method__print01p0d', '__cxx__TwoWire__method__find010d', '__cxx__Stream__method__findUntil02p0dp0d', '__cxx__HardwareSerial__method__readBytes02p0d08', '__cxx__HardwareSerial__method__peek00', '__cxx__HardwareSerial__method__findUntil04p0d08p0d08', '__cxx__Stream__method__println00', '__cxx__HardwareSerial__method__println021611', '__cxx__Print__init00', '__cxx__HardwareSerial__method__find01p05', '__cxx__HardwareSerial__method__timedPeek00', '__cxx__TwoWire__method__flush00', '__cxx__Print__method__printByteArr03p050505', '__cxx__Stream__method__write02p0508', '__cxx__Stream__method__setTimeout010a', '__cxx__I2CDriver__method__write0105', '__cxx__Stream__method__print021211', '__cxx__TwoWire__method__setTimeout010a', '__cxx__Stream__method__setWriteError0111', '__cxx__Print__method__println020a11', '__cxx__HardwareSerial__method__println010d', '__cxx__BMP280__method__readUInt020d67', '__cxx__HardwareSerial__method__parseInt00', '__cxx__Print__method__write0105', '__cxx__Stream__method__find02p0d08', '__cxx__I2CDriver__method__start00', '__cxx__Stream__method__flush00', '__cxx__TwoWire__method__parseInt010d', '__cxx__TwoWire__method__readBytes02p0d08', '__cxx__BMP280__method__readInt020d67', '__cxx__HardwareSerial__method__parseFloat00', '__cxx__Stream__method__find01p05', '__cxx__HardwareSerial__method__write02p0508', '__cxx__Print__method__print020911', '__cxx__HardwareSerial__method__println021211', '__cxx__Print__method__println020911', '__cxx__Stream__method__parseInt00', '__cxx__Stream__method__timedRead00', '__cxx__BMP280__method__setOversampling0110', '__cxx__BMP280__init00', '__cxx__TwoWire__method__available00', '__cxx__TwoWire__method__setWriteError0111', '__cxx__TwoWire__method__findUntil02p05p0d', '__cxx__Stream__method__read00', '__cxx__Print__method__print021211', '__cxx__Stream__method__print020911', '__cxx__Print__method__println01p0d', '__cxx__Stream__method__readBytes02p0d08', '__cxx__Stream__method__peek00', '__cxx__HardwareSerial__method__end00', '__cxx__HardwareSerial__method__printNumber020a05', '__cxx__HardwareSerial__method__println020911', '__cxx__HardwareSerial__method__setWriteError0111', '__cxx__Print__method__print021511', '__cxx__HardwareSerial__method__findUntil02p05p0d', '__cxx__BMP280__method__sealevel021616', '__cxx__TwoWire__method__timedPeek00', '__cxx__Print__method__print020511', '__cxx__HardwareSerial__method__read00', '__cxx__TwoWire__method__write0112', '__cxx__TwoWire__method__write0111', '__cxx__Print__method__print021611', '__cxx__TwoWire__method__println021511', '__cxx__HardwareSerial__method__println020511', '__cxx__TwoWire__method__timedRead00', '__cxx__HardwareSerial__method__print021211', '__cxx__HardwareSerial__method__findMulti02prMultiTarget11', '__cxx__Stream__method__find01p0d', '__cxx__TwoWire__method__readBytesUntil030dp0d08', '__cxx__HardwareSerial__method__print021611', '__cxx__TwoWire__method__begin01prI2CDriver', '__cxx__TwoWire__method__println021111', '__cxx__TwoWire__method__print021611', '__cxx__TwoWire__method__print021511', '__cxx__BMP280__method__altitude021616', '__cxx__HardwareSerial__method__print021511', '__cxx__TwoWire__method__endTransmission0105', '__cxx__TwoWire__method__println021211', '__cxx__Print__method__print021111', '__cxx__Stream__method__timedPeek00', '__cxx__Stream__method__peekNextDigit00', '__cxx__BMP280__method__getOversampling00', '__cxx__TwoWire__method__find02p0508', '__cxx__TwoWire__method__println021611', '__cxx__TwoWire__init01prI2CDriver', '__cxx__HardwareSerial__method__timedRead00', '__cxx__TwoWire__method__write0105', '__cxx__TwoWire__method__print021111', '__cxx__Stream__method__parseInt010d', '__cxx__HardwareSerial__method__print021111', '__cxx__TwoWire__method__bindDriver01prI2CDriver', '__cxx__HardwareSerial__method__begin00', '__cxx__TwoWire__method__peek00', '__cxx__TwoWire__method__write0109', '__cxx__I2CDriver__method__read0105', '__cxx__TwoWire__method__printByteArr03p050505', '__cxx__BMP280__method__begin00', '__cxx__TwoWire__method__getWriteError00', '__cxx__Stream__method__print021611', '__cxx__Stream__method__printFloat021505', '__cxx__TwoWire__method__println00', '__cxx__TwoWire__method__clearWriteError00', '__cxx__TwoWire__method__beginTransmission020505', '__cxx__HardwareSerial__method__print020911', '__cxx__BMP280__method__writeBytes02p050d', '__cxx__TwoWire__method__print020a11', '__cxx__Stream__method__print021511', '__cxx__TwoWire__method__requestFrom03050505', '__cxx__Print__method__clearWriteError00', '__cxx__Stream__method__parseFloat010d', '__cxx__TwoWire__method__print010d', '__cxx__I2CDriver__init020505', '__cxx__Stream__method__write0105', '__cxx__HardwareSerial__method__println020a11', '__cxx__Stream__method__find010d', '__cxx__TwoWire__method__write010a', '__cxx__HardwareSerial__method__readBytesUntil030dp0d08', '__cxx__TwoWire__method__find01p0d', '__cxx__HardwareSerial__method__print020a11', '__cxx__HardwareSerial__method__println021111', '__cxx__TwoWire__method__find02p0d08', '__cxx__HardwareSerial__method__clearWriteError00', '__cxx__HardwareSerial__method__begin010a', '__cxx__Stream__method__print021111', '__cxx__HardwareSerial__method__println01p0d', '__cxx__HardwareSerial__method__findUntil02p0dp0d']
ZUNO_BMP280_sdcpp_.cpp:677:1:error: uCxx:Can't find method __cxx__BMP280__method__readUInt020d16 for object this of class BMP280 
uCxx returned error code:-1
SDCPP created a method __cxx__BMP280__method__readUInt020d67 but wants to use a wrong name.
I don't understand why this is happening.

ftrueck
Posts: 41
Joined: 24 Dec 2015 23:46

Re: adding library to toolchain

Post by ftrueck » 19 Oct 2016 01:18

This is my current code base.

[Sorry, the board attachment quota has been reached.]

p0lyg0n1
Posts: 160
Joined: 04 Aug 2016 07:14

Re: adding library to toolchain

Post by p0lyg0n1 » 19 Oct 2016 12:46

looks like you try to call method with another argument types... May be it's a "mangling" problem of compiler. Please send me your code. It will be really cool if we catch and fix maximum amount of compiler's problems for the next release...

ftrueck
Posts: 41
Joined: 24 Dec 2015 23:46

Re: adding library to toolchain

Post by ftrueck » 19 Oct 2016 13:44

As uploading in forum does currently not work, I've added my code to pastebin.

http://pastebin.com/tsCC9dvQ
http://pastebin.com/jXZPVPVv

Post Reply