Skip to content
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

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

Open
DL4ZAQ opened this issue May 19, 2023 · 4 comments
Open

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

DL4ZAQ opened this issue May 19, 2023 · 4 comments
Labels
question Further information is requested

Comments

@DL4ZAQ
Copy link

DL4ZAQ commented May 19, 2023

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):

  • OS: Win 10
  • PlatformIO Version: Newest
  • Firmware Version: Newest

*  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
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:

  • framework-arduinoespressif32 @ 3.20007.0 (2.0.7)
  • tool-esptoolpy @ 1.40500.0 (4.5.0)
  • tool-mkfatfs @ 2.0.1
  • tool-mklittlefs @ 1.203.210628 (2.3)
  • tool-mkspiffs @ 2.230.0 (2.30)
  • toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ deep+, Compatibility ~ soft
    Found 50 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- ArduinoJson @ 6.21.2
    |-- AXP202X_Library @ 1.1.3
    |-- APRS-Decoder-Lib @ 0.0.6
    |-- esp-logger @ 1.0.0
    |-- ESP-FTP-Server-Lib @ 0.11.0
    |-- PubSubClient @ 2.8.0
    |-- TinyGPSPlus @ 1.0.3
    |-- OneButton @ 1.5.0
    |-- RadioLib @ 5.7.0
    |-- APRS-IS
    |-- WiFi @ 2.0.0
    |-- BoardFinder
    |-- Ethernet @ 2.0.0
    |-- SPI @ 2.0.0
    |-- Wire @ 2.0.0
    |-- System
    |-- Display
    |-- ConfigurationManagement
    |-- PowerManagement
    |-- FS @ 2.0.0
    |-- NTPClient
    |-- ArduinoOTA @ 2.0.0
    |-- Update @ 2.0.0
    |-- TimeLib
    |-- SPIFFS @ 2.0.0
    Building in release mode
    Building FS image from 'data' directory to .pio\build\lora_board\spiffs.bin
    /is-cfg.json
    Looking for upload port...
    Auto-detected: COM7
    Uploading .pio\build\lora_board\spiffs.bin
    esptool.py v4.5
    Serial port COM7
    Connecting....
    Chip is ESP32-PICO-D4 (revision v1.0)
    Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
    Crystal is 40MHz
    MAC: d4:d4:da:9d:84:70
    Uploading stub...
    Running stub...
    Stub running...
    Changing baud rate to 460800
    Changed.
    Configuring flash size...
    Flash will be erased from 0x00290000 to 0x003effff..
    Compressed 1441792 bytes to 3639...
    Writing at 0x00290000.. (100 %)
    Wrote 1441792 bytes (3639 compressed) at 0x00290000 in 5.9 seconds (effective 1960.9 kbit/s)...
    Hash of data verified.

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 DL4ZAQ added the bug Something isn't working label May 19, 2023
@DL4ZAQ
Copy link
Author

DL4ZAQ commented May 19, 2023

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
Copy link
Member

peterus commented May 20, 2023

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)

@peterus peterus added question Further information is requested and removed bug Something isn't working labels May 20, 2023
@DL4ZAQ
Copy link
Author

DL4ZAQ commented May 22, 2023

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 DL4ZAQ changed the title TTGO Lora32 V2.1 Does not boot image TTGO Lora32 V2.1 PlatformIO does not recognize upload port May 22, 2023
@DL4ZAQ
Copy link
Author

DL4ZAQ commented May 22, 2023

Issue closed - no success installing this code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants