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/AM3357: XDCTools build profile

Part Number: AM3357
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hello.

I'm building my application outside of CCS, by invoking XS command.

I see following message during evaluation of cfg file:

cd /home/wiesniak/projects/cmpc_cpu/cmake-build-debug/platform/Sysbios_psdk_AM335x && /home/rnd_share/ti//psdk_rtos_am335x_5_02_00_10_gh02/xdctools_3_50_08_24_core/xs --xdcpath="/home/wiesniak/projects/cmpc_cpu/platform/cmpc30/packages;/home/wiesniak/projects/cmpc_cpu/platform/Sysbios_psdk_AM335x;/home/rnd_share/ti//psdk_rtos_am335x_5_02_00_10_gh02/bios_6_73_01_01/packages/;/home/rnd_share/ti//psdk_rtos_am335x_5_02_00_10_gh02/pdk_am335x_1_0_13/packages/;/home/rnd_share/ti//psdk_rtos_am335x_5_02_00_10_gh02/ndk_3_40_01_01/packages/;/home/rnd_share/ti//psdk_rtos_am335x_5_02_00_10_gh02/edma3_lld_2_12_05_30C/packages/" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p huettinger.cmpc30 -r debug -c /home/rnd_share/gcc_arm//gcc-arm-none-eabi-6-2017-q1-update app_dbg.cfg
making package.mak (because of package.bld) ...
configuring app_dbg.xa8fg from package/cfg/app_dbg_pa8fg.cfg ...
generating custom ti.sysbios library makefile ...
Inside EDMA3 Drv Sample getLibs
    will link with ti.sdo.edma3.drv.sample:lib/am335x-evm/a8/debug/edma3_lld_drv_sample.aa8fg
    Linking with library ti.board:./lib/cmpc30AM335x/a8/release/ti.board.aa8fg
    Linking with library ti.drv.spi:./lib/am335x/a8/release/ti.drv.spi.aa8fg
    Linking with library ti.drv.icss_emac:./lib/a8/release/ti.drv.icss_emac.aa8fg
    Linking with library ti.csl:./lib/am335x/a8/release/ti.csl.aa8fg
    Linking with library ti.drv.gpio:./lib/a8/release/ti.drv.gpio.aa8fg
    Linking with library ti.drv.pruss:./lib/a8/release/ti.drv.pruss.aa8fg
    Linking with library ti.drv.i2c:./lib/a8/release/ti.drv.i2c.aa8fg
    Linking with library ti.drv.uart:./lib/a8/release/ti.drv.uart.aa8fg
    Linking with library ti.osal:./lib/tirtos/a8/release/ti.osal.aa8fg
Inside EDMA3 Drv getLibs
    will link with ti.sdo.edma3.drv:lib/a8/debug/edma3_lld_drv.aa8fg
Inside EDMA3 RM getLibs
    will link with ti.sdo.edma3.rm:lib/am335x-evm/a8/debug/edma3_lld_rm.aa8fg

As you can see I selected debug build, but (-r debug) but most libraries selected by xs are release.

How can I convince build system to use debug libraries ?

Greg.

  • The debug profile settings is at module level so you need to set that for each of the module that you want to debug. Check the recommendation that we have provided here:

    https://e2e.ti.com/support/processors/f/791/t/808301

    Please note that Processor SDK RTOS by default has the libraries built for release profile only so you need to rebuild the PDK with debug Profile. For example when you build the driver in debug profile the lib folder will have one binary for release and one for debug.

    The XDC setup picks the correct version based on the package.xs file in each of the modules. For example look at the package.xs file in GPIO driver to check the logic used to select the variant of the library based on the build profile.

    Regards,

    Rahul