You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
Has anyone tried to relocate a NOINIT section? My understanding from the Zephyr doc, this is support:
If the memory type is appended with _DATA, _TEXT, _RODATA, _BSS or _NOINIT, only the selected memory is placed in the required memory region.
I have marked the variables with noinit similar to this example. I don't see corresponding changes required in CMakeLists.txt or linker script, so I am assuming I just need to specify what files will go into NOINIT section like this zephyr_code_relocate(FILES ${reloc_files} LOCATION SRAM2_NOINIT)
However, I am facing compilation error like this:
code_relocation.c --default_ram_region RAM
Traceback (most recent call last):
File "zephyr/zephyr_rtos/v3.7.0/zephyr/zephyr/zephyr/scripts/build/gen_relocate_app.py", line 621, in
main()
File "zephyr/zephyr_rtos/v3.7.0/zephyr/zephyr/zephyr/scripts/build/gen_relocate_app.py", line 601, in main
sections_by_category = assign_to_correct_mem_region(memory_type, full_list_of_sections)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "zephyr/zephyr_rtos/v3.7.0/zephyr/zephyr/zephyr/scripts/build/gen_relocate_app.py", line 281, in assign_to_correct_mem_region
mpu_align[memory_region] = int(align_size)
^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'NOINIT|COPY'
ninja: build stopped: subcommand failed.
Does anyone might have some insight on what I am missing?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
Has anyone tried to relocate a NOINIT section? My understanding from the Zephyr doc, this is support:
I have marked the variables with noinit similar to this example. I don't see corresponding changes required in CMakeLists.txt or linker script, so I am assuming I just need to specify what files will go into NOINIT section like this
zephyr_code_relocate(FILES ${reloc_files} LOCATION SRAM2_NOINIT)However, I am facing compilation error like this:
Does anyone might have some insight on what I am missing?
Beta Was this translation helpful? Give feedback.
All reactions