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.

Compiling the dm36x UBL with CCSv4



Hello,

 

I am having an issue compiling the UBL from the flash utils source.  I need to make some minor changes for a custom board we've build up.  I've imported the source to CCSv4 and all the file links seem to work.  I made the changes to match our hardware but when I compile I get the error:

 

warning: creating output section ".cinit" without a SECTIONS specification

 undefined      first referenced

  symbol            in file     

 ---------      ----------------

 __TI_zero_init                 

error: unresolved symbols remain

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

 

I'm assuming the root error is the __TI_zero_init isn't declared.  I tried adding a section called TI_zer_init to UBL.cmd but that didn't work out for me. Can anyone help me out or point me in the right direction on this one?

Thanks,

Matt

 

 

  • I think the problem is that this symbol is expected to be found in the RTS libraries of the codegen tools, but these UBL projects do not typically link against those libraries.  TO prevent this, I think you need to alter the autoinitialization options for the linker.  Some info a colleague passed to me that may help:

    In Project Build Properties, Tools Settings Tab choose TMS470 Linker -> Runtime Environment and change the Initialisation Model to <empty>. If you include either –cr or –c then the linker (in 4.6.x) assumes you have a cinit section and introduced the data structures to manage it.

    Regards, Daniel

  • That did it for me. 

     

    Thanks!