Closed marcel151 closed 3 years ago
I'm afraid I can't help you with PlatformIO. I'm struggling myself to get it working. As far as I can tell, the PlatformIO builder is not capable of using third-party components.
If you want to experiment yourself, you definitely want to use the dev branch of this library.
I had same and some more problems to get ttn-esp32 running using platformio and esp-idf. But now its working. See working example see here: https://github.com/vrees/Esp32LoraBoard
To get it running I had to change following:
src/lmic/config.h
__src/aes/lmic_aes.c__ line 260: u4_t t0, t1=0, t2, t3;
void TheThingsNetwork::shutdown() { ttn_hal.enterCriticalSection(); LMIC_shutdown(); waitingReason = eWaitingNone; if (lmicEventQueue != nullptr) { xQueueReset(lmicEventQueue); } ttn_hal.leaveCriticalSection(); }
My system: VSCode 1.45.1 Espressif 32 Platform displayed in 'PIO Home' 1.12.1 Linux Mint
I've updated the wiki Page Using PlatformIO with the latest information about using PlatformIO.
I got the same problem as in the following closed issue: https://github.com/manuelbl/ttn-esp32/issues/13
"'ESP_INTR_FLAG_IRAM' was not declared in this scope [64,11]" "'gpio_install_isr_service' was not declared in this scope [64,36]"
I am using PlatformIO so I don't know how to use another version of ESP-IDF.
My system: macOS 10.15.4 VSCode 1.45.1 PlatformIO Core 4.3.3 - Home 3.2.2 ESP-IDF 3.40000.200303
I am relatively new to PlatformIO, so I hope I didn't do anything wrong. I just followed your Get-Started Guide (https://github.com/manuelbl/ttn-esp32/wiki/Get-Started) and did anything you mentioned.