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.

RTOS/AM5728: How to properly debug PDK components

Part Number: AM5728
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hi,

I'm using AM5728 IDK, SDK version is 5.03.

In my app I need to properly debug EMAC.

I rebuilt EMAC with debug info by editing 

ti/pdk_am57xx_1_0_14/packages/ti/build/Rules.make

and setting BUILD_PROFILE to debug

I can see that indeed the build output goes to debug directory instead of release.

When I build my app with CCS9 I get

generating custom ti.sysbios library makefile ...
Linking with library ti.transport.ndk.nimu:./lib/am572x/a15/release/ti.transport.ndk.nimu.aa15fg
Linking with library ti.drv.emac:./lib/am572x/a15/release/ti.drv.emac.aa15fg
Linking with library ti.board:./lib/idkAM572x/a15/release/ti.board.aa15fg
Linking with library ti.drv.i2c:./lib/a15/release/ti.drv.i2c.aa15fg
Linking with library ti.drv.uart:./lib/a15/release/ti.drv.uart.aa15fg
Linking with library ti.osal:./lib/tirtos/a15/release/ti.osal.aa15fg
Linking with library ti.csl:./lib/am572x/a15/release/ti.csl.aa15fg

And when I step debug it feels like the library was built with optimization.

I guess I need to config the project to link with the debug version of the libraries, but I don't know how to do this.

How can I properly debug EMAC?

Thanks,,

Nir.

  • Hi,

    You have a .cfg for your CCS project:

    /* Load the EMAC packages */
    var Emac = xdc.loadPackage('ti.drv.emac');
    Emac.Settings.socType = socType;
    Emac.Settings.libProfile="debug";

    Then build it, for me I had this error:

    js: "C:/ti/pdk_am57xx_1_0_14/packages/ti/drv/emac/package.xs", line 120: Error: Library not found: C:/ti/pdk_am57xx_1_0_14/packages/ti/drv/emac/./lib/am572x/a15/debug/ti.drv.emac.aa15fg

    But should work for you given you have the library build and achieved in debug folder.

    Regards, Eric

  • Works.

    Thanks,

    Nir.