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

[BUG] Espressif devices are not booting after PR 14578 #15688

Open
1 task done
eren-terzioglu opened this issue Jan 24, 2025 · 3 comments · May be fixed by #15691 or #15728
Open
1 task done

[BUG] Espressif devices are not booting after PR 14578 #15688

eren-terzioglu opened this issue Jan 24, 2025 · 3 comments · May be fixed by #15691 or #15728
Labels
Arch: all Issues that apply to all architectures Area: OS Components OS Components issues OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working

Comments

@eren-terzioglu
Copy link
Contributor

Description / Steps to reproduce the issue

Hi,

After #14578 PR, Espressif devices stopped booting.

Here is the error output for esp32c6-devkitc:nsh defconfig

Type [C-a] [C-h] to see available commands
Terminal ready
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x7 (TG0_WDT_HPSYS),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4080120a
SPIWP:0xee
mode:DIO, clock div:2
load:0x40800000,len:0x4c14
load:0x40804c20,len:0x928
SHA-256 comparison failed:
Calculated: dd9268cba6a71b21f6578852a9c175fc1b5e16cf3e4cf8a681aa4d82e3448c82
Expected: 0000000080aa0000000000000000000000000000000000000000000000000000
Attempting to boot anyway...
entry 0x408048e0

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Ubuntu 20.04

NuttX Version

master

Issue Architecture

[Arch: all]

Issue Area

[Area: OS Components]

Host information

No response

Verification

  • I have verified before submitting the report.
@eren-terzioglu eren-terzioglu added the Type: Bug Something isn't working label Jan 24, 2025
@github-actions github-actions bot added Arch: all Issues that apply to all architectures Area: OS Components OS Components issues OS: Linux Issues related to Linux (building system, etc) labels Jan 24, 2025
@eren-terzioglu eren-terzioglu changed the title [BUG] Espressif devices not booting after PR 14578 [BUG] Espressif devices are not booting after PR 14578 Jan 24, 2025
@eren-terzioglu
Copy link
Contributor Author

eren-terzioglu commented Jan 24, 2025

Some additional notes might be helpful, here is the device list having issue:

Xtensa

  • esp32 - Somehow ethernet-kit defconfigs seems fine. For devkitc defconfigs: ble, psram, smp and some other defconfigs are failing
  • esp32s2 - Except mcuboot_nsh defconfig, all failing.
  • esp32s3 - Except mcuboot_nsh defconfig, all failing.

Risc-V

  • esp32c3 - Except mcuboot_nsh defconfig, all failing.
  • esp32c6 - Except mcuboot_nsh defconfig, all failing.
  • esp32h2 - Except mcuboot_nsh defconfig, all failing.

@hujun260
Copy link
Contributor

#15691
This patch hasn't completely resolved the boot-up issue.

still report
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40374c78
SPIWP:0xee
mode:DIO, clock div:2
load:0x3fc8db60,len:0x5bc
load:0x40374000,len:0x57f0
SHA-256 comparison failed:
Calculated: 4593aab18daaa2732b1d02dd28f1f75754dc2550751af064fbe69c2563625334
Expected: 0000000010a20000000000000000000000000000000000000000000000000000
Attempting to boot anyway...
entry 0x40374e0c

it seems during the boot-up phase, I can't call functions from NuttX, such as sched_lock, within regi2c_ctrl_read_reg_mask. How can I replace spin_lock_irqsave/spin_unlock_irqrestore in arch/xtensa/src/esp32s3/esp-hal-3rdparty with raw_spin_lock_irqsave/raw_spin_unlock_irqrestore? I'm not sure how to proceed, as this code was downloaded.

@hujun260
Copy link
Contributor

hujun260 commented Jan 25, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: all Issues that apply to all architectures Area: OS Components OS Components issues OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working
Projects
None yet
2 participants