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.

TMS320LF2407A: How to read table data using C language on LF2407A

Part Number: TMS320LF2407A


Hello Champs,

Customer is using LF2407A and try to read data from a table which is defined as "const" in Flash.

But when using C language to implement this such as " a = table [index] " it's found out that the value of the "a" was always not changed.

Would you please kindly help? Thanks!

Best Regards,

Linda

  • Hello Linda,

    The use of constants in flash is a little different on C24x because the device does not have a unified memory map.  The .const section must be loaded into program memory (i.e. flash), then copied into data memory during boot so it can be accessed.  There is a technique for doing this.  The place to look is in chapter 6.1.3 of the C2x C Compiler User's Guide:

    http://www.ti.com/lit/ug/spru024e/spru024e.pdf

    I think this is the issue.  If not, please post back and I'll try to help further.

    Regards,

    Richard