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

Fail to upload factory and default firmware #10

Open
JpEncausse opened this issue Jul 6, 2023 · 8 comments
Open

Fail to upload factory and default firmware #10

JpEncausse opened this issue Jul 6, 2023 · 8 comments

Comments

@JpEncausse
Copy link

Hello,

  • I just received the device then plugged-in it boot and works
  • I tried to compile/upload with PlatformIO the example/firmware is fail while uploading, the display is black
  • I tried to upload the default firmware with esptool it fail at 50/60% (screenshots)
  • I tried to change the driver (some issue on intenet) didn't change anything
  • I have other TTGO Display, etc ... all other works, compile and upload.

error

I don't know what to do,

  1. I need to upload the firmware with esptool to validate it works
  2. then uderstand why I can't upload from PlatformIO

I switch port, reduce the bandwith, etc ... nothing change
Now when I monitor the device from VSCode I have a loop :

Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403bb22e
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0108,len:0x43c
load:0x403b6000,len:0xbd0
load:0x403ba000,len:0x29c8
SHA-256 comparison failed:
Calculated: 27beaa143e4753b6cdeed5b388d3ebbf4c921ce01156fd10673139a323a25557
Expected: 6eb14ec480aff4f05e39378c41406102ac163573741e63b6cfd73509ef44e3bd
Attempting to boot anyway...
entry 0x403b61d8
ESP-ROM:esp32s3-20210327
@JpEncausse
Copy link
Author

JpEncausse commented Jul 6, 2023

  • I tried to restart : nothing change
  • I wait and retry : the firmware as been updated
  • I try example project : it is VERY random, sometimes it upload up to 8% sometimes it works sometimes it's 80% or 60%

It's like the device get disconnected while uploading or something like that. I tried multiple USB port same issue.
A fatal error occurred: The chip stopped responding.

@JpEncausse
Copy link
Author

So pressing the button while inserting the USB, seems to always help uploading the firmware with esptool.exe

But otherwise the upload of the firmware or the from platformio fail most of the time.
I assume the USB key do something ?? that break upload ?

@JpEncausse
Copy link
Author

JpEncausse commented Jul 7, 2023

I confirm, the Serial communication from this device is not stable.

SerialPrint

When I correctly upload my custom firmware (doing Serial.print() ) I see text chuck in VSCode with spaces ' ' in the middle of trace, like if the lag introduce kind of error or chunck.

@lewisxhe
Copy link
Contributor

lewisxhe commented Jul 7, 2023

1.Pressed BOOT Button
2. Insert USB
3. Upload

@JpEncausse
Copy link
Author

JpEncausse commented Jul 7, 2023

1.Pressed BOOT Button 2. Insert USB 3. Upload

Yes that's the workflow I use to save the dongle with master firmware when nothing works

But how do you handle regular developpement in PlatformIO ? Do you follow these steps each time before pressing Upload of your code ?!

I don't have these issue with other LILYGO devices (camera, display, etc ... works fine) Is it a specific issue to this type of device ? or my device has flaws?

@lewisxhe
Copy link
Contributor

lewisxhe commented Jul 7, 2023

No, the program does not need to operate in this way during normal operation. It is only necessary to operate in this way when the wrong program is running causing chip abnormalities.

@JpEncausse
Copy link
Author

There is still a lot of difficulities to upload custom code with PlatformIO to the device in normal mode.
It fail > 50% of the time and need to reset to default firmware (plug / push button) before trying again
Is it normal behavior ?

@lewisxhe
Copy link
Contributor

lewisxhe commented Jul 8, 2023

Try reducing the Baud by 115200. I have no problem with the test here.

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

No branches or pull requests

2 participants