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/LAUNCHXL-F28027: Matlab coder generation, code building

Part Number: LAUNCHXL-F28027


Tool/software: Code Composer Studio

Dear TI engineer,

I am tring the mathwork coder generation function on launchpad-28027.

I downloaded the file "c28027pmsmfoc_ert.slx" from matlab, and set the hardware implementation as "TI Piccolo F2802x(boot fr0m flash)"

code was successfully generated!

Then I imported the code into ccs, try to build it?.  ( p.s. Am I right or I could do that directly in matlab? )

I have get an error report from ccs:

"../28027_RAM_lnk.cmd", line 133: error: program will not fit into available
memory. placement with alignment/blocking fails for section "IQmath" size
0xd8 page 0. Available memory ranges:
PRAML0 size: 0x1000 unused: 0x2f max hole: 0x2f

I don't quite understand the problem, could you help me out?

  • The program memory size is not enough. You might use a wrong .cmd file, the right .cmd file should be c28027_flash.cmd.
    You don't need to add an additional .cmd file since the generated project has included the .cmd. You can find it by "Project Properties->C2000 Linker->File Search Path"