Interface with the purpose of operating Trains with the "THM-Simulator" and "LokSim3D" using the control panel of this tram:
https://www.strassenbahn-online.de/Betriebshof/Duewag/M/M_top.jpgFollow the steps below to perform a fresh upload to an Arduino/Waveshare Nano ESP32-S3:
-
Build Partition and Firmware Binary
-
Flash the
partitions.binfile to address0x8000using the following command:esptool.py --port $UPLOAD_PORT --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 16MB 0x8000 partitions.bin -
Upload
firmware.binto address0x10000(factory) -
Upload
littlefs.binto address0x190000(SPIFFS)
To Upload to a "normal" ESP32 model, pick the appropriate board in the platformio.ini file together with platformIO's integrated "Upload" and "upload filesystem" functions
Dont forget to pick the right COM-Port!
- make use of the default ESP32-S3 partition (for some reason, the default "factory" part is to small)
- Evaluating the data packets from LokSim3D-Server and setting the outputs accordingly
- Store Config in Header-Files instead of using Filesystem
