Esp32-SE transmitter Lo-Fi (LoRaWan)

I have an “ESP32-SE Lo-Fi”
I need to use the internal antenna of this ESP to send data to a database (LoRaWan)
The dataBase is not made by me but i’m sure it works.

I have tried to use this code to send data to the LoRaWan but it tells me some error that I am not able to comprehend.
Here is my code (For some safety issue I have deleted the AppEUI, DevEUI, and APPKEY)

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>#include <lmic.h>
#include <hal/hal.h>
#include <SPI.h>
// Remplir avec les valeurs obtenues lors de l'enregistrement de votre appareil sur TTN
static const u1_t PROGMEM APPEUI[8] = { 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x };
void os_getArtEui (u1_t* buf) { memcpy(buf, APPEUI, 8);}
static const u1_t PROGMEM DEVEUI[8] = { 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x };
void os_getDevEui (u1_t* buf) { memcpy(buf, DEVEUI, 8);}
static const u1_t PROGMEM APPKEY[16] = { 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x };
void os_getDevKey (u1_t* buf) { memcpy(buf, APPKEY, 16);}
// Pin mapping
const lmic_pinmap lmic_pins = {
.nss = 5, // GPIO5 (IO5)
.rxtx = LMIC_UNUSED_PIN,
.rst = 14, // GPIO14 (IO14)
.dio = {2, 15, 4}, // DIO0: GPIO2 (IO2), DIO1: GPIO15 (IO15), DIO2: GPIO4 (IO4)
};
void setup() {
Serial.begin(115200);
Serial.println(F("Starting"));
// Initialisation de LMIC
os_init();
Serial.println(F("LMIC initialized"));
// Réinitialiser l'état MAC. Les sessions et les transferts de données en attente seront annulés.
LMIC_reset();
Serial.println(F("LMIC reset"));
// Désactiver la validation de la vérification de lien
LMIC_setLinkCheckMode(0);
// TTN utilise SF9 pour sa fenêtre RX2.
LMIC.dn2Dr = DR_SF9;
Serial.println(F("Data rate set"));
// Définir le débit de données et la puissance de transmission (note: txpow semble être ignoré par la bibliothèque)
LMIC_setDrTxpow(DR_SF7, 14);
Serial.println(F("Setup Complete"));
}
void loop() {
Serial.println(F("Running loop"));
os_runloop_once();
delay(100); // Ajout d'un délai pour éviter de surcharger le CPU
}
</code>
<code>#include <lmic.h> #include <hal/hal.h> #include <SPI.h> // Remplir avec les valeurs obtenues lors de l'enregistrement de votre appareil sur TTN static const u1_t PROGMEM APPEUI[8] = { 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x }; void os_getArtEui (u1_t* buf) { memcpy(buf, APPEUI, 8);} static const u1_t PROGMEM DEVEUI[8] = { 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x }; void os_getDevEui (u1_t* buf) { memcpy(buf, DEVEUI, 8);} static const u1_t PROGMEM APPKEY[16] = { 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x }; void os_getDevKey (u1_t* buf) { memcpy(buf, APPKEY, 16);} // Pin mapping const lmic_pinmap lmic_pins = { .nss = 5, // GPIO5 (IO5) .rxtx = LMIC_UNUSED_PIN, .rst = 14, // GPIO14 (IO14) .dio = {2, 15, 4}, // DIO0: GPIO2 (IO2), DIO1: GPIO15 (IO15), DIO2: GPIO4 (IO4) }; void setup() { Serial.begin(115200); Serial.println(F("Starting")); // Initialisation de LMIC os_init(); Serial.println(F("LMIC initialized")); // Réinitialiser l'état MAC. Les sessions et les transferts de données en attente seront annulés. LMIC_reset(); Serial.println(F("LMIC reset")); // Désactiver la validation de la vérification de lien LMIC_setLinkCheckMode(0); // TTN utilise SF9 pour sa fenêtre RX2. LMIC.dn2Dr = DR_SF9; Serial.println(F("Data rate set")); // Définir le débit de données et la puissance de transmission (note: txpow semble être ignoré par la bibliothèque) LMIC_setDrTxpow(DR_SF7, 14); Serial.println(F("Setup Complete")); } void loop() { Serial.println(F("Running loop")); os_runloop_once(); delay(100); // Ajout d'un délai pour éviter de surcharger le CPU } </code>
#include <lmic.h>
#include <hal/hal.h>
#include <SPI.h>

// Remplir avec les valeurs obtenues lors de l'enregistrement de votre appareil sur TTN
static const u1_t PROGMEM APPEUI[8] = { 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x };
void os_getArtEui (u1_t* buf) { memcpy(buf, APPEUI, 8);}

