AM3359: Error in compiling AM335x Profibus Slave Example

Part Number: AM3359
Other Parts Discussed in Thread: PROFIBUS, SYSBIOS

Pl help resolving this error, Thx KK

Building target: "profibus_slave_AM335x_arm.out"
Invoking: GNU Linker
"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc-6.3.1.exe" -mtune=cortex-a8 -marm -Dam3359 -DSOC_AM335x -O0 -g -gstrict-dwarf -Wall -MMD -MP -pedantic -mfloat-abi=hard -Wl,-Map,"profibus_slave_AM335x_arm.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/PRU-ICSS-Profibus_Slave_01.00.01.01/third_party/protocols/profibus_slave/stack_lib/am335x/a8" -L"C:/ti/pdk/pdk_am335x_1_0_10/packages/ti/drv/uart/lib/am335x/a8/release" -L"C:/ti/pdk/pdk_am335x_1_0_10/packages/ti/drv/pruss/lib/am335x/a8/release" -L"C:/ti/pdk/pdk_am335x_1_0_10/packages/ti/osal/lib/tirtos/am335x/a8/release" -L"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu" -Wl,--defsym,STACKSIZE=0x1C000 -Wl,--defsym,HEAPSIZE=0x400 -o"profibus_slave_AM335x_arm.out" "./I2C_soc.o" "./UART_soc.o" "./pruicss_soc.o" "./AM335x/AM335x_bsp.o" "./APP/main.o" "./APP/profi_edma.o" "./APP/profi_hw_utils.o" "./APP/profi_misc.o" "./APP/profi_timer.o" -Wl,-T"configPkg/linker.cmd"  -Wl,--start-group -lm -lprofibus_slave_stack_AM335x_arm -lsupc++ -lrdimon -lgcc -lnosys -lstdc++ -lc -Wl,--end-group 
makefile:155: recipe for target 'profibus_slave_AM335x_arm.out' failed
C:\ti\PRU-ICSS-Profibus_Slave_01.00.01.01\examples\profibus_slave\src\sysbios\sysbios.aa8fg(gnu_ReentSupport.o): In function `ti_sysbios_rts_gnu_ReentSupport_Module_startup__E':
C:/ti/bios_6_52_00_12/packages/ti/sysbios/rts/gnu/ReentSupport.c:83: undefined reference to `ti_sysbios_rts_gnu_ReentSupport_checkIfCorrectLibrary'
collect2.exe: error: ld returned 1 exit status
gmake[1]: *** [profibus_slave_AM335x_arm.out] Error 1
gmake: *** [all] Error 2
makefile:151: recipe for target 'all' failed

**** Build Finished ****

 

 

  • Team,
    We are following the example in the AM335-ICE EVM evaluation kit, since it has many dependencies which are deprecated, can you guide us on what needs to be installed to fix this error?

     

  • The error indicates that SYS/BIOS is not being referenced from the correct PDK directory.

    Issue: The linker is pointing to: -L"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/..."

    Expected: It should point to the PDK directory: -L"C:/ti/pdk/bios_6_52_00_12/..."

    Resolution Steps (CCS):

    Verify Products Configuration:

    • Right-click on the project → Properties → General → Products
    • Ensure all required products (SYS/BIOS, PDK, etc.) are listed and pointing to the correct paths

    If Products Are Missing:

    • Go to Window → Preferences → Products
    • Click Add and browse to the AM335x PDK path
    • Click Refresh — it will show if any products are not installed
    • Select and install the missing products from the PDK

    Re-verify Project Settings:

    • Go back to Project Properties → General → Products
    • Confirm all products match the expected configuration (refer to the screenshot below)

    Let me know if you need further assistance.

    BR
    JC