arduino mega dragin wil niet werken.

Projecten die niet passen in bovenstaande onderwerpen
Berichten: 47
Geregistreerd: 13 Jan 2016, 19:22

arduino mega dragin wil niet werken.

Berichtdoor superpeter » 22 Nov 2019, 12:39

hallo allemaal.
ik probeer een lora node te maken met ene arduino mega en een dragino shield.
echter krijg ik bij het compileren van men script ene zooi error die ik er niet uit kan krijgen.
men vraag is wat ik fout doe, en hoe ik het probleem kan oplosen.
de foutmeldingen zijn:
    C:\Users\peter\AppData\Local\Temp\ccWrshoa.ltrans0.ltrans.o: In function `decodeBeacon':

    <artificial>:(.text+0x13da): undefined reference to `table_get_ostime'

    C:\Users\peter\AppData\Local\Temp\ccWrshoa.ltrans0.ltrans.o: In function `decodeFrame':

    <artificial>:(.text+0x1cc0): undefined reference to `table_get_ostime'

    <artificial>:(.text+0x1cdc): undefined reference to `table_get_ostime'

    C:\Users\peter\AppData\Local\Temp\ccWrshoa.ltrans0.ltrans.o: In function `rxschedInit.constprop.8':

    <artificial>:(.text+0x1e90): undefined reference to `table_get_u4'

    C:\Users\peter\AppData\Local\Temp\ccWrshoa.ltrans0.ltrans.o: In function `hal_enableIRQs':

    <artificial>:(.text+0x207e): undefined reference to `table_get_u2'

    C:\Users\peter\AppData\Local\Temp\ccWrshoa.ltrans0.ltrans.o: In function `LMIC_startJoining':

    <artificial>:(.text+0x237c): undefined reference to `table_get_ostime'

    collect2.exe: error: ld returned 1 exit status

    exit status 1
    Fout bij het compileren voor board Arduino/Genuino Mega or Mega 2560


de code die ik heb is:

Code: Alles selecteren
/*******************************************************************************
 * Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
 *
 * Permission is hereby granted, free of charge, to anyone
 * obtaining a copy of this document and accompanying files,
 * to do whatever they want with them without any restriction,
 * including, but not limited to, copying, modification and redistribution.
 * NO WARRANTY OF ANY KIND IS PROVIDED.
 *
 * This example sends a valid LoRaWAN packet with payload "Hello,
 * world!", using frequency and encryption settings matching those of
 * the (early prototype version of) The Things Network.
 *
 * Note: LoRaWAN per sub-band duty-cycle limitation is enforced (1% in g1,
 *  0.1% in g2).
 *
 * Change DEVADDR to a unique address!
 * See http://thethingsnetwork.org/wiki/AddressSpace
 *
 * Do not forget to define the radio type correctly in config.h.
 *
 *******************************************************************************/

#include <lmic.h>
#include <hal/hal.h>
#include <SPI.h>

// LoRaWAN NwkSKey, network session key
// This is the default Semtech key, which is used by the prototype TTN
// network initially.
static const PROGMEM u1_t NWKSKEY[16] = { 0x7C, hier, staat, men, netwer, key ,van ,the ,internet, of, things, 0xF4 };

// LoRaWAN AppSKey, application session key
// This is the default Semtech key, which is used by the prototype TTN
// network initially.
static const u1_t PROGMEM APPSKEY[16] = { 0xC7, hier, staat, men, app, key, van, the, internet, of, things, 0x3F };

// LoRaWAN end-device address (DevAddr)
// See http://thethingsnetwork.org/wiki/AddressSpace
static const u4_t DEVADDR = 0x en hier men device adres ; // <-- Change this address for every node!

// These callbacks are only used in over-the-air activation, so they are
// left empty here (we cannot leave them out completely unless
// DISABLE_JOIN is set in config.h, otherwise the linker will complain).
void os_getArtEui (u1_t* buf) { }
void os_getDevEui (u1_t* buf) { }
void os_getDevKey (u1_t* buf) { }

static uint8_t mydata[] = "Hello, world!";
static osjob_t sendjob;

// Schedule TX every this many seconds (might become longer due to duty
// cycle limitations).
const unsigned TX_INTERVAL = 60;

// Pin mapping
const lmic_pinmap lmic_pins = {
    .nss = 10,
    .rxtx = LMIC_UNUSED_PIN,
    .rst = 9,
    .dio = {2, 6, 7},
};

void onEvent (ev_t ev) {
    Serial.print(os_getTime());
    Serial.print(": ");
    switch(ev) {
        case EV_SCAN_TIMEOUT:
            Serial.println(F("EV_SCAN_TIMEOUT"));
            break;
        case EV_BEACON_FOUND:
            Serial.println(F("EV_BEACON_FOUND"));
            break;
        case EV_BEACON_MISSED:
            Serial.println(F("EV_BEACON_MISSED"));
            break;
        case EV_BEACON_TRACKED:
            Serial.println(F("EV_BEACON_TRACKED"));
            break;
        case EV_JOINING:
            Serial.println(F("EV_JOINING"));
            break;
        case EV_JOINED:
            Serial.println(F("EV_JOINED"));
            break;
        case EV_RFU1:
            Serial.println(F("EV_RFU1"));
            break;
        case EV_JOIN_FAILED:
            Serial.println(F("EV_JOIN_FAILED"));
            break;
        case EV_REJOIN_FAILED:
            Serial.println(F("EV_REJOIN_FAILED"));
            break;
            break;
        case EV_TXCOMPLETE:
            Serial.println(F("EV_TXCOMPLETE (includes waiting for RX windows)"));
            if(LMIC.dataLen) {
                // data received in rx slot after tx
                Serial.print(F("Data Received: "));
                Serial.write(LMIC.frame+LMIC.dataBeg, LMIC.dataLen);
                Serial.println();
            }
            // Schedule next transmission
            os_setTimedCallback(&sendjob, os_getTime()+sec2osticks(TX_INTERVAL), do_send);
            break;
        case EV_LOST_TSYNC:
            Serial.println(F("EV_LOST_TSYNC"));
            break;
        case EV_RESET:
            Serial.println(F("EV_RESET"));
            break;
        case EV_RXCOMPLETE:
            // data received in ping slot
            Serial.println(F("EV_RXCOMPLETE"));
            break;
        case EV_LINK_DEAD:
            Serial.println(F("EV_LINK_DEAD"));
            break;
        case EV_LINK_ALIVE:
            Serial.println(F("EV_LINK_ALIVE"));
            break;
         default:
            Serial.println(F("Unknown event"));
            break;
    }
}

void do_send(osjob_t* j){
    // Check if there is not a current TX/RX job running
    if (LMIC.opmode & OP_TXRXPEND) {
        Serial.println(F("OP_TXRXPEND, not sending"));
    } else {
        // Prepare upstream data transmission at the next possible time.
        LMIC_setTxData2(1, mydata, sizeof(mydata)-1, 0);
        Serial.println(F("Packet queued"));
    }
    // Next TX is scheduled after TX_COMPLETE event.
}

void setup() {
    Serial.begin(115200);
    Serial.println(F("Starting"));

    #ifdef VCC_ENABLE
    // For Pinoccio Scout boards
    pinMode(VCC_ENABLE, OUTPUT);
    digitalWrite(VCC_ENABLE, HIGH);
    delay(1000);
    #endif

    // LMIC init
    os_init();
    // Reset the MAC state. Session and pending data transfers will be discarded.
    LMIC_reset();

    // Set static session parameters. Instead of dynamically establishing a session
    // by joining the network, precomputed session parameters are be provided.
    #ifdef PROGMEM
    // On AVR, these values are stored in flash and only copied to RAM
    // once. Copy them to a temporary buffer here, LMIC_setSession will
    // copy them into a buffer of its own again.
    uint8_t appskey[sizeof(APPSKEY)];
    uint8_t nwkskey[sizeof(NWKSKEY)];
    memcpy_P(appskey, APPSKEY, sizeof(APPSKEY));
    memcpy_P(nwkskey, NWKSKEY, sizeof(NWKSKEY));
    LMIC_setSession (0x1, DEVADDR, nwkskey, appskey);
    #else
    // If not running an AVR with PROGMEM, just use the arrays directly
    LMIC_setSession (0x1, DEVADDR, NWKSKEY, APPSKEY);
    #endif

    // Set up the channels used by the Things Network, which corresponds
    // to the defaults of most gateways. Without this, only three base
    // channels from the LoRaWAN specification are used, which certainly
    // works, so it is good for debugging, but can overload those
    // frequencies, so be sure to configure the full frequency range of
    // your network here (unless your network autoconfigures them).
    // Setting up channels should happen after LMIC_setSession, as that
    // configures the minimal channel set.
    LMIC_setupChannel(0, 868100000, DR_RANGE_MAP(DR_SF12, DR_SF7),  BAND_CENTI);      // g-band
    LMIC_setupChannel(1, 868300000, DR_RANGE_MAP(DR_SF12, DR_SF7B), BAND_CENTI);      // g-band
    LMIC_setupChannel(2, 868500000, DR_RANGE_MAP(DR_SF12, DR_SF7),  BAND_CENTI);      // g-band
    LMIC_setupChannel(3, 867100000, DR_RANGE_MAP(DR_SF12, DR_SF7),  BAND_CENTI);      // g-band
    LMIC_setupChannel(4, 867300000, DR_RANGE_MAP(DR_SF12, DR_SF7),  BAND_CENTI);      // g-band
    LMIC_setupChannel(5, 867500000, DR_RANGE_MAP(DR_SF12, DR_SF7),  BAND_CENTI);      // g-band
    LMIC_setupChannel(6, 867700000, DR_RANGE_MAP(DR_SF12, DR_SF7),  BAND_CENTI);      // g-band
    LMIC_setupChannel(7, 867900000, DR_RANGE_MAP(DR_SF12, DR_SF7),  BAND_CENTI);      // g-band
    LMIC_setupChannel(8, 868800000, DR_RANGE_MAP(DR_FSK,  DR_FSK),  BAND_MILLI);      // g2-band
    // TTN defines an additional channel at 869.525Mhz using SF9 for class B
    // devices' ping slots. LMIC does not have an easy way to define set this
    // frequency and support for class B is spotty and untested, so this
    // frequency is not configured here.

    // Disable link check validation
    LMIC_setLinkCheckMode(0);

    // Set data rate and transmit power (note: txpow seems to be ignored by the library)
    LMIC_setDrTxpow(DR_SF7,14);

    // Start job
    do_send(&sendjob);
}

void loop() {
    os_runloop_once();
}


hopelijk kan iemand me verder helpen

Advertisement

Gebruikers-avatar
Berichten: 2655
Geregistreerd: 06 Aug 2016, 01:03

Re: arduino mega dragin wil niet werken.

Berichtdoor Koepel » 24 Nov 2019, 02:39

Helaas heb ik geen ervaring met LoRa.

Dit shield: https://www.dragino.com/products/module/item/102-lora-shield.html ?
Er staat bij dat het compatible met de Arduino Mega is.

In de wiki (http://wiki.dragino.com/index.php?title=Lora_Shield) staat een link naar Instructables: https://www.instructables.com/id/Use-Lora-Shield-and-RPi-to-Build-a-LoRaWAN-Gateway/.
Op Instructables staan nogal wat foute Arduino sketches.

Waar heb jij je sketch vandaan ?

Heb je hier iets aan: https://www.youtube.com/watch?v=duwUwXt-hs8.
Het viel me op dat hij het Dragino shield gebruikt.
Er staan links bij naar libraries op Github bij, en daar is meer uitleg.

Berichten: 47
Geregistreerd: 13 Jan 2016, 19:22

Re: arduino mega dragin wil niet werken.

Berichtdoor superpeter » 24 Nov 2019, 10:16

als eerste heel erg bedankt voor de reactie.
echter ken ik de site wiki.dragino.com al want via de dragino wiki heb ik de sketch ge vonden.
voor het gemak ook bij deze maar even de een deel van een mail aan een goede vriend waarin ik dus zeg waaar ik de sketch pressies heb ge vonden
Als eerste bij deze de link naar de dragino wiki
https://wiki.dragino.com/index.php?title=Lora_Shield
Op die site ben ik gegaan naar:
Example1 -- Use with LMIC library for LoRaWAN compatible
en dan naar:
Use the LMIC with 868MHZ Dragino LoRa boards:
en vna daar uit naar:
https://www.instructables.com/id/Use-Lo ... N-Gateway/
en daar naar stap 8
en daar de lmic libery en scetsch ge vonden.
de dragtine shield zit op een arduino mega dus identiek aan hun .
egter naar het aan passen van de kodes zo als de keys krijg ik de volgende error uit put bij het compileren.

Gebruikers-avatar
Berichten: 2655
Geregistreerd: 06 Aug 2016, 01:03

Re: arduino mega dragin wil niet werken.

Berichtdoor Koepel » 24 Nov 2019, 12:28

Die links gaf ik ook voor anderen, zodat die weten waar het over gaat.

Volgens Instructables stap 8 gebruik je dus deze library: https://github.com/matthijskooijman/arduino-lmic.
En deze sketch: https://github.com/dragino/Lora/tree/master/Lora%20Shield/Examples/lora_shield_ttn.

Dat is helaas niet helemaal up to date.
Dit gaat er over: https://github.com/matthijskooijman/arduino-lmic/issues/243.
Je kunt proberen om het woord "static" op die plaats er voor te zetten.

Ik heb niet geprobeerd om het te compileren, omdat ik de 'TABLE_GETTER' niet begrijp. Hier (https://github.com/matthijskooijman/arduino-lmic/blob/master/src/lmic/oslmic.h#L258) staat de inline functie van 'table_get_ostime' voor andere boards. Dat is normaal. Daarboven staat de 'TABLE_GETTER' (https://github.com/matthijskooijman/arduino-lmic/blob/master/src/lmic/oslmic.h#L229) voor __AVR__ boards. De compiler heeft duidelijk geen zin in zo'n constructie en zegt dat hij 'table_get_ostime' niet kan vinden.

Gebruikers-avatar
Berichten: 5043
Geregistreerd: 13 Mei 2013, 20:57
Woonplaats: Heemskerk

Re: arduino mega dragin wil niet werken.

Berichtdoor nicoverduin » 24 Nov 2019, 13:34

Het lijkt erop dat de 1.5.1 er geen zin meer in heeft :)
Ik heb even wat oude sources van een jaar of 3 geleden geprobeerd en hetzelfde probleem. Gelukkig had ik nog de libraries van toen.
Ik gebruik de libraries van Matthijs Kooiman : https://github.com/matthijskooijman/arduino-lmic
Die compileert goed.
Docent HBO Technische Informatica, Embedded ontwikkelaar & elektronicus
http://www.verelec.nl

Berichten: 47
Geregistreerd: 13 Jan 2016, 19:22

Re: arduino mega dragin wil niet werken.

Berichtdoor superpeter » 24 Nov 2019, 17:32

nicoverduin schreef:Het lijkt erop dat de 1.5.1 er geen zin meer in heeft :)
Ik heb even wat oude sources van een jaar of 3 geleden geprobeerd en hetzelfde probleem. Gelukkig had ik nog de libraries van toen.
Ik gebruik de libraries van Matthijs Kooiman : https://github.com/matthijskooijman/arduino-lmic
Die compileert goed.

deze heeft flink ge holpen.
het compileren werkt nu prima.
maar naar het uploaden krijg ik de de servial monietor nog wel wat ana error om men oren.
deze zijn:
Code: Alles selecteren
16:26:40.341 -> Starting
16:26:40.341 -> FAILURE
16:26:40.341 -> C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\radio.c:689

ik heb de lmic gebruikt: https://github.com/matthijskooijman/arduino-lmic
en dan het voorbeeld ttna-abp
ik vermoed dat de fout nu met name is dat ik nog niet de frequentieband heb ge configureerd (als dat teminste moet)
want heb nog niet ge vonden waar ik aan geef dat ik in eu 868Mhz band zit

Gebruikers-avatar
Berichten: 5043
Geregistreerd: 13 Mei 2013, 20:57
Woonplaats: Heemskerk

Re: arduino mega dragin wil niet werken.

Berichtdoor nicoverduin » 24 Nov 2019, 19:17

Er zijn 2 zaken die je sowieso moet nakijken:
a) de config.h in de library. Daar geef je aan welke band en welke driver (vermoedelijke 1276SX
b) in de sketch geef je aan wat de pinnen zijn van de dragino. dus dit stukje:
cpp code
// Pin mapping
const lmic_pinmap lmic_pins = {
.nss = 10,
.rxtx = LMIC_UNUSED_PIN,
.rst = 9,
.dio = {2, 6, 7},
};


Ik heb het ooit allemaal wel aan de praat gekregen. Ook met mijn eigen modules. Maar het is alweer een paar jaar geleden. Nadeel bij mij in de buurt was dat er nergens een LoRa gateway in de buurt was. Zou best inmiddels veranderd kunnen zijn (regio Kennemerland). Heb ooit met LoRa en een nodeMCU gespeelt in Alkmaar. Daar werkte het als een tierelier. Verder een experiment met 2 nodes die naar elkaar pingen. Afstand was iets rond de 1.5km.
Docent HBO Technische Informatica, Embedded ontwikkelaar & elektronicus
http://www.verelec.nl

Berichten: 47
Geregistreerd: 13 Jan 2016, 19:22

Re: arduino mega dragin wil niet werken.

Berichtdoor superpeter » 24 Nov 2019, 20:34

ook nu weer heel erg bedankt.
ben in de config.
daar heb ik het volgende in staan:
Code: Alles selecteren
#ifndef _lmic_config_h_
#define _lmic_config_h_

// In the original LMIC code, these config values were defined on the
// gcc commandline. Since Arduino does not allow easily modifying the
// compiler commandline, use this file instead.

#define CFG_eu868 1
//#define CFG_us915 1
// This is the SX1272/SX1273 radio, which is also used on the HopeRF
// RFM92 boards.
//#define CFG_sx1272_radio 1
// This is the SX1276/SX1277/SX1278/SX1279 radio, which is also used on
// the HopeRF RFM95 boards.
#define CFG_sx1276_radio 1

// 16 μs per tick
// LMIC requires ticks to be 15.5μs - 100 μs long
#define US_PER_OSTICK_EXPONENT 4
#define US_PER_OSTICK (1 << US_PER_OSTICK_EXPONENT)
#define OSTICKS_PER_SEC (1000000 / US_PER_OSTICK)

// Set this to 1 to enable some basic debug output (using printf) about
// RF settings used during transmission and reception. Set to 2 to
// enable more verbose output. Make sure that printf is actually
// configured (e.g. on AVR it is not by default), otherwise using it can
// cause crashing.
#define LMIC_DEBUG_LEVEL 0

// Enable this to allow using printf() to print to the given serial port
// (or any other Print object). This can be easy for debugging. The
// current implementation only works on AVR, though.
//#define LMIC_PRINTF_TO Serial

// Any runtime assertion failures are printed to this serial port (or
// any other Print object). If this is unset, any failures just silently
// halt execution.
#define LMIC_FAILURE_TO Serial

// Uncomment this to disable all code related to joining
//#define DISABLE_JOIN
// Uncomment this to disable all code related to ping
//#define DISABLE_PING
// Uncomment this to disable all code related to beacon tracking.
// Requires ping to be disabled too
//#define DISABLE_BEACONS

// Uncomment these to disable the corresponding MAC commands.
// Class A
//#define DISABLE_MCMD_DCAP_REQ // duty cycle cap
//#define DISABLE_MCMD_DN2P_SET // 2nd DN window param
//#define DISABLE_MCMD_SNCH_REQ // set new channel
// Class B
//#define DISABLE_MCMD_PING_SET // set ping freq, automatically disabled by DISABLE_PING
//#define DISABLE_MCMD_BCNI_ANS // next beacon start, automatical disabled by DISABLE_BEACON

// In LoRaWAN, a gateway applies I/Q inversion on TX, and nodes do the
// same on RX. This ensures that gateways can talk to nodes and vice
// versa, but gateways will not hear other gateways and nodes will not
// hear other nodes. By uncommenting this macro, this inversion is
// disabled and this node can hear other nodes. If two nodes both have
// this macro set, they can talk to each other (but they can no longer
// hear gateways). This should probably only be used when debugging
// and/or when talking to the radio directly (e.g. like in the "raw"
// example).
//#define DISABLE_INVERT_IQ_ON_RX

// This allows choosing between multiple included AES implementations.
// Make sure exactly one of these is uncommented.
//
// This selects the original AES implementation included LMIC. This
// implementation is optimized for speed on 32-bit processors using
// fairly big lookup tables, but it takes up big amounts of flash on the
// AVR architecture.
// #define USE_ORIGINAL_AES
//
// This selects the AES implementation written by Ideetroon for their
// own LoRaWAN library. It also uses lookup tables, but smaller
// byte-oriented ones, making it use a lot less flash space (but it is
// also about twice as slow as the original).
#define USE_IDEETRON_AES

#endif // _lmic_config_h_


men dragino heeft een rfm95 lora module er op zitten.

in de sketch zijn de poorten als volgd ge configureerd:
Code: Alles selecteren
// Pin mapping
const lmic_pinmap lmic_pins = {
    .nss = 10,
    .rxtx = LMIC_UNUSED_PIN,
    .rst = 9,
    .dio = {2, 6, 7},
};

zoals nicoverduin aan gaf.
ik heb ook ge controleerd of dit de poorten zijn zoals die voor mijn dragino gelden en deze kloppen dus ook.

verder moet ik 2x compileren is me nu op ge vallen.
bij de eerste keer krijg ik een hele lap errors
Code: Alles selecteren


In file included from C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\lmic.h:18:0,

                 from C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\oslmic.c:12:

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\oslmic.h:215:36: warning: 'table_get_u1' is static but used in inline function 'validDR' which is not static

 #define TABLE_GET_U1(table, index) table_get_u1(RESOLVE_TABLE(table), index)

                                    ^

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\lorabase.h:372:42: note: in expansion of macro 'TABLE_GET_U1'

 inline bit_t validDR  (dr_t dr) { return TABLE_GET_U1(_DR2RPS_CRC, dr+1)!=ILLEGAL_RPS; } // in range

                                          ^~~~~~~~~~~~

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\oslmic.h:215:36: warning: 'table_get_u1' is static but used in inline function 'assertDR' which is not static

 #define TABLE_GET_U1(table, index) table_get_u1(RESOLVE_TABLE(table), index)

                                    ^

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\lorabase.h:371:42: note: in expansion of macro 'TABLE_GET_U1'

 inline dr_t  assertDR (dr_t dr) { return TABLE_GET_U1(_DR2RPS_CRC, dr+1)==ILLEGAL_RPS ? DR_DFLTMIN : dr; }   // force into a valid DR

                                          ^~~~~~~~~~~~

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\oslmic.h:215:36: warning: 'table_get_u1' is static but used in inline function 'decDR' which is not static

 #define TABLE_GET_U1(table, index) table_get_u1(RESOLVE_TABLE(table), index)

                                    ^

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\lorabase.h:370:42: note: in expansion of macro 'TABLE_GET_U1'

 inline dr_t  decDR    (dr_t dr) { return TABLE_GET_U1(_DR2RPS_CRC, dr  )==ILLEGAL_RPS ? dr : (dr_t)(dr-1); } // decrease data rate

                                          ^~~~~~~~~~~~

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\oslmic.h:215:36: warning: 'table_get_u1' is static but used in inline function 'incDR' which is not static

 #define TABLE_GET_U1(table, index) table_get_u1(RESOLVE_TABLE(table), index)

                                    ^

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\lorabase.h:369:42: note: in expansion of macro 'TABLE_GET_U1'

 inline dr_t  incDR    (dr_t dr) { return TABLE_GET_U1(_DR2RPS_CRC, dr+2)==ILLEGAL_RPS ? dr : (dr_t)(dr+1); } // increase data rate

                                          ^~~~~~~~~~~~

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\oslmic.h:215:36: warning: 'table_get_u1' is static but used in inline function 'updr2rps' which is not static

 #define TABLE_GET_U1(table, index) table_get_u1(RESOLVE_TABLE(table), index)

                                    ^

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\lorabase.h:365:49: note: in expansion of macro 'TABLE_GET_U1'

 inline rps_t updr2rps (dr_t dr) { return (rps_t)TABLE_GET_U1(_DR2RPS_CRC, dr+1); }

                                                 ^~~~~~~~~~~~

In file included from C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\lmic.h:18:0,

                 from C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\radio.c:12:

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\oslmic.h:215:36: warning: 'table_get_u1' is static but used in inline function 'validDR' which is not static

 #define TABLE_GET_U1(table, index) table_get_u1(RESOLVE_TABLE(table), index)

                                    ^

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\lorabase.h:372:42: note: in expansion of macro 'TABLE_GET_U1'

 inline bit_t validDR  (dr_t dr) { return TABLE_GET_U1(_DR2RPS_CRC, dr+1)!=ILLEGAL_RPS; } // in range

                                          ^~~~~~~~~~~~

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\oslmic.h:215:36: warning: 'table_get_u1' is static but used in inline function 'assertDR' which is not static

 #define TABLE_GET_U1(table, index) table_get_u1(RESOLVE_TABLE(table), index)

                                    ^

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\lorabase.h:371:42: note: in expansion of macro 'TABLE_GET_U1'

 inline dr_t  assertDR (dr_t dr) { return TABLE_GET_U1(_DR2RPS_CRC, dr+1)==ILLEGAL_RPS ? DR_DFLTMIN : dr; }   // force into a valid DR

                                          ^~~~~~~~~~~~

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\oslmic.h:215:36: warning: 'table_get_u1' is static but used in inline function 'decDR' which is not static

 #define TABLE_GET_U1(table, index) table_get_u1(RESOLVE_TABLE(table), index)

                                    ^

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\lorabase.h:370:42: note: in expansion of macro 'TABLE_GET_U1'

 inline dr_t  decDR    (dr_t dr) { return TABLE_GET_U1(_DR2RPS_CRC, dr  )==ILLEGAL_RPS ? dr : (dr_t)(dr-1); } // decrease data rate

                                          ^~~~~~~~~~~~

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\oslmic.h:215:36: warning: 'table_get_u1' is static but used in inline function 'incDR' which is not static

 #define TABLE_GET_U1(table, index) table_get_u1(RESOLVE_TABLE(table), index)

                                    ^

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\lorabase.h:369:42: note: in expansion of macro 'TABLE_GET_U1'

 inline dr_t  incDR    (dr_t dr) { return TABLE_GET_U1(_DR2RPS_CRC, dr+2)==ILLEGAL_RPS ? dr : (dr_t)(dr+1); } // increase data rate

                                          ^~~~~~~~~~~~

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\oslmic.h:215:36: warning: 'table_get_u1' is static but used in inline function 'updr2rps' which is not static

 #define TABLE_GET_U1(table, index) table_get_u1(RESOLVE_TABLE(table), index)

                                    ^

C:\Users\peter\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\lorabase.h:365:49: note: in expansion of macro 'TABLE_GET_U1'

 inline rps_t updr2rps (dr_t dr) { return (rps_t)TABLE_GET_U1(_DR2RPS_CRC, dr+1); }

                                                 ^~~~~~~~~~~~

De schets gebruikt 20590 bytes (8%)  programma-opslagruimte. Maximum is 253952 bytes.
Globale variabelen gebruiken 875 bytes (10%) van het dynamisch geheugen. Resteren 7317 bytes voor lokale variabelen. Maximum is 8192 bytes.


druk ik voor de 2de keer op compileren dan krijg ik er gene meer en mag ik hem ook uploaden naar de arduino mega

Gebruikers-avatar
Berichten: 5043
Geregistreerd: 13 Mei 2013, 20:57
Woonplaats: Heemskerk

Re: arduino mega dragin wil niet werken.

Berichtdoor nicoverduin » 24 Nov 2019, 20:38

Ik werk met sloeber en dan heb ik dit niet. Dus kan ik het niet reproduceren. Ik werk met 1.6.23 geen idee hoe dit verhoudt tot de normale Arduino IDE.
Docent HBO Technische Informatica, Embedded ontwikkelaar & elektronicus
http://www.verelec.nl

Berichten: 47
Geregistreerd: 13 Jan 2016, 19:22

Re: arduino mega dragin wil niet werken.

Berichtdoor superpeter » 24 Nov 2019, 20:59

nicoverduin schreef:Ik werk met sloeber en dan heb ik dit niet. Dus kan ik het niet reproduceren. Ik werk met 1.6.23 geen idee hoe dit verhoudt tot de normale Arduino IDE.

waar kan ik slober vinden/downloaden?
want het is in ieder geval het proberen waar om te kijken of die wel wil werken?

Volgende

Terug naar Overige projecten

Wie is er online?

Gebruikers in dit forum: Geen geregistreerde gebruikers en 9 gasten