static const u1_t PROGMEM DEVEUI[8] = { 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x };
void os_getDevEui (u1_t* buf) { memcpy(buf, DEVEUI, 8);}

static const u1_t PROGMEM APPKEY[16] = { 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x, 0x };
void os_getDevKey (u1_t* buf) { memcpy(buf, APPKEY, 16);}

// Pin mapping
const lmic_pinmap lmic_pins = {
    .nss = 5,     // GPIO5 (IO5)
    .rxtx = LMIC_UNUSED_PIN,
    .rst = 14,    // GPIO14 (IO14)
    .dio = {2, 15, 4}, // DIO0: GPIO2 (IO2), DIO1: GPIO15 (IO15), DIO2: GPIO4 (IO4)
};

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

    // Initialisation de LMIC
    os_init();
    Serial.println(F("LMIC initialized"));

    // Réinitialiser l'état MAC. Les sessions et les transferts de données en attente seront annulés.
    LMIC_reset();
    Serial.println(F("LMIC reset"));

    // Désactiver la validation de la vérification de lien
    LMIC_setLinkCheckMode(0);

    // TTN utilise SF9 pour sa fenêtre RX2.
    LMIC.dn2Dr = DR_SF9;
    Serial.println(F("Data rate set"));

    // Définir le débit de données et la puissance de transmission (note: txpow semble être ignoré par la bibliothèque)
    LMIC_setDrTxpow(DR_SF7, 14);
    Serial.println(F("Setup Complete"));
}

void loop() {
    Serial.println(F("Running loop"));
    os_runloop_once();
    delay(100);  // Ajout d'un délai pour éviter de surcharger le CPU
}

I have download the “MCCI Arduino LoRaWan Library” and the “esp32” board

Here is a link to the board documentation: https://github.com/sbcshop/Lo-Fi_Software/tree/main/documents

Here is my return who loop

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>Core 1 register dump:
PC : 0x42002258 PS : 0x00060e34 A0 : 0x82002499 A1 : 0x3fcebfa0
A2 : 0x3c030304 A3 : 0x00000035 A4 : 0x3fc95ad0 A5 : 0x00000000
A6 : 0x00000000 A7 : 0x00000000 A8 : 0x82002258 A9 : 0x3fcebf80
A10 : 0x3fc95ad0 A11 : 0x00000002 A12 : 0x0000000a A13 : 0x0000ff00
A14 : 0x00ff0000 A15 : 0xff000000 SAR : 0x00000016 EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x400556d5 LEND : 0x400556e5 LCOUNT : 0xffffffff
Backtrace: 0x42002255:0x3fcebfa0 0x42002496:0x3fcebfc0 0x42001ae0:0x3fcebfe0 0x42005eea:0x3fcec010
Core 0 register dump:
PC : 0x403796b2 PS : 0x00060c34 A0 : 0x8200d730 A1 : 0x3fcf4360
A2 : 0x00000000 A3 : 0x420198e4 A4 : 0x00060c20 A5 : 0x00000001
A6 : 0x80000000 A7 : 0x3fc92f88 A8 : 0x8200ca3a A9 : 0x3fcf4320
A10 : 0x00000000 A11 : 0x3fc93030 A12 : 0x3fc93030 A13 : 0x00000000
A14 : 0x00060c20 A15 : 0x3fc93040 SAR : 0x0000001d EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Backtracx�x����x���������x����xx�x���x����xx�x�����������x��������x������x���x����xx�x���������x����������x���x�x���x����xx�x�����xx�x�xx�xx�xx�xx�xxx�xx���x��x�xxx���x�xx��x��������������x�x�xx������x����xx��x�xx�x�x�xx�x��xx�xx�x�x�x��x�x�xx�x�xx�x���ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4200cdff
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x508
load:0x403c9700,len:0x4
load:0x403c9704,len:0xad0
load:0x403cc700,len:0x29e4
entry 0x403c9880
Starting
FAILURE
c:UserstomwiOneDriveDocumentsArduinolibrariesMCCI_LoRaWAN_LMIC_librarysrclmicoslmic.c:53
Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1).
</code>
<code>Core 1 register dump: PC : 0x42002258 PS : 0x00060e34 A0 : 0x82002499 A1 : 0x3fcebfa0 A2 : 0x3c030304 A3 : 0x00000035 A4 : 0x3fc95ad0 A5 : 0x00000000 A6 : 0x00000000 A7 : 0x00000000 A8 : 0x82002258 A9 : 0x3fcebf80 A10 : 0x3fc95ad0 A11 : 0x00000002 A12 : 0x0000000a A13 : 0x0000ff00 A14 : 0x00ff0000 A15 : 0xff000000 SAR : 0x00000016 EXCCAUSE: 0x00000006 EXCVADDR: 0x00000000 LBEG : 0x400556d5 LEND : 0x400556e5 LCOUNT : 0xffffffff Backtrace: 0x42002255:0x3fcebfa0 0x42002496:0x3fcebfc0 0x42001ae0:0x3fcebfe0 0x42005eea:0x3fcec010 Core 0 register dump: PC : 0x403796b2 PS : 0x00060c34 A0 : 0x8200d730 A1 : 0x3fcf4360 A2 : 0x00000000 A3 : 0x420198e4 A4 : 0x00060c20 A5 : 0x00000001 A6 : 0x80000000 A7 : 0x3fc92f88 A8 : 0x8200ca3a A9 : 0x3fcf4320 A10 : 0x00000000 A11 : 0x3fc93030 A12 : 0x3fc93030 A13 : 0x00000000 A14 : 0x00060c20 A15 : 0x3fc93040 SAR : 0x0000001d EXCCAUSE: 0x00000006 EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000 Backtracx�x����x���������x����xx�x���x����xx�x�����������x��������x������x���x����xx�x���������x����������x���x�x���x����xx�x�����xx�x�xx�xx�xx�xx�xxx�xx���x��x�xxx���x�xx��x��������������x�x�xx������x����xx��x�xx�x�x�xx�x��xx�xx�x�x�x��x�x�xx�x�xx�x���ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x4200cdff SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3818,len:0x508 load:0x403c9700,len:0x4 load:0x403c9704,len:0xad0 load:0x403cc700,len:0x29e4 entry 0x403c9880 Starting FAILURE c:UserstomwiOneDriveDocumentsArduinolibrariesMCCI_LoRaWAN_LMIC_librarysrclmicoslmic.c:53 Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1). </code>
Core  1 register dump:
PC      : 0x42002258  PS      : 0x00060e34  A0      : 0x82002499  A1      : 0x3fcebfa0  
A2      : 0x3c030304  A3      : 0x00000035  A4      : 0x3fc95ad0  A5      : 0x00000000  
A6      : 0x00000000  A7      : 0x00000000  A8      : 0x82002258  A9      : 0x3fcebf80  
A10     : 0x3fc95ad0  A11     : 0x00000002  A12     : 0x0000000a  A13     : 0x0000ff00  
A14     : 0x00ff0000  A15     : 0xff000000  SAR     : 0x00000016  EXCCAUSE: 0x00000006  
EXCVADDR: 0x00000000  LBEG    : 0x400556d5  LEND    : 0x400556e5  LCOUNT  : 0xffffffff  


Backtrace: 0x42002255:0x3fcebfa0 0x42002496:0x3fcebfc0 0x42001ae0:0x3fcebfe0 0x42005eea:0x3fcec010


Core  0 register dump:
PC      : 0x403796b2  PS      : 0x00060c34  A0      : 0x8200d730  A1      : 0x3fcf4360
A2      : 0x00000000  A3      : 0x420198e4  A4      : 0x00060c20  A5      : 0x00000001  
A6      : 0x80000000  A7      : 0x3fc92f88  A8      : 0x8200ca3a  A9      : 0x3fcf4320  
A10     : 0x00000000  A11     : 0x3fc93030  A12     : 0x3fc93030  A13     : 0x00000000  
A14     : 0x00060c20  A15     : 0x3fc93040  SAR     : 0x0000001d  EXCCAUSE: 0x00000006  
EXCVADDR: 0x00000000  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000  


Backtracx�x����x���������x����xx�x���x����xx�x�����������x��������x������x���x����xx�x���������x����������x���x�x���x����xx�x�����xx�x�xx�xx�xx�xx�xxx�xx���x��x�xxx���x�xx��x��������������x�x�xx������x����xx��x�xx�x�x�xx�x��xx�xx�x�x�x��x�x�xx�x�xx�x���ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4200cdff
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x508
load:0x403c9700,len:0x4
load:0x403c9704,len:0xad0
load:0x403cc700,len:0x29e4
entry 0x403c9880
Starting
FAILURE 
c:UserstomwiOneDriveDocumentsArduinolibrariesMCCI_LoRaWAN_LMIC_librarysrclmicoslmic.c:53
Guru Meditation Error: Core  1 panic'ed (Interrupt wdt timeout on CPU1).

I am really sorry for my writing skill in english and wish that you can help me.
Thanks in advance

New contributor

user24436260 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật