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

Not planned
@Idirianuk

Description

@Idirianuk

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.

Activity

me-no-dev

me-no-dev commented on Apr 29, 2022

@me-no-dev
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

Jason2866 commented on Apr 29, 2022

@Jason2866
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

Idirianuk commented on Apr 29, 2022

@Idirianuk
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

UnexpectedMaker commented on Apr 29, 2022

@UnexpectedMaker
Contributor

@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

billsmithem commented on Apr 30, 2022

@billsmithem

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

UnexpectedMaker

UnexpectedMaker commented on Apr 30, 2022

@UnexpectedMaker
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

billsmithem commented on May 1, 2022

@billsmithem

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

Jason2866 commented on May 1, 2022

@Jason2866
Collaborator

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.

30 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @billsmithem@UnexpectedMaker@me-no-dev@LouBerry@Jason2866

      Issue actions

        S3 sketch fails to execute when built on Linux (Ubuntu) but executes perfectly when built on Windows. Unexpected Maker S3 boards · Issue #6661 · espressif/arduino-esp32