Other Parts Discussed in Thread: C2000WARE
Hello folks,
I have a question. I wanted to create some kind of table. for this i created an object with 8 attributes. the object is called spi_motorcontroller_dataFrame so I created an array spi_motoroncontroller_dataFrame as[74] with 74 fields because I have 74 parameters. i have now filled the table with all the parameters, but i think my ram is full as a result. Error message: F28055_nonBIOS_flash.cmd", line 52: error #10099-D: program will not fit into available memory. run placement with alignment/blocking fails for section ".ebss" size 0x586 page 1.
Can it be that I have created the object 74 times and it fills up the RAM memory? can you maybe delete the ram memory or is that a wrong approach what i did. I am also sending a snippet of the source code..
Thanks, people.
SPI_MOTORCONTROLLER_dataFrame as[74] = {0};
SPI_MOTORCONTROLLER_dataFrame INTERFACE_MOTORCONTROLLER_createDataFrame(INTERFACE_MOTORCONTROLLER_Befehl pBefehl, int pDaten)
{
SPI_MOTORCONTROLLER_dataFrame dateFrame;
//Parametersatz1
as[MOTORCONTROLLER_Befehl_Write_P1_HOCHLAUFRAMPE_R]= (SPI_MOTORCONTROLLER_dataFrame) { 0x01, 0x06, 0x01, 0x80, pDaten & 0xFF, (pDaten >> 8) & 0xFF, 0, 0 };
as[MOTORCONTROLLER_Befehl_Write_P1_TIEFLAUFRAMPE_R]= (SPI_MOTORCONTROLLER_dataFrame) { 0x01, 0x06, 0x01, 0x81, pDaten & 0xFF, (pDaten >> 8) & 0xFF, 0, 0 };
as[MOTORCONTROLLER_Befehl_Write_P1_HOCHLAUFRAMPE_L]= (SPI_MOTORCONTROLLER_dataFrame) { 0x01, 0x06, 0x01, 0x82, pDaten & 0xFF, (pDaten >> 8) & 0xFF, 0, 0 };
as[MOTORCONTROLLER_Befehl_Write_P1_TIEFLAUFRAMPE_L]= (SPI_MOTORCONTROLLER_dataFrame) { 0x01, 0x06, 0x01, 0x83, pDaten & 0xFF, (pDaten >> 8) & 0xFF, 0, 0 };
as[MOTORCONTROLLER_Befehl_Write_P1_SCHNELLHALTRAMPE]= (SPI_MOTORCONTROLLER_dataFrame) { 0x01, 0x06, 0x01, 0x84, pDaten & 0xFF, (pDaten >> 8) & 0xFF, 0, 0 };
as[MOTORCONTROLLER_Befehl_Write_P1_f_maxR]= (SPI_MOTORCONTROLLER_dataFrame) { 0x01, 0x06, 0x01, 0x85, pDaten & 0xFF, (pDaten >> 8) & 0xFF, 0, 0 };