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.

How do I get mad-utils to build when using c6000 7.6.0 Compiler?



Compiler: c6000 7.6.0

MCSDK: 2.01.02.06

MSys GNU Make 3.81

Python 2.7

CCS: 5.5

CPU: C6678

Board: EVM6678LE & Custom C6678 board

Build Env: Window 7

 

Executive Summary:

Question 1: How do I get mad-utils to build when using c6000 7.6.0 Compiler?

Problem 1: MAD mad-loader linking error with version 7.6.0 of the c6000 compiler.

Problem 2: Getting nml placement error when using optimize for space = 1.

 

 

Problem 1

When try to build with version 7.6.0 of the c6000 compiler I get linking errors that “program will not fit into available memory.”(see error 1). I am building with the command line option “source build_loader_msys.sh C6678”.  This is with the baseline Makefile that comes with MCSDK 2.01.02.06. 

 

<Linking>

"lnk_C6678.cmd", line 24: error: program will not fit into available memory.

   placement with alignment fails for section ".switch" size 0x78 .  Available

   memory ranges:

   PMEM0        size: 0x7b0c       unused: 0x0          max hole: 0x0

"lnk_C6678.cmd", line 25: error: program will not fit into available memory.

   placement with alignment fails for section ".fardata" size 0x48 .  Available

   memory ranges:

   PMEM0        size: 0x7b0c       unused: 0x0          max hole: 0x0

warning: entry-point symbol other than "_c_int00" specified: "_enter"

error: errors encountered during linking; "mal_app.exe" not built

 

Problem 2

To work around this problem I changed /mal/malLib/build/Makefile to optimize for space = 1 (least aggressive) and I able to build the MAD libraries successfully.

 

Changes to /mal/malLib/build/

 

 

But when I try to use the MAD library I get a placement error when running python maptool.py config-files\maptoolCfg_C6678_windows.json I getting the error:

 

\boot_loader\mad-utils\map-tool>"ofd6x.exe" -x -o c:\users\ast1118\appdata\local\temp\tmpgj6rhu.xml "./tmp/fs\nml"

ERROR: nml placement in filesystem invalidates its linked address. Please link nml assuming file placement at address 0x9E009400

 

  • Dear Jeff,

    <Linking>
    "lnk_C6678.cmd", line 24: error: program will not fit into available memory.
    placement with alignment fails for section ".switch" size 0x78 . Available
    memory ranges:
    PMEM0 size: 0x7b0c unused: 0x0 max hole: 0x0
    "lnk_C6678.cmd", line 25: error: program will not fit into available memory.
    placement with alignment fails for section ".fardata" size 0x48 . Available
    memory ranges:
    PMEM0 size: 0x7b0c unused: 0x0 max hole: 0x0
    warning: entry-point symbol other than "_c_int00" specified: "_enter"
    error: errors encountered during linking; "mal_app.exe" not built


    Are you building the default examples (app1 & app2) or your own example ?
    You can also try to increase the PMEM and DMEM length.

    Try this and build it.
    PMEM: o = 0x800000 l = 0xFFFF
    DMEM: o = 0x80FFFF l = 0xFFFF

    Local L2 SRAM physical address:
    00800000 to 0087FFFF