Skip to content

SDK v3.4-rc(v3.4) can not work under -DNDEBUG (GIT8266O-652) #1074

Open
@windowsair

Description

@windowsair

Environment

  • IDF version sdk v3.4rc (89a3f25)
  • Operating System: WSL1

Problem Description

If you try to set the Assertion Level to Disabled(-DNDEBUG) in menuconfig, you will get strange error output when generating the bin and terminate as a result.

Expected Behavior

See above

Actual Behavior

See above

Steps to repropduce

  1. Start with any project. Like examples/get-started/hello_world

  2. Change Assertion Level to Disabled
    image

  3. Run idf.py build. Then see Debug Logs

Debug Logs

[589/589] Generating binary image from built executable
FAILED: .bin_timestamp
cd /mnt/g/work/esp8266/sdkV3.4rc/examples/get-started/hello_world/build && /root/.espressif/python_env/rtos3.4_py2.7_env/bin/python /mnt/g/work/esp8266/sdkV3.4rc/components/esptool_py/esptool/esptool.py --chip esp8266 elf2image --flash_mode dio --flash_freq 40m --flash_size 2MB --version=3 -o /mnt/g/work/esp8266/sdkV3.4rc/examples/get-started/hello_world/build/hello-world.bin hello-world.elf && /usr/bin/cmake -E echo "Generated /mnt/g/work/esp8266/sdkV3.4rc/examples/get-started/hello_world/build/hello-world.bin" && /usr/bin/cmake -E md5sum /mnt/g/work/esp8266/sdkV3.4rc/examples/get-started/hello_world/build/hello-world.bin > /mnt/g/work/esp8266/sdkV3.4rc/examples/get-started/hello_world/build/.bin_timestamp
esptool.py v2.4.0
.flash.rodata len 0x02f3c load 0x4021d5c0

A fatal error occurred: Segment loaded at 0x4021d5c0 lands in same 64KB flash mapping as segment loaded at 0x40210010. Can't generate binary. Suggest changing linker script or ELF to merge sections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions