Open sam131208 opened 1 month ago
@sam131208 Seems there is just not enough flash
@sam131208, thanks for point this out. This is mcuboot build issue. Until we fix/update this, you can manually change the IRAM length provided in esp32s3/memory.h Increase it from 0x9000 to 0xA000
Build shall work properly. I have not tested besides loading the sample code.
*** Booting Zephyr OS build v3.6.0-4794-ga70bf0e488c5 ***
[00:00:00.251,000] <inf> littlefs: LittleFS version 2.8, disk version 2.1
[00:00:00.251,000] <inf> littlefs: FS at flash-controller@60002000:0x250000 is 6 0x1000-byte blocks with 512 cycle
[00:00:00.251,000] <inf> littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
[00:00:00.252,000] <inf> esp32_bt_adapter: BT controller compile version [963cad4]
[00:00:00.284,000] <inf> bt_hci_core: Identity: 34:B4:72:70:01:3C (public)
[00:00:00.284,000] <inf> bt_hci_core: HCI: version 5.0 (0x09) revision 0x0016, manufacturer 0x02e5
[00:00:00.284,000] <inf> bt_hci_core: LMP: version 5.0 (0x09) subver 0x0016
[00:00:00.286,000] <inf> smp_bt_sample: Advertising successfully started
[00:00:00.286,000] <inf> smp_sample: build time: May 28 2024 14:23:59
Hi I am facing the same issue with esp32c3_devkitm
, build is successful if we increase the BOOTLOADER_IRAM_SEG_LEN
from 0x8000 to 0xA000
Hi, the same problem on esp32s3_devkitm.
@sam131208, thanks for point this out. This is mcuboot build issue. Until we fix/update this, you can manually change the IRAM length provided in esp32s3/memory.h Increase it from 0x9000 to 0xA000
Build shall work properly. I have not tested besides loading the sample code.
*** Booting Zephyr OS build v3.6.0-4794-ga70bf0e488c5 *** [00:00:00.251,000] <inf> littlefs: LittleFS version 2.8, disk version 2.1 [00:00:00.251,000] <inf> littlefs: FS at flash-controller@60002000:0x250000 is 6 0x1000-byte blocks with 512 cycle [00:00:00.251,000] <inf> littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32 [00:00:00.252,000] <inf> esp32_bt_adapter: BT controller compile version [963cad4] [00:00:00.284,000] <inf> bt_hci_core: Identity: 34:B4:72:70:01:3C (public) [00:00:00.284,000] <inf> bt_hci_core: HCI: version 5.0 (0x09) revision 0x0016, manufacturer 0x02e5 [00:00:00.284,000] <inf> bt_hci_core: LMP: version 5.0 (0x09) subver 0x0016 [00:00:00.286,000] <inf> smp_bt_sample: Advertising successfully started [00:00:00.286,000] <inf> smp_sample: build time: May 28 2024 14:23:59
@sylvioalves This issue has been fixed after the modification. However, the program cannot boot to Zephyr OS. The development board model is esp32s3_devkitc(N32R8). Logs and console output
ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x1 (POWERON),boot:0x18 (SPI_FAST_FLASH_BOOT) SPIWP:0xee Octal Flash Mode Enabled For OPI Flash, Use Default Flash Boot Mode mode:SLOW_RD, clock div:2 load:0x3fcd1800,len:0x299c load:0x403b4c00,len:0x9798 load:0x403bec00,len:0x1870 entry 0x403b77f8 I (88) boot: MCUboot 2nd stage bootloader I (88) boot: compile time Jun 7 2024 20:47:33 W (88) boot: Unicore bootloader W (88) spi_flash: Octal flash chip is using but dio mode is selected, will automatically swich to Octal mode I (97) spi_flash: detected chip: mxic (opi) I (101) spi_flash: flash io: opi_str W (104) spi_flash: Detected size(32768k) larger than the size in the binary image header(2048k). Using the size in the binary image header. I (116) boot: chip revision: v0.1 I (119) boot.esp32s3: Boot SPI Speed : 40MHz I (123) boot.esp32s3: SPI Mode : SLOW READ I (127) boot.esp32s3: SPI Flash Size : 8MB I (131) boot: Enabling RNG early entropy source... W (170) spi_flash: Octal flash chip is using but dio mode is selected, will automatically swich to Octal mode I (170) spi_flash: flash io: opi_str [esp32s3] [INF] Image index: 0, Swap type: none
Describe the bug zephyr\samples\subsys\mgmt\mcumgr\smp_svr add the compilation condition --sysbuild, the compilation cannot be successful.
To Reproduce Steps to reproduce the behavior:
Expected behavior Compilation succeeded..
Logs and console output
Environment (please complete the following information):