-
-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heltec ESP32 #173
Comments
I have the same problem using a TTGO ESP32 868Mhz V1.0 board:
|
@Stephanv94 Hey, I have compiled another sketch for my Heltec board and I got it working. You can download the example code from https://github.com/jpraychev/Heltec_ESP32 The board I have compiled the sketch for is Heltec ESP32 with SX1276 transceiver. Depending on your board you have to change the radio type in config.h file in the LMIC library. Another thing to mention is that you have to change the addresses for your particular node. Hope this helps you with your project! If you got any question, feel free to discuss it! Best regards, |
@jpraychev I managed to get the OTAA sketch working setting the pin mapping correctly. Thanks a lot for your time! Kind regards, |
@Stephanv94 how did you actually solve this problem? I'm getting the same exact thing. Does your initialization block look like this? const lmic_pinmap lmic_pins = {
.nss = 18,
.rxtx = LMIC_UNUSED_PIN,
.rst = 14,
.dio = {26, 33, 32},
}; |
For Heltec32 868 MHz Board use this lmic pin mapping:
and
|
@cyberman54 thanks for the feedback but I still get this bizarre runtime error described in this issue. I wonder what is causing it. Seems like related issues on the web suggest it's the way ISRs are attached. See espressif/arduino-esp32#855. |
Lmic arduino is not using interrupts, it polls instead. And i can assert, the Heltec boards run under arduino and with lmic. The problem will be caused by something in your application, not in lmic and not in the hardware. Try a backtrace with the PC and PS values to find the line of code triggering the reset. |
@cyberman54 thanks for the input, I was using the example sketch and it was still giving me errors, but adding a delay seems to have fixed the problem. I don't know what went wrong there, but all seems good. Thanks again for the help! Correction: the issue was actually caused by use of u8x8.drawString() call in the code, if you don't set the font before using drawString(), you will get the Guru Meditation error |
I just managed to the the Heltec-LORA-OLED thing going (https://robotzero.one/heltec-wifi-lora-32/) The secret was to merge PR #77 and use the following pin definition:
|
Hello,
Last few days I am trying to get Heltec ESP32 working with TheThingsNetworks. I am not able to get the OTAA sketch working. When i upload the code to the board i am getting the following message on the serial monitor and after that the board resets and everything starts all over again.
2 A11 : 0x000⸮⸮⸮
Guru Meditation Error: Core 1 panic'ed (IllegalInstruction)
Exception was unhandled.
Core 1 register dump:
PC : 0x400d1340 PS : 0x00060530 A0 : 0x800d2e4a A1 : 0x3ffca560
A2 : 0x00000003 A3 : 0x3f40107c A4 : 0x00000002 A5 : 0x00000003
A6 : 0x00000001 A7 : 0x00000000 A8 : 0x800d133a A9 : 0x3ffca540
A10 : 0x00000002 A11 : 0x00000001 A12 : 0x00000000 A13 : 0x00000000
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x0000001b EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff
Backtrace: 0x400d1340:0x3ffca560 0x400d2e47:0x3ffca580 0x400d0c91:0x3ffca5a0 0x400e6a87:0x3ffca5c0
The text was updated successfully, but these errors were encountered: