I want to store data up to 13 Kb. My application will give a chunks of data with some delay(~10sec), which i need to store in a particular variable. It is bad to take static array with 13000(uint8 buffer[13000]). Here my code,
uint8 buffer[13000];
void read_byte(uint16 Address)
{
    uint8 data;
    uint8 append_byte;
    send_cmd(Address);   //send command for read from address
    receive_byte(&data); // Read the data and store in data var
    check_append_byte(&append_byte); // check the byte from where need to append
    buffer[append_byte] = data; // store in buffer 
}
void file data()
{
    uint8 i;
    if(flag == 1)
    {
        for(i=0; i<8; i++)
        {
            read_byte(Address);
        }
    }
}
So i want to increase/decrease the size of buffer in run time. Can any body guide me.
 
    