Skip to content

LittleFS sample code catch an "undefined symbol `ITCM_ADDR' referenced in expression" in linker step #34355

@icatorze

Description

@icatorze

I'm trying littlefs subsys sample on a mimxrt1020_evk with relocation to ITCM zone. After a menuconfig i can build code but linker step aborts with:
undefined symbol `ITCM_ADDR' referenced in expression.

There's no evidence of ITCM_ADDR anymore, because this address comes from DTS file now. I searched all code and scripts but can not found who is still using this symbol.

After I manually edit generated files: linker_relocated.ld and linker_zephyr_prebuilt.cmd and force a build, result binary run sucessfully on board.

To Reproduce
west build -d build\littlefssample -b mimxrt1020_evk zephyr\samples\subsys\fs\littlefs -DDTC_OVERLAY_FILE=boards/mimxrt1020_evk.overlay
My mimxrt1020_evk.overlay and mimxrt1020_evk.conf are attached. (Please remove .txt extension)

mimxrt1020_evk.conf.txt
mimxrt1020_evk.overlay.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug, or the PR is fixing a bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions