large arrays XMC4500 Relax Lite, storage problem?

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

cross mob
Not applicable
Hallo,

In my project I collect data and need to store it untill I send it via UART to my PC. UART works with DAVE apps.
But I have problems with the size of the array.
I tried to do this with a simple array of int32_t. It should have about 2000 elements. The XMC4500 on the Relax Lite Kit has a flash of 1MB and a RAM of 160KB.
I tried it simply with:
int32_t I1_val[SIZE]={0};
This works only up to a size of 460 elements. For higher elements the xmc stops at startup at: Insert ExceptionHandler HardFault_Handler
Splitting up the array into different variables doesnt make any difference, so I figured its an memory size problem.

How can I place the array on the RAM ?

Hope somebody finds the time to explain this probably simple problem to me.
Thanks
Georg
0 Likes
2 Replies
Not applicable
Solved

when declared as global or static it works:
static int32_t I1_val[SIZE]={0};
0 Likes
Not applicable
Thanks for posting, it helped me out.
0 Likes