Skip to content

Conversation

@tejlmand
Copy link
Contributor

One might want to select the symbols to be relocated inside a file or
a library. To do this, one can use the FILTER argument of
zephyr_code_relocate which must contain a regular expression of the
section names to be selected for relocation.

The test_function_in_sram2 test case in
tests/application_development/code_relocation has been updated to
verify that only one function function_in_sram() is relocated to ram
and that the function function_not_relocated() is not being relocated
when using relocation filter.

Signed-off-by: Sylvain Chouleur [email protected]
Signed-off-by: Torsten Rasmussen [email protected]
(cherry picked from commit 4454734)

tejlmand and others added 2 commits February 14, 2025 14:01
With code relocation directives passed to the gen_relocate_app.py script
using generated file, then each directive can be place on individual
line in the file and thus free up the `|` character as separator.

Furthermore, a multi-line file with each directive on separate line is
also more user-readable, making debugging easier.

Signed-off-by: Torsten Rasmussen <[email protected]>
(cherry picked from commit cb8f99a)
One might want to select the symbols to be relocated inside a file or
a library. To do this, one can use the FILTER argument of
zephyr_code_relocate which must contain a regular expression of the
section names to be selected for relocation.

The test_function_in_sram2 test case in
`tests/application_development/code_relocation` has been updated to
verify that only one function `function_in_sram()` is relocated to ram
and that the function `function_not_relocated()` is not being relocated
when using relocation filter.

Signed-off-by: Sylvain Chouleur <[email protected]>
Signed-off-by: Torsten Rasmussen <[email protected]>
(cherry picked from commit 4454734)
@carlescufi carlescufi merged commit d5aefbe into nrfconnect:main Feb 14, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants