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.

CCS / TMS570LS0232: TMS570LS0232 flash error

Part Number: TMS570LS0232
Other Parts Discussed in Thread: HALCOGEN,

Tool/software: Code Composer Studio

Hello,

We use the HALCoGen configuration, Flash configuration options cannot be found aside. We are using the HALCoGen default configuration, and the Flash has an error code "#10099-D program will not fit into available memory. Placement with alignment fails for section ".cinit" size 0x461. Available memory ranges: sys_link.cmd /TMS570LS0232/source line 79 C/C++ Problem"


When we manually configure the Flash to the maximum, is not wrong. We use the HALCoGen automatic configuration after the generated code, and then manually configure the maximum Flash.Is this operation compliant?

If Flash is not enough, the compiled HEX file has the largest 79KB, and this error occurs. The maximum Flash of TMS570LS0232 is 128KB.. What's the problem with configuring CCS?

  • Hello Charles,

    There is no problem to change the flash size in cmd file manually. Please use the map file (*.map, under Debug) to check the code size. The map file is created by linker. It shows the memory configuration, section composition, section allocation, symbol definitions and the addresses at which the symbols were defined for your program.

    The format of the map file likes this:

  • I found that the map file is larger than the hex file, and the reason for this is that it automatically cuts the code at compile time, map is larger than hex and exceeds the size of flash, and it's common to compile hex if you choose a larger 570 of flash.
  • Hi Charles,

    Your linker.cmd should be defined for LS0232, and the device variant in CCS should be LS0232 too. LS0232 has 128KB flash.
    Which utility did you use to generate hex file? Which format is your hex (TI-TXT, Intel, Motorola, etc)? Whis are the memwidth and romwidth used during generating your hex file?