lora-gateway / esxp1302

An 8-channel ESP32 LoRa Gateway based on SX1302
Other
33 stars 17 forks source link

allow compilation using platformio #1

Closed danielkucera closed 7 months ago

danielkucera commented 7 months ago

These versions are being used based on espressif32@5.4.0 usage:

PACKAGES: 
 - framework-espidf @ 3.40405.230623 (4.4.5) 
 - tool-cmake @ 3.16.4 
 - tool-esptoolpy @ 1.40400.0 (4.4.0) 
 - tool-ninja @ 1.7.1 
 - toolchain-esp32ulp @ 1.23500.220830 (2.35.0) 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5

There were many compilation errors when using latest espressif32 with esp-idf 5.x

lora-gateway commented 7 months ago

Thanks for your work to make it can compile with PlatformIO.

The version of esp-idf used in this project is surely too old and needs to be updated. And now it works with v4.4.5. :-)

The latest esp-idf seems apply more strict check to the C code, that's why it contains so many errors. However, I think it's better to update to the latest SX1302_HAL (v2.1.0) first, then fix the compile error and make it compiles under esp-idf v5.1.

I'll try to work on the update in the coming days.