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

C6 build in CI causes boot loop with "ets_loader.c 67" message. Local arduino-cli builds work fine. (Both with BSP 3.0.5 + 3.1.0-rc.1) #636

Closed
tyeth opened this issue Oct 3, 2024 · 3 comments · Fixed by #651
Assignees

Comments

@tyeth
Copy link
Contributor

tyeth commented Oct 3, 2024

Adafruit Feather C6 builds from CI jobs are causing a boot loop, with a repeating message of:

---- Reopened serial port /dev/tty.usbmodem142101 ----
15:12:17:072 -> ESP-ROM:esp32c6-20220919
15:12:17:072 -> Build:Sep 19 2022
15:12:17:073 -> rst:0x7 (TG0_WDT_HPSYS),boot:0xb (SPI_FAST_FLASH_BOOT)
15:12:17:073 -> Saved PC:0x4001a9f4
15:12:17:073 -> SPIWP:0xee
15:12:17:073 -> mode:QIO, clock div:2
15:12:17:075 -> load:0x4086c410,len:0xcf8
15:12:17:085 -> ets_loader.c 67 
15:12:17:721 -> ESP-ROM:esp32c6-20220919
15:12:17:721 -> Build:Sep 19 2022
15:12:17:722 -> rst:0x7 (TG0_WDT_HPSYS),boot:0xb (SPI_FAST_FLASH_BOOT)
15:12:17:722 -> Saved PC:0x4001a9f4
15:12:17:723 -> SPIWP:0xee
15:12:17:723 -> mode:QIO, clock div:2
15:12:17:725 -> load:0x4086c410,len:0xcf8
15:12:17:727 -> ets_loader.c 67 
15:12:18:371 -> ESP-ROM:esp32c6-20220919
15:12:18:371 -> Build:Sep 19 2022
15:12:18:372 -> rst:0x7 (TG0_WDT_HPSYS),boot:0xb (SPI_FAST_FLASH_BOOT)
15:12:18:372 -> Saved PC:0x4001a9f4
15:12:18:373 -> SPIWP:0xee
15:12:18:373 -> mode:QIO, clock div:2
15:12:18:376 -> load:0x4086c410,len:0xcf8
15:12:18:377 -> ets_loader.c 67 
---- Closed serial port /dev/tty.usbmodem142101 due to disconnection from the machine ----
---- Reopened serial port /dev/tty.usbmodem142101 ----
15:12:19:718 -> ESP-ROM:esp32c6-20220919
15:12:19:718 -> Build:Sep 19 2022
15:12:19:719 -> rst:0x7 (TG0_WDT_HPSYS),boot:0xb (SPI_FAST_FLASH_BOOT)
15:12:19:719 -> Saved PC:0x4001a9f4
15:12:19:720 -> SPIWP:0xee
15:12:19:720 -> mode:QIO, clock div:2
15:12:19:723 -> load:0x4086c410,len:0xcf8
15:12:19:724 -> ets_loader.c 67 
15:12:20:368 -> ESP-ROM:esp32c6-20220919
15:12:20:374 -> Build:Sep 19 2022
15:12:20:374 -> rst:0x7 (TG0_WDT_HPSYS),boot:0xb (SPI_FAST_FLASH_BOOT)
15:12:20:374 -> Saved PC:0x4001a9f4
15:12:20:374 -> SPIWP:0xee
15:12:20:374 -> mode:QIO, clock div:2
15:12:20:374 -> load:0x4086c410,len:0xcf8
15:12:20:374 -> ets_loader.c 67 
15:12:21:018 -> ESP-ROM:esp32c6-20220919
15:12:21:018 -> Build:Sep 19 2022
15:12:21:019 -> rst:0x7 (TG0_WDT_HPSYS),boot:0xb (SPI_FAST_FLASH_BOOT)
15:12:21:019 -> Saved PC:0x4001a9f4
15:12:21:020 -> SPIWP:0xee
15:12:21:021 -> mode:QIO, clock div:2
15:12:21:022 -> load:0x4086c410,len:0xcf8
15:12:21:024 -> ets_loader.c 67 
---- Closed serial port /dev/tty.usbmodem142101 due to disconnection from the machine ----

Attempted switching DIO/QIO flash mode and various other things. Local builds work / flash fine, but CI builds don't work.

@tyeth
Copy link
Contributor Author

tyeth commented Oct 3, 2024

Tagging @brentru to take a look later

@tyeth
Copy link
Contributor Author

tyeth commented Oct 3, 2024

Related discussion (nothing so far): espressif/arduino-esp32#10418

@brentru
Copy link
Member

brentru commented Oct 18, 2024

Here is my build of main

13:56:45.504 -> E (1239) esp_littlefs: ./managed_components/joltwallet__littlefs/src/littlefs/lfs.c:1369:error: Corrupted dir pair at {0x0, 0x1}
13:56:45.504 -> 
13:56:45.504 -> E (1240) esp_littlefs: mount failed,  (-84)
13:56:45.504 -> E (1244) esp_littlefs: Failed to initialize LittleFS

Dependency Log:

Using library Adafruit WipperSnapper at version 1.0.0-beta.90 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_Wippersnapper_Arduino 
Using library Adafruit MQTT Library at version 2.5.8 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_MQTT_Library 
Using library Adafruit SleepyDog Library at version 1.6.5 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_SleepyDog 
Using library SPI at version 3.0.5 in folder: /Users/brentrubell/Library/Arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/SPI 
Using library Adafruit DotStar at version 1.2.3 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_DotStar 
Using library Adafruit BusIO at version 1.16.1 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_BusIO 
Using library Adafruit NeoPixel at version 1.12.3 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_NeoPixel 
Using library ArduinoJson at version 7.0.4 in folder: /Users/brentrubell/Documents/Arduino/libraries/ArduinoJson 
Using library Wire at version 3.0.5 in folder: /Users/brentrubell/Library/Arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/Wire 
Using library Adafruit Unified Sensor at version 1.1.12 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_Sensor 
Using library Adafruit ADT7410 Library at version 1.2.0 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_ADT7410_Library 
Using library Adafruit AHTX0 at version 2.0.5 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_AHTX0 
Using library hp_BH1750 at version 1.0.2 in folder: /Users/brentrubell/Documents/Arduino/libraries/hp_BH1750 
Using library Adafruit BME280 Library at version 2.2.2 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_BME280_Library 
Using library Adafruit BME680 Library at version 2.0.2 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_BME680_Library 
Using library Adafruit BMP280 Library at version 2.6.8 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_BMP280_Library 
Using library Adafruit BMP3XX Library at version 2.1.2 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_BMP3XX_Library 
Using library Adafruit DPS310 at version 1.1.1 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_DPS310 
Using library Adafruit DS248x at version 1.1.0 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_DS248x 
Using library ENS160 - Adafruit Fork at version 3.0.1 in folder: /Users/brentrubell/Documents/Arduino/libraries/ENS160_-_Adafruit_Fork 
Using library Adafruit HDC302x at version 1.0.1 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_HDC302x 
Using library Adafruit HTS221 at version 0.1.2 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_HTS221 
Using library Adafruit HTU21DF Library at version 1.1.2 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_HTU21DF_Library 
Using library Adafruit HTU31D Library at version 1.1.3 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_HTU31D_Library 
Using library Adafruit INA219 at version 1.2.1 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_INA219 
Using library Adafruit LC709203F at version 1.3.2 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_LC709203F 
Using library Adafruit LPS2X at version 2.0.4 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_LPS2X 
Using library Adafruit LPS35HW at version 1.0.4 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_LPS35HW 
Using library Adafruit LTR329 and LTR303 at version 2.0.1 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_LTR329_and_LTR303 
Using library Adafruit LTR390 Library at version 1.1.2 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_LTR390_Library 
Using library Adafruit MAX1704X at version 1.0.2 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_MAX1704X 
Using library Adafruit MCP3421 at version 1.0.0 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_MCP3421 
Using library Adafruit MCP9808 Library at version 2.0.0 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_MCP9808_Library 
Using library Adafruit MPL115A2 at version 2.0.0 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_MPL115A2 
Using library Adafruit MPRLS Library at version 1.2.0 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_MPRLS_Library 
Using library Adafruit MS8607 at version 1.0.2 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_MS8607 
Using library Adafruit NAU7802 Library at version 1.0.4 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_NAU7802_Library 
Using library Adafruit PCT2075 at version 1.0.3 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_PCT2075 
Using library Adafruit PM25 AQI Sensor at version 1.1.0 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_PM25AQI 
Using library Adafruit SCD30 at version 1.0.9 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_SCD30 
Using library Sensirion I2C SCD4x at version 0.4.0 in folder: /Users/brentrubell/Documents/Arduino/libraries/Sensirion_I2C_SCD4x 
Using library Sensirion Core at version 0.6.0 in folder: /Users/brentrubell/Documents/Arduino/libraries/Sensirion_Core 
Using library Sensirion I2C SEN5X at version 0.3.0 in folder: /Users/brentrubell/Documents/Arduino/libraries/Sensirion_I2C_SEN5X 
Using library Adafruit SGP30 Sensor at version 2.0.3 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_SGP30_Sensor 
Using library Adafruit SGP40 Sensor at version 1.1.1 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_SGP40_Sensor 
Using library arduino-sht at version 1.2.2 in folder: /Users/brentrubell/Documents/Arduino/libraries/arduino-sht 
Using library Adafruit Si7021 Library at version 1.5.1 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_Si7021_Library 
Using library Adafruit seesaw Library at version 1.7.8 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_seesaw_Library 
Using library Adafruit TMP117 at version 1.0.1 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_TMP117 
Using library Adafruit TSL2591 Library at version 1.4.3 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_TSL2591_Library 
Using library Adafruit VCNL4020 Library at version 1.0.1 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_VCNL4020_Library 
Using library Adafruit VCNL4040 at version 1.0.4 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_VCNL4040 
Using library Adafruit VEML7700 Library at version 2.1.2 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_VEML7700 
Using library Adafruit_VL53L0X at version 1.2.2 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_VL53L0X 
Using library Adafruit VL53L1X at version 3.1.1 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_VL53L1X 
Using library STM32duino VL53L4CD at version 1.0.3 in folder: /Users/brentrubell/Documents/Arduino/libraries/STM32duino_VL53L4CD 
Using library STM32duino VL53L4CX at version 1.1.0 in folder: /Users/brentrubell/Documents/Arduino/libraries/STM32duino_VL53L4CX 
Using library Adafruit_VL6180X at version 1.4.3 in folder: /Users/brentrubell/Documents/Arduino/libraries/Adafruit_VL6180X 
Using library DallasTemperature at version 3.11.0 in folder: /Users/brentrubell/Documents/Arduino/libraries/Arduino-Temperature-Control-Library 
Using library OneWireNg at version 0.13.3 in folder: /Users/brentrubell/Documents/Arduino/libraries/OneWireNg 
Using library FS at version 3.0.5 in folder: /Users/brentrubell/Library/Arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/FS 
Using library LittleFS at version 3.0.5 in folder: /Users/brentrubell/Library/Arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/LittleFS 
Using library WiFi at version 3.0.5 in folder: /Users/brentrubell/Library/Arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/WiFi 
Using library Networking at version 3.0.5 in folder: /Users/brentrubell/Library/Arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/Network 
Using library NetworkClientSecure at version 3.0.5 in folder: /Users/brentrubell/Library/Arduino15/packages/esp32/hardware/esp32/3.0.5/libraries/NetworkClientSecure 
/Users/brentrubell/Library/Arduino15/packages/esp32/tools/esp-rv32/2302/bin/riscv32-esp-elf-size -A /private/var/folders/ff/dmzflvf52tq9kzvt6g8jglxw0000gn/T/arduino/sketches/8D5237A774E8A5676C87F67D8D568BBA/Wippersnapper_demo.ino.elf
Sketch uses 1440814 bytes (68%) of program storage space. Maximum is 2097152 bytes.
Global variables use 46740 bytes (14%) of dynamic memory, leaving 280940 bytes for local variables. Maximum is 327680 bytes.
"/Users/brentrubell/Library/Arduino15/packages/esp32/tools/esptool_py/4.6/esptool" --chip esp32c6 --port "/dev/cu.usbmodem1201" --baud 921600  --before default_reset --after hard_reset write_flash  -z --flash_mode keep --flash_freq keep --flash_size keep 0x0 "/private/var/folders/ff/dmzflvf52tq9kzvt6g8jglxw0000gn/T/arduino/sketches/8D5237A774E8A5676C87F67D8D568BBA/Wippersnapper_demo.ino.bootloader.bin" 0x8000 "/private/var/folders/ff/dmzflvf52tq9kzvt6g8jglxw0000gn/T/arduino/sketches/8D5237A774E8A5676C87F67D8D568BBA/Wippersnapper_demo.ino.partitions.bin" 0xe000 "/Users/brentrubell/Library/Arduino15/packages/esp32/hardware/esp32/3.0.5/tools/partitions/boot_app0.bin" 0x10000 "/private/var/folders/ff/dmzflvf52tq9kzvt6g8jglxw0000gn/T/arduino/sketches/8D5237A774E8A5676C87F67D8D568BBA/Wippersnapper_demo.ino.bin" 
esptool.py v4.6

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

Successfully merging a pull request may close this issue.

2 participants