Tool/software: Code Composer Studio
GoodMorning everybody!
Here I am (again) because this time I have a particular problem with the definition of an array and I don't know how to solve it :(
I want to dedicate a part of RAM to a BUFFER that includes some FLAGS very important for my code.
The structure of what I have in my mind is something like this:
RAM
************************************************************************************************************************************************************************************************************************************************
BUFFER_EEPROM
FLAG_ATTIVAZIONI |
NUMERO CICLI |
TEMPI VARI |
… |
… |
… |
… |
BLANCH_CHECK |
OTHER VARIABLES IN RAM
……..
************************************************************************************************************************************************************************************************************************************************
And what I did:
unsigned int BUFFER_EEPROM[25];
BUFFER_EEPROM[0]=FLAG_ATTIVAZIONI;
BUFFER_EEPROM[1]=NUMERO_CICLI;
BUFFER_EEPROM[6]=BLANCH_CHECK;
unsigned int *BUFFER_EEPROMinizio;
BUFFER_EEPROMinizio=&(BUFFER_EEPROM[0]);
But I only gets a lot of errors and warnings by Code Composer, so I suppose that I wrote something wrong.
Which is the best way to reserve some space of the RAM for specific variables in a particular order?
How can I do this?
What's wrong in my code?
I would really appreciate your help!
Thank you for the attention,
Kind Regards,
MariaAngela