Define an array in NVM or Local memory.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
mikewang
Level 2
Level 2
25 sign-ins 5 questions asked 10 replies posted

What is the "keyword" to define the array(static /global /local) in NVM and local memory ?  Also how about the keyword to alignment with 32 bits . Thanks. Xianju 

0 Likes
1 Solution
Aiswarya_A
Moderator
Moderator
Moderator
25 likes received 250 sign-ins 50 solutions authored

Hello,

Please find the below example:
"unsigned int __align(64) _my_array[16] __at(0x70000000)"
you could use "__align(x)" for alignment and  " __at(y)" for allocating the variable at a particular address y.


Best Regards,
Aiswarya.

View solution in original post

0 Likes
1 Reply
Aiswarya_A
Moderator
Moderator
Moderator
25 likes received 250 sign-ins 50 solutions authored

Hello,

Please find the below example:
"unsigned int __align(64) _my_array[16] __at(0x70000000)"
you could use "__align(x)" for alignment and  " __at(y)" for allocating the variable at a particular address y.


Best Regards,
Aiswarya.

0 Likes