Tool/software: Code Composer Studio
Hello everyone,
I am Using an MCP430G2955 for a Project. When i Try to declare one or more Float Arrays with more than ~800 variables, the Controller Seems to get stuck in memcpy.c / somewhere along the way.
I need to define two float arrays of size 1024 which should be around 8kB. Thus it should fit in the available FRAM of 56kB.
Example Code with the declaration of one such array:
#include <msp430.h>
void someFunction(float *ptr);
float test;
int main ( void )
{
WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer
float Values[1024]= {0.1,0.2,0.3,0.4,0.5};
while(1)
{
someFunction(Values);
}
return (0);
}
void someFunction(float *ptr){
test = ptr[2];
}
In Livechat i was sent the following link, which did not help me unfortunately:
e2e.ti.com/.../779902 float array
This is because neither RAMGS08 nor .ebss can be found in the .cmd file.
Thanks in advance.