variable mapping

cancel
Showing results for 
Search instead for 
Did you mean: 

variable mapping

Jump to solution
144 Views
leroynash
Contributor I
I ran out of space in SRAM_DTC and need to map some arrays to SRAM_OC (RAM3) the line: __DATA(RAM3) double g_F_k[NSTATE][NSTATE] = {{0.0}}; results in: ../source/filter/src/tight_coupling.c:30:1: warning: return type defaults to 'int' [-Wimplicit-int] 30 | __DATA(RAM3) double g_F_k[NSTATE][NSTATE] = {{0.0}}; // State Transition Matrix | ^~~~~~ ../source/filter/src/tight_coupling.c: In function '__DATA': ../source/filter/src/tight_coupling.c:30:1: error: parameter 'g_F_k' is initialized ../source/filter/src/tight_coupling.c:30:1: warning: braces around scalar initializer ../source/filter/src/tight_coupling.c:30:1: note: (near initialization for 'g_F_k') any ideas? Thanks Leroy
0 Kudos
1 Solution
130 Views
jeremyzhou
NXP TechSupport
NXP TechSupport

Him
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
To place data item into a specific memory region, it should add the below code in the code project prior to using the __DATA macro.

#include <cr_section_macros.h>


TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
131 Views
jeremyzhou
NXP TechSupport
NXP TechSupport

Him
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
To place data item into a specific memory region, it should add the below code in the code project prior to using the __DATA macro.

#include <cr_section_macros.h>


TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
115 Views
leroynash
Contributor I

That simple, thanks

0 Kudos
132 Views
crist_xu
NXP Employee
NXP Employee

Try to use __attribute__() instead? 

0 Kudos