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.

Compiler/AM3359: How to run/compile "baremetal" pdk_am335x_1_0_11\packages\ti\starterware\examples ->ADC or UART in CCS8

Part Number: AM3359

Tool/software: TI C/C++ Compiler

Hi,

Any guidance in windows(default install) on how to run the ADC or UART examples from  pdk_am335x_1_0_11\packages\ti\starterware\examples\adc or uart. Planning to run them barebone/baremetal on the beagle bone black.

The goal is to have working sample code to integrate with existing program.

basic GPIO

ADC

UART.

I have made the C:\ti\pdk_am335x_1_0_11\packages MyExampleProjects by running the "pdkProjectCreate.bat" it doesn't have the "starterware\examples\adc" examples it does have other working example for the GPIO and UART.

The uart and Jtag have already been verified to operational with the UART_Basic Example_bbb AM335x_arm Example Project

thank You,

MB

  • MB,

    I know that you mentioned bare metal applications as your starting point. But, for your final application that uses GPIO, ADC and UART, are you planning on converting everything into a RTOS based application?

    Lali
  • Dear Lali,

    The ADC/UART will be using DMA/ISR to funnel data, the main program will be using GPIO; we are going baremetal/barebone and NOT RTOS. As such hope we are in the right path; the examples in
    pdk_am335x_1_0_11\packages\ti\starterware\examples\adc or uart
    are what we are seeking as base for integration into existing program.

    Help on how to compile the example projects would be appreciated, in the path pdk_am335x_1_0_11\packages\ti\starterware\examples\adc or uart

    Warm Regards,
    MB
  • Dear Lali/All,

    As this is a Vanilla Texas Instruments example located in pdk_am335x_1_0_11\packages\ti\starterware\examples\uart

    Can I have some help on how to get this up and running please with CCS8.

    Warm Regards,

    MB

  • Td,

    I'm working on trying to create an ADC example on the BBB that utilizes the Starterware example. Will get back to you by Monday.
    Thanks for your patience.

    Lali
  • Td,

    Please check out e2e.ti.com/.../2735773
    There was someone else asking the same question and I posted an ADC example based on Starterware.

    Lali
  • Dear Lali,

    Would you be so kind as to provide the same for the UART example ( with interrupts), say UART4 or any but not UART0.

    Thank You in advance,
    MB
  • Td,

    Unfortunately I won't be able to.
    Are you able to follow www.ti.com/.../sprac32a.pdf

    Lali
  • Dear Lali,

    I am talking about the example at

    pdk_am335x_1_0_12\packages\ti\starterware\examples\uart

    How to compile this example? This is bare metal lnot RTOS based, and needs to be non RTOS,

    Warm Regards,

    MB.

  • Td,

    I have attached the UART example. This works with UART0 (FTDI output) on the BBB. You can follow http://www.ti.com/lit/an/sprac32a/sprac32a.pdf for the changes in UART instance.

    Also, I would advise you to use the PDK example located at C:\ti\pdk_am335x_1_0_10\packages\MyExampleProjects\UART_BasicExample_bbbAM335x_armExampleProject 

    This example has a macro #ifdef BARE_METAL for a bare metal implementation of the UART example.

    Lali

    /cfs-file/__key/communityserver-discussions-components-files/791/BBB_5F00_UART_5F00_PDK_5F00_example.zip

  • Dear Lali,

    The example you posted doesn't compile; Included project with resolved links for completeness

    1768.ADCnotcompile2.zip

    Error Log

    **** Clean-only build of configuration Debug for project UART_example_AM335x ****

    "C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 8 clean -O

    DEL /F  "UART_example_AM335x.hex"  "UART_example_AM335x.out"

    DEL /F "board.o" "board_am335x.o" "echo_app_main.o" "example_utils_mmu.o" "uart_app.o" "nonos\example_utils_mmu.o" "nonos\exceptionhandler.o" "nonos\init.o" "nonos\mmu_arm.o"

    DEL /F "board.d" "board_am335x.d" "echo_app_main.d" "example_utils_mmu.d" "uart_app.d" "nonos\example_utils_mmu.d" "nonos\mmu_arm.d"

    DEL /F "nonos\exceptionhandler.d" "nonos\init.d"

    Finished clean

    **** Build Finished ****

    **** Build of configuration Debug for project UART_example_AM335x ****

    "C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 8 all -O

    Building file: "../board_am335x.c"

    Invoking: GNU Compiler

    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"board_am335x.d" -MT"board_am335x.o"   -o"board_am335x.o" "../board_am335x.c"

    Finished building: "../board_am335x.c"

    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart/echo/echo_app_main.c"

    Invoking: GNU Compiler

    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"echo_app_main.d" -MT"echo_app_main.o"   -o"echo_app_main.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart/echo/echo_app_main.c"

    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart/echo/echo_app_main.c"

    Building file: "../board.c"

    Invoking: GNU Compiler

    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"board.d" -MT"board.o"   -o"board.o" "../board.c"

    Finished building: "../board.c"

    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c"

    Invoking: GNU Compiler

    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"example_utils_mmu.d" -MT"example_utils_mmu.o"   -o"example_utils_mmu.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c"

    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c"

    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/exceptionhandler.asm"

    Invoking: GNU Compiler

    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"nonos/exceptionhandler.d" -MT"nonos/exceptionhandler.o" -x assembler-with-cpp  -o"nonos/exceptionhandler.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/exceptionhandler.asm"

    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/exceptionhandler.asm"

    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart/uart_app.c"

    Invoking: GNU Compiler

    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"uart_app.d" -MT"uart_app.o"   -o"uart_app.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart/uart_app.c"

    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart/uart_app.c"

    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c"

    Invoking: GNU Compiler

    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"nonos/example_utils_mmu.d" -MT"nonos/example_utils_mmu.o"   -o"nonos/example_utils_mmu.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c"

    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c"

    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/init.asm"

    Invoking: GNU Compiler

    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"nonos/init.d" -MT"nonos/init.o" -x assembler-with-cpp  -o"nonos/init.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/init.asm"

    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/init.asm"

    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/soc/mmu_arm.c"

    Invoking: GNU Compiler

    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"nonos/mmu_arm.d" -MT"nonos/mmu_arm.o"   -o"nonos/mmu_arm.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/soc/mmu_arm.c"

    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/soc/mmu_arm.c"

    Building target: "UART_example_AM335x.out"

    Invoking: GNU Linker

    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -mtune=cortex-a8 -marm -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -mfloat-abi=hard -Wl,-Map,"UART_example_AM335x.map" --entry Entry -nostartfiles -Wl,--gc-sections -L"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/binary/board/lib/am335x-evm/a8/release/gcc" -L"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/binary/dal/lib/am335x-evm/a8/release/gcc" -L"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/binary/utils/lib/am335x-evm/a8/release/gcc" -L"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/binary/soc/lib/am335x-evm/a8/release/gcc" -Wl,--defsym,STACKSIZE=0x1C000 -Wl,--defsym,HEAPSIZE=0x400 -Wl,-static -mfloat-abi=hard --specs=nano.specs -o"UART_example_AM335x.out" "./board.o" "./board_am335x.o" "./echo_app_main.o" "./example_utils_mmu.o" "./uart_app.o" "./nonos/example_utils_mmu.o" "./nonos/exceptionhandler.o" "./nonos/init.o" "./nonos/mmu_arm.o" -Wl,-T"../AM335x.lds" -Wl,-T"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/am335x_ddr.lds"  -Wl,--start-group -l:libboard.a -l:libdal.a -l:libutils.a -l:libsoc.a -lstdc++ -lgcc -lm -lrdimon -lnosys -lc -Wl,--end-group

    makefile:163: recipe for target 'UART_example_AM335x.out' failed

    c:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe:C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/am335x_ddr.lds:50: warning: redeclaration of memory region `DDR0'

    ./nonos/example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c:83: multiple definition of `regionDdr'

    ./example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c:83: first defined here

    ./nonos/example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c:97: multiple definition of `regionOcmc'

    ./example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c:97: first defined here

    ./nonos/example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c:113: multiple definition of `regionDev'

    ./example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c:113: first defined here

    ./nonos/example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c:125: multiple definition of `regionQspi'

    ./example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c:125: first defined here

    ./nonos/example_utils_mmu.o: In function `MMUConfigAndEnable':

    C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c:148: multiple definition of `MMUConfigAndEnable'

    ./example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c:149: first defined here

    collect2.exe: error: ld returned 1 exit status

    gmake[1]: *** [UART_example_AM335x.out] Error 1

    gmake: *** [all] Error 2

    makefile:159: recipe for target 'all' failed

    **** Build Finished ****

    Please advice,

    Warm Regards,

    MB

  • MB,

    For future reference, it would be helpful if you can attach a .txt of the lag rather than paste the entire output on the thread. Not easy to read.

    If you take a look at the errors that are being created, there are multiple definitions from example_utils_mmu.c. Not sure what in your environment has these multiple definitions, but please try to debug.

    I was able to build the project in my CCS environment.

    Lali
  • Dear Lali,

    I have purged the "c:\ti" directory and re-downloaded the CCS8.2.0.00007_win32.zip (offline install) and ti-processor-sdk-rtos-am335x-evm-05.01.00.11-Windows-x86-Install.exe

    Installed the CCS8.2.0.00007 into C:\ti (default)

    update the software

    installed the ti-processor-sdk-rtos-am335x-evm-05.01.00.11-Windows-x86 into c:\ti (default)

    update the software

    I have ran the example You provided "ADC_example_AM335x"  C:\ti\ADC_example_AM335x (thank You for this); This both compile successfully and output on the terminal (100%).

    I have ran the example You provided "UART_example_AM335x" C:\ti\UART_example_AM335x; compilation error, same as above and txt file attached as per request.

    Your help in this is greatly appreciated, any ideas?

    I have a program which I need to integrate; I need a simple program to measure the ADC0-4 and output the value on UART1-4 in a while(1) loop to finish this project, as the rest is independent.

    Warm Regards,

    MB

    buildlogerror.txt
    **** Build of configuration Debug for project UART_example_AM335x ****
    
    "C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "../board_am335x.c"
    Invoking: GNU Compiler
    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"board_am335x.d" -MT"board_am335x.o"   -o"board_am335x.o" "../board_am335x.c"
    Finished building: "../board_am335x.c"
     
    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart/echo/echo_app_main.c"
    Invoking: GNU Compiler
    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"echo_app_main.d" -MT"echo_app_main.o"   -o"echo_app_main.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart/echo/echo_app_main.c"
    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart/echo/echo_app_main.c"
     
    Building file: "../board.c"
    Invoking: GNU Compiler
    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"board.d" -MT"board.o"   -o"board.o" "../board.c"
    Finished building: "../board.c"
     
    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c"
    Invoking: GNU Compiler
    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"example_utils_mmu.d" -MT"example_utils_mmu.o"   -o"example_utils_mmu.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c"
    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c"
     
    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/exceptionhandler.asm"
    Invoking: GNU Compiler
    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"nonos/exceptionhandler.d" -MT"nonos/exceptionhandler.o" -x assembler-with-cpp  -o"nonos/exceptionhandler.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/exceptionhandler.asm"
    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/exceptionhandler.asm"
     
    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart/uart_app.c"
    Invoking: GNU Compiler
    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"uart_app.d" -MT"uart_app.o"   -o"uart_app.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart/uart_app.c"
    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart/uart_app.c"
     
    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c"
    Invoking: GNU Compiler
    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"nonos/example_utils_mmu.d" -MT"nonos/example_utils_mmu.o"   -o"nonos/example_utils_mmu.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c"
    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c"
     
    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/init.asm"
    Invoking: GNU Compiler
    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"nonos/init.d" -MT"nonos/init.o" -x assembler-with-cpp  -o"nonos/init.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/init.asm"
    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/init.asm"
     
    Building file: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/soc/mmu_arm.c"
    Invoking: GNU Compiler
    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -mfpu=neon -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -I"C:/ti/UART_example_AM335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/uart" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/utils" -I"C:/ti/pdk_am335x_1_0_12/packages" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/armv7a" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/include/hw" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/adc" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos" -I"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -c -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -MMD -MP -MF"nonos/mmu_arm.d" -MT"nonos/mmu_arm.o"   -o"nonos/mmu_arm.o" "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/soc/mmu_arm.c"
    Finished building: "C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/soc/mmu_arm.c"
     
    Building target: "UART_example_AM335x.out"
    Invoking: GNU Linker
    "C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -mtune=cortex-a8 -marm -Dam3359 -DbbbAM335x -DSOC_AM335X -Dgcc -DAM335X_FAMILY_BUILD -DBUILDCFG_MOD_UART -D__ARMv7 -D_DEBUG_=1 -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -mabi=aapcs -mapcs-frame -Wimplicit -Wunused -Wunknown-pragmas -MMD -MP -mfloat-abi=hard -Wl,-Map,"UART_example_AM335x.map" --entry Entry -nostartfiles -Wl,--gc-sections -L"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/binary/board/lib/am335x-evm/a8/release/gcc" -L"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/binary/dal/lib/am335x-evm/a8/release/gcc" -L"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/binary/utils/lib/am335x-evm/a8/release/gcc" -L"C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/binary/soc/lib/am335x-evm/a8/release/gcc" -Wl,--defsym,STACKSIZE=0x1C000 -Wl,--defsym,HEAPSIZE=0x400 -Wl,-static -mfloat-abi=hard --specs=nano.specs -o"UART_example_AM335x.out" "./board.o" "./board_am335x.o" "./echo_app_main.o" "./example_utils_mmu.o" "./uart_app.o" "./nonos/example_utils_mmu.o" "./nonos/exceptionhandler.o" "./nonos/init.o" "./nonos/mmu_arm.o" -Wl,-T"../AM335x.lds" -Wl,-T"C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/am335x_ddr.lds"  -Wl,--start-group -l:libboard.a -l:libdal.a -l:libutils.a -l:libsoc.a -lstdc++ -lgcc -lm -lrdimon -lnosys -lc -Wl,--end-group 
    makefile:163: recipe for target 'UART_example_AM335x.out' failed
    c:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe:C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/am335x_ddr.lds:50: warning: redeclaration of memory region `DDR0'
    ./nonos/example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c:83: multiple definition of `regionDdr'
    ./example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c:83: first defined here
    ./nonos/example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c:97: multiple definition of `regionOcmc'
    ./example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c:97: first defined here
    ./nonos/example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c:113: multiple definition of `regionDev'
    ./example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c:113: first defined here
    ./nonos/example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c:125: multiple definition of `regionQspi'
    ./example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c:125: first defined here
    ./nonos/example_utils_mmu.o: In function `MMUConfigAndEnable':
    C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/example_utils_mmu.c:148: multiple definition of `MMUConfigAndEnable'
    ./example_utils_mmu.o:C:/ti/pdk_am335x_1_0_12/packages/ti/starterware/examples/example_utils/example_utils_mmu.c:149: first defined here
    collect2.exe: error: ld returned 1 exit status
    gmake[1]: *** [UART_example_AM335x.out] Error 1
    gmake: *** [all] Error 2
    makefile:159: recipe for target 'all' failed
    
    **** Build Finished ****
    

  • MB,

    That's strange. It builds fine for me.

    Could you please try to look for other instances of MMUConfigAndEnable in your project?
    Trying to see where the multiple instances the compiler is seeing thats being picked up.

    Lali

  • Dear Lali,

    Please find attached.

    Any ideas which is needed? As when I get it to compile I get no terminal output.

    I did 2 workspace search (attached below);

    MMUConfigAndEnable nothing unusual.

    regionDdr is declared in multiple files.

    C:\ti\pdk_am335x_1_0_12\packages\ti\starterware\examples\example_utils\example_utils_mmu.c
    C:\ti\pdk_am335x_1_0_12\packages\ti\osal\test\am335x\armv7\nonos\example_utils_mmu.c

    Warm Regards,

    MB

  • Td,

    Can you exclude example_utils_mmu.c from your CCS workspace and build?

    Right click on the file>Exclude from build

    Does it give you the same multiple definition error?

    Lali
  • Dear Lali,

    Hardware has been verified with the ADC_example_AM335x and I do get terminal output.

    I however cannot get terminal output from the UART_example_AM335x.

    This is attached with links resolved for completeness.

    I do get 1 warning

    c:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe:C:/ti/pdk_am335x_1_0_12/packages/ti/osal/test/am335x/armv7/nonos/am335x_ddr.lds:50: warning: redeclaration of memory region `DDR0'

    Any ideas? This is virgin install of both CCS8 and the pdk_am335x as described above and your provided UART_example_AM335x with example_utils_mmu removed.

    Warm Regards,

    MBuartnotworking.zip

  • Hi,

    This is provided "Texas Instruments" example; any help on how to get the UART example to run?
    I am sure this will be helpful to other people who are interested in running bare metal UART on the processors.

    Thanking You in advance,
    MB
  • Td,

    If I understand correctly, you were able to get past the memory error compile issues?

    Are you able to run the attached .out from the original project i shared?

    Do you see any UART output with this .out?

    Lali

    UART_example_AM335x.out

  • Dear Lali,

    I have updated the CCS8 Sitara processors as I was asked today. CCS8 Version: 8.2.0.00007, Sitara device support 1.4.4.

    If I understand correctly, you were able to get past the memory error compile issues?

    I have removed the duplicate entry from the project and it does compile, with the warning posted above. The project is posted above under uartnotworking.zip @  11-12-2018 4:19 AM

    Are you able to run the attached .out from the original project i shared?

    I have ran it

    Do you see any UART output with this .out?

    When its ran from "cold" start it does not output anything. By cold I ran the "UART_example_AM335x.out" 1st  once BeagleBone Black is powered on + XDS100V3 + UART and computer was rebooted.

    If I ran from cold start the "ADC_example_AM335x" you provided and then the "UART_example_AM335x" I have linked to above(uartnotworking.zip @  11-12-2018 4:19 AM). I do get serial output.

    If I ran from cold start the "ADC_example_AM335x" you provided and then the "UART_example_AM335x.out" you provided above. I do get serial output.

    This behavior wasn't before the update of the CCS8. To me it seems like the "ADC_example_AM335x" is initializing something for the ""UART_example_AM335x" to work since the update.

    The project "ADC_example_AM335x" is as you provided, and  the project "UART_example_AM335x" is above @ uartnotworking.zip @  11-12-2018 4:19 AM. I am running windows 10 64bit.

    Output is below;


    StarterWare ADC voltage measure application!!
    BOARDInit status [0x0]
     SoC                   : [AM335X]
     Core                  : [A8]
     Board Detected        : [BEAGLEBONEBLACK]
     Base Board Revision   : [UNKNOWN]
     Daughter Card Revision: [UNKNOWN]
    Voltage sensed on the AN0 line :4095/4095
    Voltage sensed on the AN1 line :0/4095

    sanity check 2 enter 10 bytes. They will be echoed back to Cons

    0123456789

    Warm Regards,

    MB

  • MB,

    And you are using a GEL to initialize the A8 core?

    Lali
  • Dear Lali,

    I am using the default install of code composer 8 on windows 10 64 bit. From my understanding the Gel is loaded once I select in the project the Beagle Bone Black (cortex A8) as a target and is bundles with the CCS8. Terminal output says AM335x BeagleBlack Initialization is Done. So expecting the correct gel file.

    Gel is at C:\ti\ccsv8\ccs_base\emulation\boards\beaglebone\gel\beagleboneblack.gel; This is attached.

    In code composer the UART example; I do get console output which to me seems ok for all voltage measure and UART examples. Still no terminal output if ran 1st as describe above. I have added screen cap to better illustrate.

    CortxA8: Output: DDR PHY Configuration done
    CortxA8: Output: ****  AM335x BeagleBlack Initialization is Done ******************

    Any ideas?

    Warm Regards,

    MB

    Running UART example. note no COM3 output; no welcome message.

    Running Voltage measure example next. note COM3 output.

    Running UART example next. note COM3 output; note welcome message and successful program running.

    beagleboneblack.gel

  • Td,

    How is the debug going? Any progress since your last post?
    I'm confused on the 3 test scenarios you mentioned above.

    Is #1 based on an example that was shared here on e2e?
    My guess would be that the pinmux and PRCM settings might not be enabling the correct UART instance compared to #2 and #3.

    Lali
  • Dear Lali,

    I do believe this is a serious problem.

    I am running the UART_example_AM335x.out with no UART output, immediately after I am running the ADC_example_AM335x and getting UART output, and immediately after this I am running UART_example_AM335x.out with UART output.

    This is the 3 photos provided below, they are following one another sequentially with no hardware modification or hardware interaction.

    To clarify and use this post as a clean slate.

    step 1. Purge TI directory, delete it of hard drive and the workspace directory.

    step 2. Install offline install of CCS8.2.0.00007_win32.zip to c:\ti

    step 3. Update

    step 4. Install ti-processor-sdk-rtos-am335x-evm-05.00.00.15-Windows-x86-Install.exe to c:\ti

    step 5. Update

    Now we have the default installations CCS8 and PDK

    step 6. Download example You posted "ADC_example_AM335x"

    step 7. Download the "UART_example_AM335x.out" You posted

     

    Running the "UART_example_AM335x.out"

    step 8. Run empty project and load the UART_example_AM335x.out

    step 9. Debug the "UART_example_AM335x.out", press Run

    Output is below (There is no serial output from the program)

    Halt the Program and return to programming view

     

    Running the ADC example

    Step 10. Debug the "ADC_example_AM335x"

    Step 11. Debug the ADC_example_AM335x, press Run

    Output is below (There is UART output from the program)

    Halt the Program and return to programming view

     

    Running the UART_example_AM335x.out again ( this is same program which gave no output 15 seconds ago)

    step 8. Run empty project and load the UART_example_AM335x.out

    step 9. Debug the UART_example_AM335x.out, press Run

    Output is below (There is UART output from the program)

     

    Side Notes

    I have Ran this on 2 separate beagle bone blacks, one is official beagle bone black with 2 gb flash (rev B) and the other is a beagle bone black from element14 with 4gb of flash (rev C). Both provide identical results.

    All programs posted by Lali and using default TI install paths.

    1st running of UART_example_AM335x.out

     

    2nd running of ADC_example_AM335x


    3nd running of UART_example_AM335x.out


     

    Warm Regards,

    MB

  • Hi,

    Can anyone confirm or deny my results please.

    Warm Regards,
    MB
  • MB,

    For the project that generates UART_example_AM335x.out, can you see if it has CONSOLEUtilsInit(); ?
    Something in ADC_example_AM335x #2 is fixing UART_example_AM335x.out when run on #3.

    Lali
  • Dear Lali,

    With All due respect. Can anyone confirm or deny the results I am getting also please, need this sorted 3 months ago. Basic vanilla example as is provided by TI needs to be ran.

    I am using the UART_example_AM335x.out you provided. This is precompiled binary loaded into BBB
    I am using the voltage measure example you provided.

    Output is provided at post dated

    12-04-2018 6:45 PM


    Warm Regards,
    Stas.
  • Td,

    Yes, I'm seeing the same behavior when running ADC_example_AM335x.out and UART_example_AM335x.out.

    UART_example_AM335x.out works when I run it after ADC_example_AM335x.out.

    Are you able to run the basic example project located at C:\ti\pdk_am335x_1_0_12\packages\MyExampleProjects\UART_BasicExample_bbbAM335x_armExampleProject?

    Please keep in mind that the examples that I shared for ADC and UART earlier were Starterware based examples. Support for Starterware specific examples have been deprecated some time ago and the recommendation is to use the PDK examples in C:\ti\pdk_am335x_1_0_12\packages\MyExampleProjects\.

    Having said all of the above, I found the issue with UART_example_AM335x.out. not running.

    I think it has to do with the pinmux config not being needed since the board library taking care of it.
    If you remove the below snippet of code from uart_app.c, it should work

    /* PinMux Configuration */
          status = PINMUXModuleConfig(CHIPDB_MOD_ID_UART, pObj->instNum, NULL);

    I have attached the .out as well. Give it a try. Hope it works!

    /cfs-file/__key/communityserver-discussions-components-files/791/UART_5F00_example_5F00_AM335x_5F00_no_5F00_pinmux.out

    Lali

  • Dear Lali,

    This did not fix the issue. Please confirm this works for you from "power reset" of the BBB

    Modified as per

    " /* Clock Configuration */
    status = PRCMModuleEnable(CHIPDB_MOD_ID_UART, pObj->instNum, FALSE);

    if(S_PASS == status)
    {
    /* PinMux Configuration removed as per TI comment e2e.ti.com/.../2750009
    // status = PINMUXModuleConfig(CHIPDB_MOD_ID_UART, pObj->instNum, NULL);

    if(S_PASS == status)
    {
    /* Resetting the UART module. */
    UARTModuleReset(pObj->instAddr);
    "

    Warm Regards and season greetings,
    Stas.
  • Stas,
    Yes, it works for me from a power reset of the BBB.

    Lali