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.

CCS/PROCESSOR-SDK-AM335X: Fatfs console project build error

Part Number: PROCESSOR-SDK-AM335X
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hello,

we are experiencing problems with the example project "MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject"
as included in PDK for AM335x 1.0.9. Building it after importing into CCS isn't possible as we get an Error regarding
missing EDMA Library ("ti.sdo.edma3.drv.sample"). Manually including this Library via the project settings (Adding EDMA3 Low Level Driver 2.12.5) as Product)
fixes this but serves us with another error:
'hwAttrsConfig' undeclared (first use in this function) main_fatfs_console.c"

It might very well be that we are missing something or having a toolchain misconfiguration. Nevertheless we couldn't find any documentation regarding mentioned
Struct (which should be MMCSD_v1_HwAttrs).

Thank you in advance.

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

    The AM335x PDK 1.0.9 required EDMA_VERSION=2.12.05.30B. Do you have that installed and detected by CCS as a RTSC component?

    If not, please run the CCS Window---->preferences---->Code Composer Studio----->product to re-discover this RTSC package.

    Then, in the CCS project, do you have EDMA selected?

    The build process worked for me:


    **** Build of configuration Debug for project MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject ****

    "C:\\ti_7_3_0\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
    gmake[1]: Entering directory 'C:/ti/pdk_am335x_1_0_9/packages/MyExampleProjects/MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject/Debug'
    'Building file: C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/am335x/armv7/bios/mmcsddma_bbbam335x.cfg'
    'Invoking: XDCtools'
    "C:/ti_7_3_0/xdctools_3_50_03_33_core/xs" --xdcpath="C:/ti/bios_6_52_00_12/packages;C:/ti/pdk_am335x_1_0_9/packages;C:/ti/edma3_lld_2_12_05_30B/packages;C:/ti/ndk_2_26_00_08/packages;C:/ti/uia_2_21_02_07/packages;C:/ti_7_3_0/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p ti.platforms.evmAM3359 -r debug -c "C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update" "C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/am335x/armv7/bios/mmcsddma_bbbam335x.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring mmcsddma_bbbam335x.xa8fg from package/cfg/mmcsddma_bbbam335x_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.drv.mmcsd:./lib/am335x/a8/release/ti.drv.mmcsd.dma.aa8fg
    Linking with library ti.drv.uart:./lib/a8/release/ti.drv.uart.aa8fg
    Linking with library ti.drv.gpio:./lib/a8/release/ti.drv.gpio.aa8fg
    Linking with library ti.board:./lib/bbbAM335x/a8/release/ti.board.aa8fg
    Linking with library ti.drv.i2c:./lib/am335x/a8/release/ti.drv.i2c.aa8fg
    Linking with library ti.osal:./lib/tirtos/am335x/a8/release/ti.osal.aa8fg
    Linking with library ti.csl:./lib/am335x/a8/release/ti.csl.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
    Starting build of library sources ...
    making C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/am335x/armv7/bios/src/sysbios/sysbios.aa8fg ...
    gmake[1]: Entering directory `C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/am335x/armv7/bios/src/sysbios'
    asma8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...
    asma8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...
    asma8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a8/Cache_asm_gnu.sv7A ...
    asma8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a8/Mmu_asm_gnu.sv7A ...
    asma8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a8/TimestampProvider_asm_gnu.sv7A ...
    asma8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a8/intcps/Hwi_asm_gnu.sv7A ...
    asma8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...
    asma8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/timers/dmtimer/Timer_asm_gnu.sv7A ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/BIOS.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/TaskSupport.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Clock.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Idle.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Intrinsics.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Queue.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Semaphore.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Swi.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Task.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Cache.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Core.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/CoreNull.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi_stack.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi_startup.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Timer.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/heaps/HeapMem.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/rts/gnu/ReentSupport.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/rts/gnu/SemiHostSupport.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a8/Cache.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a8/Mmu.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a8/TimestampProvider.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a8/intcps/Hwi.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/exc/Exception.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/gates/GateHwi.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/gates/GateMutex.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/timers/dmtimer/Timer.c ...
    cla8fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a8/ti81xx/TimerSupport.c ...
    ara8fg arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o a8_Cache_asm_gnu.o a8_Mmu_asm_gnu.o a8_TimestampProvider_asm_gnu.o intcps_Hwi_asm_gnu.o exc_Exception_asm_gnu.o dmtimer_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.o arm_TaskSupport.o knl_Clock.o knl_Idle.o knl_Intrinsics.o knl_Queue.o knl_Semaphore.o knl_Swi.o knl_Task.o hal_Cache.o hal_Core.o hal_CoreNull.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o hal_Timer.o heaps_HeapMem.o gnu_ReentSupport.o gnu_SemiHostSupport.o a8_Cache.o a8_Mmu.o a8_TimestampProvider.o intcps_Hwi.o exc_Exception.o gates_GateHwi.o gates_GateMutex.o dmtimer_Timer.o ti81xx_TimerSupport.o ...
    gmake[1]: Leaving directory `C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/am335x/armv7/bios/src/sysbios'
    Build of libraries done.
    cla8fg package/cfg/mmcsddma_bbbam335x_pa8fg.c ...
    'Finished building: C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/am335x/armv7/bios/mmcsddma_bbbam335x.cfg'
    ' '
    gmake[1]: Leaving directory 'C:/ti/pdk_am335x_1_0_9/packages/MyExampleProjects/MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject/Debug'
    'Building file: C:/ti/pdk_am335x_1_0_9/packages/ti/drv/uart/soc/am335x/UART_soc.c'
    'Invoking: GNU Compiler'
    "C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -marm -mfloat-abi=hard -Dam3359 -DMMCSD_EDMA_ENABLED -DSOC_AM335x -DbbbAM335x -I"C:/ti/pdk_am335x_1_0_9/packages/MyExampleProjects/MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject" -I"C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd" -I"C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include/newlib-nano" -I"C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"UART_soc.d" -MT"UART_soc.o" -o"UART_soc.o" @"configPkg/compiler.opt" "C:/ti/pdk_am335x_1_0_9/packages/ti/drv/uart/soc/am335x/UART_soc.c"
    'Finished building: C:/ti/pdk_am335x_1_0_9/packages/ti/drv/uart/soc/am335x/UART_soc.c'
    ' '
    'Building file: C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/src/fs_shell_app_utils.c'
    'Invoking: GNU Compiler'
    "C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -marm -mfloat-abi=hard -Dam3359 -DMMCSD_EDMA_ENABLED -DSOC_AM335x -DbbbAM335x -I"C:/ti/pdk_am335x_1_0_9/packages/MyExampleProjects/MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject" -I"C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd" -I"C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include/newlib-nano" -I"C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"fs_shell_app_utils.d" -MT"fs_shell_app_utils.o" -o"fs_shell_app_utils.o" @"configPkg/compiler.opt" "C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/src/fs_shell_app_utils.c"
    'Finished building: C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/src/fs_shell_app_utils.c'
    ' '
    'Building file: C:/ti/pdk_am335x_1_0_9/packages/ti/drv/gpio/soc/am335x/GPIO_soc.c'
    'Invoking: GNU Compiler'
    "C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -marm -mfloat-abi=hard -Dam3359 -DMMCSD_EDMA_ENABLED -DSOC_AM335x -DbbbAM335x -I"C:/ti/pdk_am335x_1_0_9/packages/MyExampleProjects/MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject" -I"C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd" -I"C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include/newlib-nano" -I"C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"GPIO_soc.d" -MT"GPIO_soc.o" -o"GPIO_soc.o" @"configPkg/compiler.opt" "C:/ti/pdk_am335x_1_0_9/packages/ti/drv/gpio/soc/am335x/GPIO_soc.c"
    'Finished building: C:/ti/pdk_am335x_1_0_9/packages/ti/drv/gpio/soc/am335x/GPIO_soc.c'
    ' '
    'Building file: C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/src/main_fatfs_console.c'
    'Invoking: GNU Compiler'
    "C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -marm -mfloat-abi=hard -Dam3359 -DMMCSD_EDMA_ENABLED -DSOC_AM335x -DbbbAM335x -I"C:/ti/pdk_am335x_1_0_9/packages/MyExampleProjects/MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject" -I"C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd" -I"C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include/newlib-nano" -I"C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"main_fatfs_console.d" -MT"main_fatfs_console.o" -o"main_fatfs_console.o" @"configPkg/compiler.opt" "C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/src/main_fatfs_console.c"
    C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/src/main_fatfs_console.c:89:0: warning: "GPIO_PIN_MMC_SDCD_ACTIVE_STATE" redefined
    #define GPIO_PIN_MMC_SDCD_ACTIVE_STATE 0

    In file included from C:/ti/pdk_am335x_1_0_9/packages/ti/board/board_cfg.h:54:0,
    from C:/ti/pdk_am335x_1_0_9/packages/ti/board/board.h:70,
    from C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/src/main_fatfs_console.c:69:
    C:/ti/pdk_am335x_1_0_9/packages/ti/board/src/bbbAM335x/include/board_cfg.h:89:0: note: this is the location of the previous definition
    #define GPIO_PIN_MMC_SDCD_ACTIVE_STATE (0x0)

    'Finished building: C:/ti/pdk_am335x_1_0_9/packages/ti/drv/mmcsd/example/fatfs_console/src/main_fatfs_console.c'
    ' '
    'Building target: MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject.out'
    'Invoking: GNU Linker'
    "C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -mtune=cortex-a8 -marm -Dam3359 -DMMCSD_EDMA_ENABLED -DSOC_AM335x -DbbbAM335x -g -gdwarf-3 -gstrict-dwarf -Wall -mfloat-abi=hard -Wl,-Map,"MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/hard" -Wl,--defsym,STACKSIZE=0x1C000 -Wl,--defsym,HEAPSIZE=0x400 --specs=nano.specs -o"MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject.out" "./GPIO_soc.o" "./UART_soc.o" "./fs_shell_app_utils.o" "./main_fatfs_console.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lrdimon -lgcc -lm -lnosys -lc -Wl,--end-group
    'Finished building target: MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject.out'
    ' '
    C:/ti/pdk_am335x_1_0_9/packages/pdkAppImageCreate.bat C:/ti/pdk_am335x_1_0_9/packages C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update C:/ti/pdk_am335x_1_0_9/packages/MyExampleProjects/MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject/Debug MMCSD_FatfsConsole_bbbAM335x_DMA_armExampleProject AM335x arm

    ' '

    **** Build Finished ****