NXP RT1020 data_copy_xip_relocation missing #73717
-
ERROR: I got the above error in my project while running with MIMXRT1020 board file. When I searched for these functions "bss_zeroing_relocation, data_copy_xip_relocation" I couldn't find any function definitions. So I added a dummy function in these respective file (init.c, xip.c). Whether adding a dummy function will create any impact?. If so, then what kind of information should be present inside this function?. What is the purpose of these two functions in xip.c and init.c files?. Could you please help us on this query? @DerekSnell |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The two functions, Based on the output provided, it seems likely to me that you have To replicate the issue, I build the hello_world sample application using zephyr v3.6.0. Without To ensure that I ask that you confirm the zephyr version that you are using as well as share any details from your build that differ from the steps I have performed. It seems that you are on zephyr-sdk-0.15.1, which is older. If needed, you can try using zephyr v3.6 and the recent tools to replicate the working build using my steps. Thanks, Jacob |
Beta Was this translation helpful? Give feedback.
The two functions,
bss_zeroing_relocation
,data_copy_xip_relocation
are used for to relocating memory to a region other than the default. They are not included unless CONFIG_CODE_DATA_RELOCATION is enabled. The APIs to relocate Code and Data are part of Zephyr's Code and Data Relocation feature.Based on the output provided, it seems likely to me that you have
CONFIG_CODE_DATA_RELOCATION=y
in your app.To replicate the issue, I build the hello_world sample application using zephyr v3.6.0. Without
CONFIG_CODE_DATA_RELOCATION=y
in the app, the hello_world sample builds without issues. When I addCONFIG_CODE_DATA_RELOCATION=y
within prj.conf and try to build, I get a linker error. This is be…