Not applicable
Jul 29, 2014
12:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 29, 2014
12:50 AM
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
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
2 Replies
Not applicable
Jul 29, 2014
04:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 29, 2014
04:37 AM
Solved
when declared as global or static it works:
static int32_t I1_val[SIZE]={0};
when declared as global or static it works:
static int32_t I1_val[SIZE]={0};
Not applicable
Jul 01, 2015
03:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 01, 2015
03:08 AM
Thanks for posting, it helped me out.