gereic / GXAirCom

Multifunctional, compatible DIY aviation proximity awareness, variometer and messaging system with FANET+, FLARM and OGN support.
122 stars 39 forks source link

T-Beam S3 Core build #141

Closed VirusPilot closed 1 year ago

VirusPilot commented 1 year ago

I have successfully compiled and flashed for the T-Beam S3 but same problem as with the prior T-Beam: when connecting with WiFi and trying to load the web page, the device resets. I could resolve this with the T-Beam by flashing the upstream binaries and then saving the settings on the device but here I can't flash the upstream binaries for the T-Beam S3.

CORRECTION: I can flash the T-Beam S3 with the upstream binaries but then the device won't boot.

gereic commented 1 year ago

Have you flashed also the spiffs (filesystem) ? If not, that is the probelm.

VirusPilot commented 1 year ago

Here is my flash command: esptool --baud 921600 --chip esp32s3 -p /dev/cu.usbmodem14201 write_flash 0x1000 bootloader.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 firmware_v5.3.5_T-Beam-S3Core.bin 0x3d0000 spiffs_v5.3.5.bin

VirusPilot commented 1 year ago

Is the spiffs partition to be flashed at 0x3d0000 or 0x7d0000?

rvt commented 1 year ago

I took my info from : https://github.com/gereic/GXAirCom/blob/master/8mb_spiffs.csv THis is what we use in Stratux : https://github.com/b3nn0/stratux/blob/master/GxAirCom/install-GxAirCom-Stratux-firmware.sh

VirusPilot commented 1 year ago

I now separately flashed spiffs @ 0x7d0000 after the poi flash, now working.

VirusPilot commented 1 year ago

Last observation today, now that it is running: I can't redirect the GPS output to serial

gereic commented 1 year ago

What do you mean by serial ? Do you mean the USB-C port or the serial on the pins ? It sends the GPS to the serial of the pins not to USB-C.

VirusPilot commented 1 year ago

With serial I was expecting to the USB-C port, similar to older T-Beams.

gereic commented 1 year ago

You can change the behavor in the platform.ini by uncomment the line ;-DARDUINO_USB_CDC_ON_BOOT=1 ;for output over USB-C

VirusPilot commented 1 year ago

Will do and report, probably not before tomorrow.

VirusPilot commented 1 year ago

All fine now. Still would like to know whether the spiffs partition has to be flashed at 0x3d0000 or 0x7d0000 on the ESP32 and the ESP32S3?

gereic commented 1 year ago

On the 8mb_spiffs.csv (which is used for the S3Core-Board, 0x7d0000 On the min_spiffs.csv (which is used for the other ESP32, 0x3d0000

VirusPilot commented 1 year ago

no issues any more, thanks for the quick response!

hogmoff commented 1 year ago

I tried to flash the T-Beam S3 SoftRF with the firmware v5.3.5 from https://github.com/gereic/GXAirCom/tree/master/bin with settings from https://github.com/gereic/GXAirCom/blob/master/bin/downloadsettings.JPG but nothing happens after successful download and reset. Before flash, i've clicked erase.

I tried to change the address from 0x3d0000 to 0x7d0000, too. Same behavior.

What i'm making wrong?

rvt commented 1 year ago

I don't believe this is in master yet. If you want to try one of the pull requests, then you have tio build it yourself. Visual Studio Code + PlatformIO is your friend, it's fairly easy if you are a bit technical. Then upload to your tbeam.

this is what I do for a default T-Beam using platformio.

pio run -t upload -e psRam
pio run -t uploadfs -e psRam

uploadsfs you usually only have to do it the first time...

VirusPilot commented 1 year ago

I believe I did the following steps:

hogmoff commented 1 year ago

Thanks for your helpful replies! I'll try it

rvt commented 1 year ago

I believe I did the following steps:

  • compile/upload the latest sources using PlatformIO (selecting env:T-Beam-S3-Core)
  • manually flashing spiffs: esptool --baud 921600 --chip esp32s3 -p /dev/<your T-Beam> write_flash 0x7d0000 spiffs_v5.3.5.bin

If it requires something special, it might justify creating a new environment for it?

hogmoff commented 1 year ago

I believe I did the following steps:

* compile/upload the latest sources using PlatformIO (selecting env:T-Beam-S3-Core)

* manually flashing spiffs: `esptool --baud 921600 --chip esp32s3 -p /dev/<your T-Beam> write_flash 0x7d0000 spiffs_v5.3.5.bin`

With this settings it's now working. I was a little confused about no blinkings leds, but in PlatformIO with Monitor i saw the working T-Beam. Thanks for your help!

VirusPilot commented 1 year ago

Seems to be resolved.