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

Programming issue #6

Closed
itay-grudev opened this issue Jul 26, 2023 · 15 comments
Closed

Programming issue #6

itay-grudev opened this issue Jul 26, 2023 · 15 comments
Labels

Comments

@itay-grudev
Copy link

I have two T-TWR, rev 1 and I can't program any of them.

I followed your reset procedure in the troubleshooting section, but when I do that the serial device disappears from the USB Device list.

Do you have any other advice?

@lewisxhe
Copy link
Contributor

Try steps:
1.Connect the board via the USB cable
2.Press and hold the BOOT button , While still pressing the BOOT button, press RST
3.Release the RST
4.Release the BOOT button
5.Upload sketch

@itay-grudev
Copy link
Author

@lewisxhe As I said, when I follow that procedure the device disappears from the USB. It's very strange and I can't upload anything.

@SensorsIot
Copy link

My two boards also create lots of problems. If I follow your advice and reset it with GPIO0 pressed, the board draws 1.7A, and the SA868 gets extremely hot (but no output power on RF). I managed to program one board using RX/TX pins. The other one only creates brownouts (also with a battery attached).

@lyusupov
Copy link
Contributor

lyusupov commented Aug 25, 2023

Version 1.x of T-TWR uses GPIO39 to drive H/L pin of SA868 module.
Unfortunately, it is not well documented by Espressif that GPIO39 has hardware pull up after reset to meet some JTAG MTCK purpose requirements.

https://www.esp32.com/viewtopic.php?f=12&p=111105

This (not well documented) pull-up state of GPIO39 can cause an excessive heat of SA868 module until it is explicitly set to LOW (or, at least, high impedance) state by a customer's firmware.
LilyGO factory firmware pulls the GPIO39 down at very first steps of it's initialization sequence.

  1. OpenOCD firmware uploading method is known good to operate with T-TWR 1.3:
    https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/jtag-debugging/#upload-application-for-debugging

  2. Wi-FI 'Over-The-Air' (OTA) firmware update method does typically have no issues with T-TWR 1.x. as well.

This issue is NOT applicable for version 2.x of the T-TWR which is also known as T-TWR Plus.

Here is an example of the T-TWR Plus operating as APRS Beacon device.
https://drive.google.com/file/d/18a2PpIE4KQ6lYPcmPZgXnCYFSRYEqKz-/view

A bit more info about this particular use case is available there: https://github.com/lyusupov/SoftRF/wiki/Ham-Edition

@SensorsIot
Copy link

I think that these boards are not fit for purpose and I will throw my 4 pcs into the waste. If you sell such a product with Arduino software it should be programmable with Arduino SW.
The problem with the high current starts when you set the board into the upload status (press boot + reset), which is needed in many cases for programming. I do not exactly know why. Most probably not only because of GPIO39. H/L has no function in the RX mode of the SA868 module.
For all that that want to use them anyway: Use RX/TX for programming instead of USB. Reset the board and wait till the Arduino IDE starts to upload. Then press boot and quickly reset. Now it uploads, and the module warms up. Immediately after upload, reset the board, and if you set PTT and H/L to low, as written above, the board is not boiling. If you set the Arduino parameters correctly, it might even be possible to program it with USB from now on.

@lyusupov
Copy link
Contributor

lyusupov commented Aug 25, 2023

I think that these boards are not fit for purpose

It was reported by LilyGO that the engineer who designed T-TWR 1.3 no longer works for that company. Some online stores may still sell stocks of v1.3 boards remaining...

T-TWR Plus (a.k.a. v2.0) is supported by Adafruit TinyUF2 bootloader since 0.16.0:
https://github.com/adafruit/tinyuf2/releases/tag/0.16.0
Read this PR for details: adafruit/tinyuf2#337

Installing a new firmware into T-TWR Plus with pre-installed TinyUF2 is as simple as mouse "drag and drop" motion in a File Manager.
https://github.com/lyusupov/SoftRF/blob/master/software/firmware/binaries/README.md#esp32-s3

@SensorsIot
Copy link

Unfortunately, this is not entirely true. Just checked and the official Lilygo Store still sells the old version.

@lyusupov
Copy link
Contributor

lyusupov commented Aug 28, 2023

... the official Lilygo Store still sells the old version.

LilyGO official store: https://www.lilygo.cc/products/t-twr

@SensorsIot
Copy link

From 10 seconds ago:
image

@SensorsIot
Copy link

BTW: I just saw your name on my new T-Echo. If you are responsible for it: Congratulations! It should appear in one of my next videos

@lyusupov
Copy link
Contributor

lyusupov commented Aug 28, 2023

T-Echo is a result of collaboration of LilyGO with

Lewis is the LilyGO leading engineer who was driving force for development of the T-Echo in 2020 / 2021.

#6 (comment)

image

Lewis is driving development of T-TWR V2.x (a.k.a. Plus) series at this time.

@lewisxhe
Copy link
Contributor

lewisxhe commented Aug 28, 2023

Hi @SensorsIot @itay-grudev ,

If you encounter problems during use, please contact customer service for processing.

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 27, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

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

No branches or pull requests

4 participants