tmedicci opened a new pull request, #17401: URL: https://github.com/apache/nuttx/pull/17401
## Summary * boards/xtensa/esp32s3: Fix esp32s3-devkitc:knsh This defconfig uses the legacy bootloader (based on ESP-IDF's bootloader) and, due to a recent update on SPI flash support, its initialization was missing data to be moved to the IRAM during the boot process. ## Impact Impact on user: No. Impact on build: No. Impact on hardware: Yes. Fix booting `esp32s3-devkit:knsh` defconfig. Impact on documentation: No. Impact on security: No. Impact on compatibility: No. ## Testing ### Building ``` make -j distclean && ./tools/configure.sh esp32s3-devkit:knsh ``` Enable the ESP-IDF build environment necessary to build the bootloader (tested with `v5.2`): ``` . export.sh ``` Build the bootloader: ``` make bootloader ``` Build and flash NuttX: ``` make flash ESPTOOL_PORT=/dev/ttyUSB0 ESPTOOL_BINDIR=./ -s -j$(nproc) ``` ### Running ``` picocom -b 115200 /dev/ttyUSB0 ``` ### Results Verify that the device boots as expected: ``` 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:0x3fce3818,len:0x1760 load:0x403c9700,len:0x4 load:0x403c9704,len:0xc00 load:0x403cc700,len:0x2e0c entry 0x403c9908 I (30) boot: ESP-IDF v5.1.4-545-gcd4714dd01 2nd stage bootloader I (30) boot: compile time Nov 26 2025 14:35:06 I (30) boot: Multicore bootloader I (34) boot: chip revision: v0.1 I (38) boot.esp32s3: Boot SPI Speed : 40MHz I (43) boot.esp32s3: SPI Mode : DIO I (48) boot.esp32s3: SPI Flash Size : 8MB I (52) boot: Enabling RNG early entropy source... I (58) boot: Partition Table: I (61) boot: ## Label Usage Type ST Offset Length I (69) boot: 0 factory factory app 00 00 00010000 00100000 I (76) boot: End of partition table I (80) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=01ed4h ( 7892) map I (91) esp_image: segment 1: paddr=00011efc vaddr=3fc95fe0 size=01a34h ( 6708) load I (99) esp_image: segment 2: paddr=00013938 vaddr=40378000 size=062bch ( 25276) load I (113) esp_image: segment 3: paddr=00019bfc vaddr=00000000 size=0641ch ( 25628) I (120) esp_image: segment 4: paddr=00020020 vaddr=42000020 size=137ech ( 79852) map I (145) boot: Loaded app from partition at offset 0x10000 I (145) boot: Disabling RNG early entropy source... NuttShell (NSH) NuttX-10.4.0 nsh> ``` -- 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]
