wangchdo commented on PR #17287:
URL: https://github.com/apache/nuttx/pull/17287#issuecomment-3569069865

   > @wangchdo This is the error with your PR
   > 
   > ```
   > echo nuttx > nuttx.manifest
   > printf "%s\n" *.map >> nuttx.manifest
   > CP: nuttx.hex
   > xtensa-esp32s3-elf-objcopy  -O ihex nuttx nuttx.hex
   > echo nuttx.hex >> nuttx.manifest
   > CP: nuttx.bin
   > xtensa-esp32s3-elf-objcopy  -O binary nuttx nuttx.bin
   > echo nuttx.bin >> nuttx.manifest
   > echo "MKIMAGE: ESP32-S3 binary"
   > MKIMAGE: ESP32-S3 binary
   > if [ -z 4MB ]; then echo "Missing Flash memory size configuration for the 
ESP32-S3 chip."; exit 1; fi
   > esptool.py -c esp32s3 elf2image -fs 4MB -fm dio -ff "40m" -o nuttx.bin 
nuttx
   > esptool.py v4.8.dev4
   > Creating esp32s3 image...
   > Merged 1 ELF section
   > A fatal error occurred: Segment loaded at 0x3c022388 lands in same 64KB 
flash mapping as segment loaded at 0x3c020020. Can't generate binary. Suggest 
changing linker script or ELF to merge sections.
   > make: *** [tools/Unix.mk:552: nuttx] Error 2
   > ```
   > 
   > Hi @fdcavalcanti @tmedicci, could you take a look?
   
   I rebased this PR, and now the CI fail log is:
   
   ```
   Cmake in present: nucleo-f302r8/ihm07m1_b16,CONFIG_ARM_TOOLCHAIN_GNU_EABI
   Configuration/Tool: nucleo-f302r8/ihm07m1_b16,CONFIG_ARM_TOOLCHAIN_GNU_EABI
   2025-11-23 08:27:05
   
------------------------------------------------------------------------------------
     Cleaning...
     Configuring...
     Select HOST_LINUX=y
     Disabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
     Enabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
     Building NuttX...
   [1/5] cd /github/workspace/sources/nuttx/build/libs/libc/misc && 
/usr/local/bin/cmake -E touch 
/github/workspace/sources/nuttx/libs/libc/misc/lib_utsname.c
   [2/5] Linking C executable nuttx
   FAILED: nuttx 
   : && /tools/ccache/bin/arm-none-eabi-gcc  --specs=nosys.specs   
-Wl,--print-memory-usage -Wl,--entry=__start -nostdlib -Wl,--gc-sections 
-Wl,--cref -Wl,-Map=nuttx.map @CMakeFiles/nuttx.rsp -o nuttx  && :
   
/tools/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld:
 nuttx section `.data' will not fit in region `flash'
   
/tools/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld:
 region `flash' overflowed by 20 bytes
   Memory region         Used Size  Region Size  %age Used
              flash:       65556 B        64 KB    100.03%
               sram:        5928 B        16 KB     36.18%
   collect2: error: ld returned 1 exit status
   ```
   
   Seems this nucleo-f302r8/ihm07m1_b16 board is too small to run nuttx...


-- 
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