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

esp32s3-devkit:nsh can't boot #12704

Closed
chirping78 opened this issue Jul 16, 2024 · 2 comments
Closed

esp32s3-devkit:nsh can't boot #12704

chirping78 opened this issue Jul 16, 2024 · 2 comments

Comments

@chirping78
Copy link

Recently bought an esp32-s3-devkitc-1, and I have installed the idf toolchain to verify that idf hello_world project can work.
But when I use the idf toolchain to build nuttx, the board can't boot up.

Here is the commands I have used:

export PATH=/opt/espressif/esp_idf_tools/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin:$PATH
export PATH=/opt/espressif/esp_idf_tools/python_env/idf5.3_py3.8_env/bin:$PATH

./tools/configure.sh -E esp32s3-devkit:nsh
make -j8

make flash ESPTOOL_PORT=/dev/ttyUSB0

After flash, the serial console only shows below output and can't enter nsh:

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee                                                                                                                                                                    
mode:DIO, clock div:2                                                                                                                                                         
load:0x3fc8ac40,len:0xdb0                                                                                                                                                     
load:0x40374000,len:0x4a54                                                                                                                                                    
entry 0x40374cd4                                                                                                                                                              
*** Booting NuttX ***                                                                                                                                                         
dram: lma 0x00000020 vma 0x3fc8ac40 len 0xdb0    (3504)                                                                                                                       
iram: lma 0x00000dd8 vma 0x40374000 len 0x4a54   (19028)                                                                                                                      
total segments stored 2 

What's wrong with my steps?

@chirping78
Copy link
Author

Well. Noticed that in the Documents, there are some guides for toolchain and esptool.py.
After install these tool:

curl -s -L "https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32s3-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz" | tar -C xtensa-esp32s3-elf-gcc --strip-components 1 -xJ

pip3 install esptool==4.8.dev4

And using the same building commands as above, the board can enter nsh now:

ESP-ROM:esp32s3-20210327                                                                                                                                                 
Build:Mar 27 2021                                                                                                                                                             
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)                                                                                                                              
SPIWP:0xee                                                                                                                                                                    
mode:DIO, clock div:2                                                                                                                                                         
load:0x3fc8ac40,len:0xdbc                                                                                                                                                     
load:0x40374000,len:0x4a54                                                                                                                                                    
SHA-256 comparison failed:                                                                                                                                                    
Calculated: 89806fd28d864acd62041e463d876296efdab8615d97ec5002d7c405cb83d17a                                                                                                  
Expected: 00000000b0a70000000000000000000000000000000000000000000000000000                                                                                                    
Attempting to boot anyway...                                                                                                                                                  
entry 0x40374d24                                                                                                                                                              
*** Booting NuttX ***                                                                                                                                                         
dram: lma 0x00000020 vma 0x3fc8ac40 len 0xdbc    (3516)                                                                                                                       
iram: lma 0x00000de4 vma 0x40374000 len 0x4a54   (19028)                                                                                                                      
padd: lma 0x00005848 vma 0x00000000 len 0xa7b0   (42928)                                                                                                                      
imap: lma 0x00010000 vma 0x42010000 len 0x1233c  (74556)                                                                                                                      
padd: lma 0x00022344 vma 0x00000000 len 0xdcd4   (56532)                                                                                                                      
dmap: lma 0x00030020 vma 0x3c000020 len 0x2478   (9336)                                                                                                                       
total segments stored 6                                                                                                                                                       
                                                                                                                                                                              
NuttShell (NSH) NuttX-12.5.1                                                                                                                                                  
nsh> 

@chirping78
Copy link
Author

So this is a tool compatibility issues.

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

No branches or pull requests

1 participant