This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

store variables in flash-memory

Other Parts Discussed in Thread: TMS320F28035

Hello  Community, 

i'm working with tms320f28035. At the moment i have a several problem with the stack size. One idea to enlarge the stack  is to store  constant data, wich i receive over i2c, in the on chip flash. Is this possible without using the flash api?

Best regards Lukas 

  • Lukas,

    To program the flash in an application, the flash API must be used.  There is no way to do what you've suggested without it. 

    Perhaps you could allocate a buffer in RAM to store this constant data instead of using variables that will be placed on the stack?

    Regards,

    Trey

  • Hello Trey,

    i suspected this. I don't think that this will solve the problem because the stack overflow take place without accessing these data.The workaround is as follows, i have about 0x300h ram left in L0+L1 and a 0x320h stack in M0. The only way  I see to maximize the stack is to minimize the data section instead. 

    Regards Lukas