Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Good day,
I have been trying to get multiple peripherals running on a BBB using Processor SDK TIRTOS and was informed that a new, slick demo was available in the latest "processor_sdk_rtos_am335x_4_02_00_09".
I downloaded, installed everything and even have some PDK examples built and running on the BBB.
When I tried to pull in the "rtos_template_app" that is included in the processor sdk folder as instructed, it compiled great with the initial settings.
However, when i went in and changed the board to be a BBB in the General project settings in both the Project and Products tab AND updated my GNU Compiler symbol from "EVM_AM335X" to "BBB_AM335X", I get the following build errors (note that I removed my file structure to the workspace with "..."):
**** Build of configuration Debug for project rtos_template_app_am335x_a8 ****
"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
'Building file: "../main.cfg"'
'Invoking: XDCtools'
"C:/ti/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/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p ti.platforms.beaglebone -r release -c "C:/ti/gcc-arm-none-eabi-6-2017-q1-update" "../main.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring main.xa8fg from package/cfg/main_pa8fg.cfg ...
generating custom ti.sysbios library makefile ...
Linking with library ti.drv.spi:./lib/am335x/a8/release/ti.drv.spi.aa8fg
Linking with library ti.drv.uart:./lib/am335x/a8/release/ti.drv.uart.aa8fg
Linking with library ti.drv.i2c:./lib/am335x/a8/release/ti.drv.i2c.aa8fg
Linking with library ti.csl:./lib/am335x/a8/release/ti.csl.aa8fg
Linking with library ti.osal:./lib/tirtos/a8/release/ti.osal.aa8fg
Starting build of library sources ...
making C:/.../CCSworkspace/rtos_template_app_am335x_a8/src/sysbios/sysbios.aa8fg ...
gmake[1]: Entering directory `C:/.../CCSworkspace/rtos_template_app_am335x_a8/src/sysbios'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `C:/...CCSworkspace/rtos_template_app_am335x_a8/src/sysbios'
Build of libraries done.
cla8fg package/cfg/main_pa8fg.c ...
'Finished building: "../main.cfg"'
'Building file: "../app.c"'
'Invoking: GNU Compiler'
"C:/ti/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 -DBBB_AM335X -DSOC_AM335x -Dam3359 -I"C:/Users/frickas/Documents/CATT/CODE/CCSworkspace/rtos_template_app_am335x_a8" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"app.d" -MT"app.o" @"configPkg/compiler.opt" -o"app.o" "../app.c"
subdir_rules.mk:9: recipe for target 'app.o' failed
../app.c: In function 'i2c_eeprom_read_and_display_task':
../app.c:217:23: error: 'BOARD_I2C_EEPROM_INSTANCE' undeclared (first use in this function)
handle = I2C_open(BOARD_I2C_EEPROM_INSTANCE, &i2cParams);
^~~~~~~~~~~~~~~~~~~~~~~~~
../app.c:217:23: note: each undeclared identifier is reported only once for each function it appears in
../app.c:220:35: error: 'BOARD_I2C_EEPROM_ADDR' undeclared (first use in this function)
i2cTransaction.slaveAddress = BOARD_I2C_EEPROM_ADDR;
^~~~~~~~~~~~~~~~~~~~~
../app.c:225:45: error: 'BOARD_EEPROM_BOARD_NAME_ADDR' undeclared (first use in this function)
txBuf[0] = (char)(((uint32_t) 0xFF00 & BOARD_EEPROM_BOARD_NAME_ADDR)>>8);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app.c:228:33: error: 'BOARD_EEPROM_BOARD_NAME_LENGTH' undeclared (first use in this function)
i2cTransaction.readCount = BOARD_EEPROM_BOARD_NAME_LENGTH;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app.c:240:45: error: 'BOARD_EEPROM_VERSION_ADDR' undeclared (first use in this function)
txBuf[0] = (char)(((uint32_t) 0xFF00 & BOARD_EEPROM_VERSION_ADDR)>>8);
^~~~~~~~~~~~~~~~~~~~~~~~~
../app.c:243:33: error: 'BOARD_EEPROM_VERSION_LENGTH' undeclared (first use in this function)
i2cTransaction.readCount = BOARD_EEPROM_VERSION_LENGTH;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [app.o] Error 1
'Building file: "../main.c"'
'Invoking: GNU Compiler'
"C:/ti/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 -DBBB_AM335X -DSOC_AM335x -Dam3359 -I"C:/...CCSworkspace/rtos_template_app_am335x_a8" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"main.d" -MT"main.o" @"configPkg/compiler.opt" -o"main.o" "../main.c"
'Finished building: "../main.c"'
gmake: Target 'all' not remade because of errors.
**** Build Finished ****