Skip to content

How to place a buffer in OCRAM region of memory on NXP MIMXRT1062 processor #69886

Answered by DerekSnell
asteriskSF asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @asteriskSF ,
One way to do this is to follow the api_ext test.

In the devicetree, add the property zephyr,memory-region to the memory node you want data placed in, like in app.overlay. And then in your declaration, add the attribute Z_GENERIC_SECTION(LINKER_DT_NODE_REGION_NAME(DT_NODELABEL(<node_label_name>))), one example of this is in the memc test.

Also, if using those macros, be sure to #include <zephyr/linker/devicetree_regions.h>. I learned that leasson the hard way :)

Hope that helps

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by asteriskSF
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants