Skip to content

S3 sketch fails to execute when built on Linux (Ubuntu) but executes perfectly when built on Windows. Unexpected Maker S3 boards #6661

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

Closed
1 task done
Idirianuk opened this issue Apr 29, 2022 · 20 comments
Assignees
Labels
Chip: ESP32-S3 Issue is related to support of ESP32-S3 Chip Resolution: Expired More info wasn't provided Resolution: Unable to reproduce With given information issue is unable to reproduce

Comments

@Idirianuk
Copy link

Idirianuk commented Apr 29, 2022

Board

Unexpected Maker Tiny S3 (ESP32-S3FN8) and Feather S3 (ESP32-S3)

Device Description

Bare board- nothing else attached.

Hardware Configuration

No devices connected

Version

v2.0.2

IDE Name

Arduino IDE and Arduino via vs.code

Operating System

Linux Mint (Ubuntu 20.04LTE) and Windows 10

Flash frequency

80MHz

PSRAM enabled

yes

Upload speed

921600

Description

Tested using 2.02 and 2.03RC1

When compiling any sketch under Linux, in all circumstances, for the UM Tiny S3, the board enters a continuous boot loop. For the UM Feather S3 board, SOME partitioning schemes will run, without boot looping.

Under Windows 10, everything compiles and loads perfectly well with no problems for either board.

For the UMFeather S3, under Linux, the schemes marked in red always fail.
For the UM Tiny S3, all schemes fail.
schemes

Sketch

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

Debug Message

Build:Mar 27 2021
entry 0x403b61d8
ESP-ROM:esp32s3-20210327
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
entry 0x403b61d8
ESP-ROM:esp32s3-20210327

Other Steps to Reproduce

Compile Blink sketch on Linux IDE results in failures to execute.
Compile Blink sketch on Windows IDE, results in success.

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@Idirianuk Idirianuk added the Status: Awaiting triage Issue is waiting for triage label Apr 29, 2022
@me-no-dev
Copy link
Member

And you are sure that you are using the same versions on both machines? Did you install from board manager? Except the toolchain, everything else is exactly the same on all operating systems.

@Jason2866
Copy link
Collaborator

Is esptool.py v3.3 used? Only the v3.3 includes the needed header patching fix for the S3. Without you encounter issues with boards and partitions using a other scheme than 4MB

@Idirianuk
Copy link
Author

At this time, I have moved away from Linux and on to Windows because of these difficulties and am unable to reproduce at this time.

At the time, under Linux, I tried installing the toolchain manually AND via board manager. Both caused problems with the UM boards.

Regarding esptool 3.3, all was set up using a current toolchain as it was a brand new install of Linux. Under windows, esptool is most certainly 3.3. I have uninstalled Linux, but it is my belief that 3.3 was being used. I have to say, I cannot confirm this absolutely at this time.

It is worth mentioning that irrespective of partition scheme used, for the UM Tiny S3, no partition scheme worked at all.

I realise this is unhelpful. By reporting this issue, I was hoping to provide a service to the community and help with the improvement of the toolchain. It is worth stating that I am not a technical expert, just an amateur doing his best and trying to help.

I fully realise this is a partially "incomplete" report, and in order to just get on with things, I have decided to move back to Windows, where I have no problems at all. Presently, I have removed my Linux installation and cannot reproducce for further investigation.

It is worth mentioning that a contact, via Unexpected Maker's Discord Server has experienced exactly the same difficulties, especially with the UM Tiny S3 and has himself reverted to using Windows, where the same problem isn't being experienced for him too.

@UnexpectedMaker
Copy link
Contributor

UnexpectedMaker commented Apr 29, 2022

@me-no-dev I'm able to build and deploy on the Mac with all of my boards, and @prplz is able to build and deploy on Windows with all of my S3 boards, but I had to install latest from Master and manually run python get.py . 2.0.3RC1 from boards manager put my TinyS3 into the same boot loop.

So I'm thinking that installing from board manager is not installing the tool chain properly on some systems?

I'm running macOS 12.3.1, Arduino IDE 1.8.19

@billsmithem
Copy link

I'm seeing the same issue on the TinyS3 running esptool.py v3.3-dev on Ubuntu 20.04.

@UnexpectedMaker
Copy link
Contributor

I'm seeing the same issue on the TinyS3 running esptool.py v3.3-dev on Ubuntu 20.04.

3.3-dev is older than 3.3. Can you try upgrading your esptool?

@billsmithem
Copy link

Where might I find 3.3? I just re-did the manual install per https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html and 3.3-dev is the version that was installed again.

@Jason2866
Copy link
Collaborator

Jason2866 commented May 1, 2022

There is no valid entry for the ESP32-S3 in this file So updating Arduino with this package_esp32_index.json is not a working way.
Not using Arduino IDE. Maybe this file since it is actual and maybe working. Worth a try.
@me-no-dev The package.json in branch gh-pages should be updated.

@VojtechBartoska VojtechBartoska added Type: Question Only question Resolution: Awaiting response Waiting for response of author and removed Status: Awaiting triage Issue is waiting for triage labels May 2, 2022
@VojtechBartoska VojtechBartoska added Status: Needs investigation We need to do some research before taking next steps on this issue and removed Type: Question Only question Resolution: Awaiting response Waiting for response of author labels May 3, 2022
@Idirianuk
Copy link
Author

Is esptool.py v3.3 used? Only the v3.3 includes the needed header patching fix for the S3. Without you encounter issues with boards and partitions using a other scheme than 4MB

Have just rebuilt a Linux Mint 20.03LTS installation and have set up the toolchain using...

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

...in the Additional Boards Manager URL settings and can confirm that the problem is present and can confirm that v3.3 of esptool.py is being used.

Using default settings, the serial monitor is repeatedly showing:

ESP-ROM:esp32s3-20210327
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
entry 0x403b61d8

@me-no-dev
Copy link
Member

There is no valid entry for the ESP32-S3 in this file So updating Arduino with this package_esp32_index.json is not a working way.

Those are just list of boards. Not something required for S3 to work. In the 2.0.3 final, there is an S3 board too. Testing on x86 linux ix an issue for me currently as I am buried in ARMs around me. I'll see what I can do.

@VojtechBartoska VojtechBartoska added this to the 2.0.4 milestone May 18, 2022
@VojtechBartoska VojtechBartoska added the Chip: ESP32-S3 Issue is related to support of ESP32-S3 Chip label May 18, 2022
@PilnyTomas
Copy link
Contributor

Hi, I don't have the boards you are using. I tested only on official DevKitC-1 v1.6 and could not replicate the issue.

@VojtechBartoska VojtechBartoska added the Resolution: Unable to reproduce With given information issue is unable to reproduce label May 19, 2022
@VojtechBartoska VojtechBartoska moved this from Todo to Under investigation in Arduino ESP32 Core Project Roadmap May 19, 2022
@LouBerry
Copy link

LouBerry commented Jun 10, 2022

Hi, just had tried to flash tinyS3 without success on linus as well.

OS: Manjaro up-to-date
IDE: Arduino 1.8.15, esp32 2.03
Board: UM TinyS3

Flashing simple or even emtpy arduino .ino files results in endless serial monitor output like:

09:21:56.886 -> ESP-ROM:esp32s3-20210327
09:21:56.886 -> Build:Mar 27 2021
09:21:56.886 -> rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
09:21:56.886 -> Saved PC:0x403bb0ce
09:21:56.886 -> SPIWP:0xee
09:21:56.886 -> mode:DIO, clock div:1
09:21:56.886 -> load:0x3fcd0108,len:0x39c
09:21:56.886 -> load:0x403b6000,len:0x9a4
09:21:56.886 -> load:0x403ba000,len:0x2868
09:21:56.886 -> entry 0x403b61c0

Board settings as below
Turning Flash mode to DIO doesn't help.

image

Any more information needed?

@me-no-dev
Copy link
Member

can you try using the same settings but on the general "ESP32-S3 Dev Board"?

@LouBerry
Copy link

I tried the same board on windows, which I can confirm is working just fine.

Tried the "ESP32-S3 Dev Module" on linux, without success.
Flashing works but it is not possible to replicate the settings from my screenshot, since not all options are present.

@me-no-dev
Copy link
Member

which one is missing? you should have all those options for the dev module

@VojtechBartoska VojtechBartoska moved this from Under investigation to Todo in Arduino ESP32 Core Project Roadmap Jun 15, 2022
@LouBerry
Copy link

These are the settings for the Dev Module I can see.

image

@me-no-dev
Copy link
Member

And what is missing from the above, that you can not switch to using that config?

@VojtechBartoska
Copy link
Contributor

Any updates on this?

@VojtechBartoska VojtechBartoska moved this from Todo to Under investigation in Arduino ESP32 Core Project Roadmap Jun 27, 2022
@VojtechBartoska VojtechBartoska removed this from the 2.0.4 milestone Jun 29, 2022
@VojtechBartoska
Copy link
Contributor

As far we are not able to reproduce it, please if you still face this issue, share the steps how to reproduce it. Otherwise this issue will be closed. Thanks in advance!

@VojtechBartoska
Copy link
Contributor

Closing as expired due to no answer. If it's still needed, please reopen the issue. Thanks for understanding.

@VojtechBartoska VojtechBartoska closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2022
Repository owner moved this from Under investigation to Done in Arduino ESP32 Core Project Roadmap Jul 26, 2022
@VojtechBartoska VojtechBartoska added Resolution: Expired More info wasn't provided and removed Status: Needs investigation We need to do some research before taking next steps on this issue labels Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chip: ESP32-S3 Issue is related to support of ESP32-S3 Chip Resolution: Expired More info wasn't provided Resolution: Unable to reproduce With given information issue is unable to reproduce
Projects
Development

No branches or pull requests

8 participants