ngraziano / LMICPP-Arduino

Lmic (LoraWAN-in-C) modified to C++
61 stars 13 forks source link

getting Chip version : 0 now (i use to have Chip version : 18) #22

Closed daeynasvistas closed 2 years ago

daeynasvistas commented 2 years ago
rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
⸮626278 Chip version : 0
1251359 Init Join loop : avail=1251340 txend=1323953
1251366 Packet queued
1251377 Uplink delayed until 1323953
1323831 Ready for uplink
1323856 Time on air : 61 ms
1323875 Config power to 16 on PA_BOOST
1323893 TXMODE, freq=868300000, len=23, SF=7, BW=125, CR=4/5

well i think i broke something.

all was great but now it seems icannot comunicate with lora chip

i have this :

#define MOSI 13
#define MISO 12
#define CS 15
#define SCLK 14

and this:

constexpr lmic_pinmap lmic_pins = {
    .nss = 15,
    .prepare_antenna_tx = nullptr,
    .rst = LMIC_UNUSED_PIN,
    .dio = {5, 4},
};

all work 100% before.. with same config and same ESP32 pico custom board

daeynasvistas commented 2 years ago

Damn.. im so stupid.. sorry

i change example to check the LMIC SAVESTATE and didnt add the arg to SPI.begin

so i keep the issue, it may help someone

FIX:

SPI.begin(SCLK, MISO, MOSI, CS); // sclk, miso, mosi, ss