lora-aprs / LoRa_APRS_iGate

This is a LoRa APRS iGate/Digi based on an ESP32
https://www.lora-aprs.info
MIT License
331 stars 106 forks source link

TTGO Lora32 V2.1 PlatformIO does not recognize upload port #298

Open DL4ZAQ opened 1 year ago

DL4ZAQ commented 1 year ago

Describe the bug

TTGO Lora32 V2.1 Does not boot image after upload via Upload File System image in PlatformIO. Build ok in PlatformIO Upload ok in PlatformIO Board stays with the meshtastic firmware on it after it rebooted. Tried it many times with always the same result.

Desktop (please complete the following information):

*  Executing task: C:\Users\cpnef.platformio\penv\Scripts\platformio.exe run --target uploadfs --environment lora_board

Processing lora_board (board: ttgo-lora32-v2; platform: espressif32 @ 6.1.0; framework: arduino) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://[docs.platformio.org/page/boards/espressif32/ttgo-lora32-v2.html](https://docs.platformio.org/page/boards/espressif32/ttgo-lora32-v2.html) PLATFORM: Espressif 32 (6.1.0) > TTGO LoRa32-OLED V2 HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

Leaving... Hard resetting via RTS pin... ================================================================================== [SUCCESS] Took 15.40 seconds ================================================================================== Environment    Status    Duration -------------  --------  ------------ lora_board     SUCCESS   00:00:15.400 ================================================================================== 1 succeeded in 00:00:15.400 ==================================================================================  *  Terminal will be reused by tasks, press any key to close it.

*Additional context Followed your great installation guideline

DL4ZAQ commented 1 year ago

BTW I changed the board and tried also V2.1, V1.0 as well as T-Beam (yes I am really lost at this point) without success. To me it seems that there is no data flashed to the Device… no matter what the terminal is telling me. At least it appears, that the currently installed meshtastic software is still there. I also tried to do a flash erase - then the screen of the TTOG Device is black but it does not change it´s behavior after uploading the file system. I have no clue.

I found this meanwhile this but it does not help me at all - did the procedure but without success:

https://community.platformio.org/t/esp32-irresponsive-after-uploading-filesystem-image/23074

What can I do? Any hints? Can this be fixed in the software?

73 Peter

peterus commented 1 year ago

Hi Peter!

To flash the board, you need to execute 2 steps (one time to upload the firmware, the second time is to upload the configuration).

You can find more here: https://www.lora-aprs.info/docs/LoRa_APRS_iGate/quick-start-guide/ or on some youtube videos (Manuel Lausmann, etc)

DL4ZAQ commented 1 year ago

Hallo Peter, vielen Dank für Deine Hinweise.

Zwischenzeitlich kompiliert die Software - schön. Aber leider komme ich trotzdem nicht weiter.

Leider kann ich die Software nicht auf das Board übertragen. PlatformIO erkennt den Upload Port nicht und der Vorgang wird abgebrochen. Im Win Dev. Manager ist das Board erkannt. Den COM Port habe ich dann auch in der PlatformIO.ini als Upload port "fest" verdrahtet... ohne Erfolg. Darauf hin habe ich alles mögliche versucht um den "Fehler" zu finden. Aber das liegt wohl an meiner Installation, die ich übrigens mehrfach deinstalliert und neu aufgesetzt habe. Auch das hat alles nichts gebracht.

Unter Linux habe ich das ganze dann auch noch mal aufgesetzt aber da kompiliert der Code schon gar nicht... Ich bekomme immer Fehlermeldungen und kaum habe ich eine Hürde genommen, kommt die nächste.

Das frustriert... Ich habe das Board jetzt als GS-Groundstation geflashed - hat auf Anhieb funktioniert. Als Meshtastic Node: auf Anhieb funktioniert.

Mit Verlaub: Der LoraTracker war innerhalb von wenigen Minuten auf meinem T-Beam lauffähig.

Irgendwie habe ich jetzt nach vielen Stunden die Lust verloren.... und gebe auf. Warum muss das alles so kompliziert sein?

Danke und Gruss Peter

DL4ZAQ commented 1 year ago

Issue closed - no success installing this code