-
Notifications
You must be signed in to change notification settings - Fork 148
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
Compile errors with PlatformIO #118
Comments
I've downloaded code as zip, compiled (on Windows) and it succeeds. Did you change anything? Using latest code? |
Hi Miha, Thanks for responding. I use VSC 1.81.0 on Windows 10. |
By your error log it might be a problem with xtensa stuff.
|
Same results. I tried to compile with the Arduino IDE. I also get a lot of errors despite all my corrections (libraries, wrong declarations) I'm close to give up and I'm still looking for a working SCPF to make tests on the 433 MHz band. |
You have more libraries than me, odd, here are my (under lib directory) aes and here is my only dependency declared in platformio.ini file
Try deleting your lib directory for starters and use my board configuration, I assume it will be recreated with just necessary libraries. |
Thanks for taking the time to try to help me. With an empty lib folder, I compiled several times and resolved the library errors, one by one. Now it compiles further but I have this error : The libraries loaded are : Can you check if you have the same libs and versions ? (except for the WiFImanager I ihad to change, it didn't find a function in the original one) Thanks, |
I managed to succeed to compile for a TTGO board. But as soon as I change some settings in the 2 config files, it's going mad ! Did you succeed to flash a TTGO board and make a gateway working ? If yes, can you send me your confignode.h and configGway.h ? But I think, I will give up. :-( |
SUCCESS ! I managed to compile and make the gateway work, after a lot of testing and tweaking. I use a TTGO T-beam 1.21 module. It needed some time, but it finally works. I had to use the original config files and made only a very few adjustements. The gateway reports to our local Chirpstark server. But for the moment I can't decode my sensor board made with a demo sender software on an Arduino and sandeepmistry library. Does someone have a sketch for Arduino that works to send LoRaWan packets ? Thanks, |
Can you share your Projectfile? I have been trying to compile it for the T-Beam V1.1, and have fixed some errors, but still cant compile and progress further with my current one. |
Hi Bob, Glad to hear that you managed to compile successfully. Yes, OLED works perfectly. I understand you have a T-beam I have a T3. What band and frequency will you use ? I can see my Gway receives packets, and forward them. But I can't see them on the Chirpstack server. Also decoding SF12 doesn't work, SF7 works perfectly. |
My solution for the same compilation problem was in _txRx.ino:316:
So, just add a typecast to HTH, regards Klaus |
HI, I'm trying to compile the ESP-1ch-Gateway with PlatformIO, but I get these errors :
C:/Users/Admin/Documents/PlatformIO/Projects/ESP-1ch-Gateway-master/src/_txRx.ino:309:44: error: call of overloaded 'abs(uint32_t)' is ambiguous
`c:\users\admin.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\bits\std_abs.h:78:3: note: candidate: 'constexpr long double std::abs(long double)'
abs(long double __x)
^~~
c:\users\admin.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\bits\std_abs.h:74:3: note: candidate: 'constexpr float std::abs(float)'
abs(float __x)
^~~
c:\users\admin.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\bits\std_abs.h:70:3: note: candidate: 'constexpr double std::abs(double)'
abs(double __x)
^~~
c:\users\admin.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\bits\std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
abs(long long __x) { return __builtin_llabs (__x); }
^~~
c:\users\admin.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\bits\std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
abs(long __i) { return __builtin_labs(__i); }
^~~`
*** [.pio\build\Gateway_38\src\ESP-sc-gway.ino.cpp.o] Error 1
Does anyone has a solution?
Also, I would like to use a NodeMCU v3 board. Any luck to succeed ?
Thanks, Patrick.
The text was updated successfully, but these errors were encountered: