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.

AM572x IDK undefined reference to Board_init



Hi,

I'm trying to create an application similar to the PRU-ICSS-EtherCAT_Slave sample, but I'm getting an undefined reference to Board_init when linking. I added this in my cfg file:

var deviceType = "am572x";
var Csl = xdc.loadPackage('ti.csl');
Csl.Settings.deviceType = deviceType;

/* Load the board package */
var Board = xdc.loadPackage('ti.board');
Board.Settings.boardName = "idkAM572x";

I'm tried with both CCS 6.1.3 and 6.2. I'm using PDK 1.0.4.

What should I do to make it link?

Thanks,

Francis

  • The RTOS team have been notified. They will respond here.
  • Francis,

    Your configuration script seems have the correct syntax to include the idkAM572x board library. Can you please provide the build log from gmake or CCS for us to look at.

    Also, are you using the Board Init with default parameters ??

    Regards,

    Rahul

  • Francis,

    In the build log, you will see something like:

    Linking with library ti.osal:./lib/tirtos/a15/release/ti.osal.aa15fg

    Linking with library ti.board:./lib/idkAM572x/a15/release/ti.board.aa15fg

    Linking with library ti.drv.uart:./lib/am572x/a15/release/ti.drv.uart.aa15fg

    Linking with library ti.drv.i2c:./lib/a15/release/ti.drv.i2c.aa15fg

    Linking with library ti.utils.profiling:./lib/a15/release/ti.utils.profiling.aa15fg

    Linking with library ti.csl:./lib/am572x/a15/release/ti.csl.aa15fg

    Do you have this?

    Regards, Eric

  • You need to provide us the CCS build log to see what is missing, also check if you have I2C package:

    /* Load the I2C package - board package needs this to read EVM ID */

    var I2c = xdc.loadPackage('ti.drv.i2c');

    /* Load the Board package and set the board name */

    var Board = xdc.loadPackage('ti.board');

    Board.Settings.boardName = "idkAM572x";

    Regards, Eric

  • Hi,

    Thanks, but I found the problem. There was a missing linking option: "-Wl,--start-group". I added this and it fixed my link problem.

    Francis