Platform.io, Lmic-node and eternal newbie

Hi all,
I warn you: I’m getting old but I can’t progress :frowning:
Worse: I despair when I read (here: https://www.thethingsnetwork.org/forum/t/arduino-lmic-library-config-for-esp32/52585 ) : “Installing PlatformIO, downloading and getting LMIC-node up and running is quick, easy and well documented.”
I don’t doubt this assertion … so I most likely reached my level of incompetence :frowning:

My problem : I would like to use Lmic-node on a TTGO V1 but I don’t understand what this error means when I try to compile :

[...]
Compiling .pio/build/ttgo_lora32_v1/lib127/U8g2/clib/u8x8_u8toa.c.o
Compiling .pio/build/ttgo_lora32_v1/lib530/EasyLed/EasyLed.cpp.o
Archiving .pio/build/ttgo_lora32_v1/lib127/libU8g2.a
Indexing .pio/build/ttgo_lora32_v1/lib127/libU8g2.a
Archiving .pio/build/ttgo_lora32_v1/lib530/libEasyLed.a
Indexing .pio/build/ttgo_lora32_v1/lib530/libEasyLed.a
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/aes/ideetron/AES-128_V10.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/aes/lmic.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/aes/other.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_catena4420.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_catena4551.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_catena4610.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_catena4611.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_catena4612.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_catena4617.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_catena4618.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_catena4630.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_catena4801.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_catena4802.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_disco_l072cs_lrwan1.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_feather32u4lora.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_featherm0lora.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_heltec_lora32.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_thisboard.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/getpinmap_ttgo_lora32_v1.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/hal/hal.cpp.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/lmic.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/lmic_as923.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/lmic_au915.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/lmic_channelshuffle.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/lmic_compliance.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/lmic_eu868.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/lmic_eu_like.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/lmic_in866.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/lmic_kr920.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/lmic_us915.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/lmic_us_like.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/lmic_util.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/oslmic.c.o
Compiling .pio/build/ttgo_lora32_v1/lib401/MCCI LoRaWAN LMIC library/lmic/radio.c.o
Archiving .pio/build/ttgo_lora32_v1/libFrameworkArduinoVariant.a
Indexing .pio/build/ttgo_lora32_v1/libFrameworkArduinoVariant.a
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/Esp.cpp.o
Archiving .pio/build/ttgo_lora32_v1/lib401/libMCCI LoRaWAN LMIC library.a
Indexing .pio/build/ttgo_lora32_v1/lib401/libMCCI LoRaWAN LMIC library.a
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/IPAddress.cpp.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/IPv6Address.cpp.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/MD5Builder.cpp.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/Print.cpp.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/Stream.cpp.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/StreamString.cpp.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/WMath.cpp.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/WString.cpp.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/base64.cpp.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/cbuf.cpp.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-adc.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-bt.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-cpu.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-dac.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-gpio.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-i2c.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-ledc.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-log.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-matrix.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-misc.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-psram.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-rmt.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-sigmadelta.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-time.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-timer.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-touch.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/esp32-hal-uart.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/libb64/cdecode.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/libb64/cencode.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/main.cpp.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/stdlib_noniso.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/wiring_pulse.c.o
Compiling .pio/build/ttgo_lora32_v1/FrameworkArduino/wiring_shift.c.o
Archiving .pio/build/ttgo_lora32_v1/libFrameworkArduino.a
Indexing .pio/build/ttgo_lora32_v1/libFrameworkArduino.a
*** [.pio/build/ttgo_lora32_v1/firmware.elf] Implicit dependency `/home/Malban/.platformio/platforms/espressif32/builder/Use' not found, needed by target `.pio/build/ttgo_lora32_v1/firmware.elf'.
=========================================== [FAILED] Took 44.00 seconds 

What does this Use subdirectory mean (which does not exist on my disk) ?

thank you for giving me one last chance !!!

No opinion on this compilation failure :frowning:
So I’m thinking that this problem may not be related to “Lmic-node” and that I should rather ask on the side of the “platform.io” forums?
Tix

I am no expert (As a Ex is a has been and a spurt is a drip under pressure :grinning:) on Platform.io nor Lmic-node or VS code.

  1. Are you sure you have the correct version of the board you are using?

  2. I have had trouble where if you use another IDE and then Platform.io, you need to reboot your PC before you use VS Code.

Thanks for your return, Johan :slight_smile:

:partying_face: I understand you perfectly :joy:

1- Normally yes but I am a little more surprised every day … by my incapacities :frowning:
2- Thanks: I wouldn’t have thought of that (I’m using the Arduino IDE)

Easy to make a mistake with them — TTGO, some times you have to search on that small boards to find the correct information. I am not try to be condescending.

don’t be worried: no problem; on the contrary I appreciate any suggestion … and it is often after multiple checks that I find a huge error !!!
Thanks.

If we can crack on past your modesty, can you try the simplest possible sketch for your device as a ‘smoke’ test - ie does the very simplest code work.

Having:

*** [.pio/build/ttgo_lora32_v1/firmware.elf] Implicit dependency /home/Malban/.platformio/platforms/espressif32/builder/Use' not found, needed by target .pio/build/ttgo_lora32_v1/firmware.elf'.

that refers to some random other user (assuming you aren’t Malban on a linux based machine) seems to be one of those WTF issues that pop’s up every few months. Which most likely got fixed about 30 seconds after they committed their code as 1,000 developers all faced the same WTF moment.

But for now, please try the simple Blinky or similar - the v1 may just be past its compile-by date.

1 Like

Ok, @descartes :slight_smile:
next week I will find my computer to follow your process.

that refers to some random other user (assuming you aren’t Malban on a linux based machine)

./Malban is my “home directory” (Linux Ubuntu 18.04)

I’ll get back to it in a few days.
Thanks a lot for your return : the result is less important than the motivation … when it’s only about leisure :wink:

I just successfully built LMIC-node on PlatformIO for your TTGO V1 target. My …/espressif32/builder folder does not contain any file or folder named “Use”.

There are 4 comments in platformio.ini which begin “; Use …” You probably made a mistake editing platformio.ini, or possibly one of the other configuration files. I suggest you clone a clean copy of the LMIC-node repository and carefully diff your edited configuration files against the unmodified versions.

Not identical but possibly related. Maybe the following hints in the right direction:

1 Like

Thank you very much for your advice @nu3e and @bluejedi :slight_smile:
I’m going to study this quietly (when it starts to rain… because for the moment I’m working outside;)
(… but it can also be dark :slight_smile: )

I am also a newbie with PlatformIO but I learned a lot from this project. https://levelup.gitconnected.com/getting-started-with-helium-mapping-2833914c4d3

Then, I made a note in Thai language on medium.com here. เริ่มต้นศึกษา VSCode และ PlatformIO | by Somsak Lima | May, 2022 | Medium