SmartIotMaker opened a new issue, #14368:
URL: https://github.com/apache/nuttx/issues/14368

   ### Description / Steps to reproduce the issue
   
   CPU will hang when eanble ESP32S3_APP_FORMAT_MCUBOOT and 
ESP32S3_SPIFLASH,follow is console:
   ESP-ROM:esp32s3-20210327
   Build:Mar 27 2021
   rst:0x1 (POWERON),boot:0x2b (SPI_FAST_FLASH_BOOT)                            
   SPIWP:0xee                                                                   
   mode:DIO, clock div:2                                                        
   load:0x3fcd35a8,len:0x1528                                                   
      d:0x403b0000,len:0x1dbc
   load:0x403ba000,len:0x2894
   entry 0x403bc844
   [esp32s3] [INF] *** Booting MCUboot build v1.10.0-131-gb206b99b ***
   [esp32s3] [INF] [boot] chip revision: v0.2
   [esp32s3] [INF] [boot.esp32s3] Boot SPI Speed : 40MHz
   [esp32s3] [INF] [boot.esp32s3] SPI Mode       : DIO
   [esp32s3] [INF] [boot.esp32s3] SPI Flash Size : 16MB
   [esp32s3] [INF] [boot] Enabling RNG early entropy source...
   [esp32s3] [INF] Primary image: magic=good, swap_type=0x1, copy_done=0x3, 
image_ok=0x1
   [esp32s3] [INF] Scratch: magic=unset, swap_type=0x1, copy_done=0x3, 
image_ok=0x3
   [esp32s3] [INF] Boot source: primary slot
   [esp32s3] [INF] Image index: 0, Swap type: none
   [esp32s3] [INF] Disabling RNG early entropy source...
   [esp32s3] [INF] br_image_off = 0x10000
   [esp32s3] [INF] ih_hdr_size = 0x20
   [esp32s3] [INF] Loading image 0 - slot 0 from flash, area id: 1              
   
   [esp32s3] [INF] DRAM segment: start=0x3265c, size=0x2208, vaddr=0x3fca8960
   [esp32s3] [INF] IRAM segment: start=0x294c8, size=0x9194, vaddr=0x40374000
   IROM segment aligned lma 0x00040000 vma 0x42020000 len 0x07d856 (514134)
   DROM segment aligned lma 0x00010000 vma 0x3c000000 len 0x0131ec (78316)
   
   **`hang`**
   
   then, remove spi_flash_disable_cache line in spiflash_suspend_cache 
function(esp32s3_spiflash.c) and spi_flash_restore_cache in 
spiflash_resume_cache function(esp32s3_spiflash.c) , it is seem ok.
   
   I check git log and find this change by commit 
5680e9d5a4050f5efdeaf3965b685473d0b86234 
   
   ### On which OS does this issue occur?
   
   [OS: Linux]
   
   ### What is the version of your OS?
   
   Ubuntu 24.04
   
   ### NuttX Version
   
   master
   
   ### Issue Architecture
   
   [Arch: xtensa]
   
   ### Issue Area
   
   [Area: Drivers]
   
   ### Verification
   
   - [X] I have verified before submitting the report.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to