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/CC1350: Changing .cfg file, compile error

Part Number: CC1350
Other Parts Discussed in Thread: CC2650

Tool/software: Code Composer Studio

Hello!

I'm trying to implement a bootloader in my project based on simple peripheral BLE example. I need to move the application program to pages 1 - 30 and let the reset vector be in the beginning of flash page 1. 

In cc26xx_app.cmd I changed:

#define FLASH_APP_BASE 0x01000 
#define FLASH_LEN 0x1F000 

Then in cc1350.cfg:

m3Hwi.resetVectorAddress  = 0x1000;

Then I got this error. But when i comment ROM lines, I'm getting compilation error:

"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/examples/rtos/CC1350_LAUNCHXL/blestack/simple_peripheral/tirtos/ccs/config/app_ble.cfg", line 1
"./package/cfg/app_ble_pem3.cfg", line 180
gmake.exe: *** [package.mak:202: package/cfg/app_ble_pem3.xdl] Error 1
js: "C:/ti/xdctools_3_51_02_21_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-272016337-inproc] Error 1
gmake: *** [build-272016337] Error 2
TOOLS/subdir_rules.mk:9: recipe for target 'build-272016337' failed
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

What I'm doing wrong? Thanks much.

  • Hi Andrey,

    Assigning an expert to comment.

  • Nobody knows what may cause this error?

  • Hi,

    Are you sure you copied the entire error message? I tried to reproduce, and it said "Boot is not defined" to which the solution is to uncomment var Boot = xxx in the cfg file (it was previously implicitly included by ROM I assume). This was also explicitly stated in the Problems view. After fixing this I could compile.

    Best regards,
    Aslak

  • Hi. Aslak

    This is full console log:


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

    "C:\\ti\\ccs901\\ccs\\utils\\bin\\gmake" -k -j 4 clean -O

    DEL /F "simple_peripheral_cc1350lp_app_FlashROM.hex" "configPkg\linker.cmd" "configPkg\compiler.opt" "simple_peripheral_cc1350lp_app_FlashROM.out"
    DEL /F "Application\simple_peripheral.obj" "Application\util.obj" "Drivers\ECC\ECCROMCC26XX.obj" "Drivers\TRNG\TRNGCC26XX.obj" "ICall\icall.obj" "ICall\icall_cc2650.obj" "ICallBLE\ble_user_config.obj" "ICallBLE\icall_api.obj" "PROFILES\devinfoservice.obj" "PROFILES\gatt_uuid.obj" "PROFILES\gattservapp_util.obj" "PROFILES\peripheral.obj" "PROFILES\simple_gatt_profile.obj" "Startup\board.obj" "Startup\ccfg_app_ble.obj" "Startup\main.obj" "Startup\uartecho.obj"
    DEL /F "Application\simple_peripheral.d" "Application\util.d" "Drivers\ECC\ECCROMCC26XX.d" "Drivers\TRNG\TRNGCC26XX.d" "ICall\icall.d" "ICall\icall_cc2650.d" "ICallBLE\ble_user_config.d" "ICallBLE\icall_api.d" "PROFILES\devinfoservice.d" "PROFILES\gatt_uuid.d" "PROFILES\gattservapp_util.d" "PROFILES\peripheral.d" "PROFILES\simple_gatt_profile.d" "Startup\board.d" "Startup\ccfg_app_ble.d" "Startup\main.d" "Startup\uartecho.d"
    RMDIR /S/Q "configPkg\"
    Finished clean

    **** Build Finished ****

    **** Build of configuration Debug for project simple_peripheral_cc1350lp_app_FlashROM ****

    "C:\\ti\\ccs901\\ccs\\utils\\bin\\gmake" -k -j 4 all -O

    Building file: "C:/ti/simplelink_cc13x0_sdk_3_10_00_11/examples/rtos/CC1350_LAUNCHXL/blestack/simple_peripheral/tirtos/ccs/config/app_ble.cfg"
    Invoking: XDCtools
    "C:/ti/xdctools_3_51_02_21_core/xs" --xdcpath="C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source;C:/ti/simplelink_cc13x0_sdk_3_10_00_11/kernel/tirtos/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC1350F128 -r release -c "C:/ti/ccs901/ccs/tools/compiler/ti-cgt-arm_18.12.1.LTS" --compileOptions "-mv7M3 --code_state=16 -me -O4 --opt_for_speed=0 --include_path=\"C:/Work/simple_peripheral_cc1350lp_app_FlashROM\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/devices/cc13x0\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/examples/rtos/CC1350_LAUNCHXL/blestack/simple_peripheral/src/app\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/inc\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/icall/inc\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/profiles/roles/cc26xx\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/profiles/roles\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/profiles/dev_info\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/profiles/simple_profile/cc26xx\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/profiles/simple_profile\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/common/cc26xx\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/heapmgr\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/controller/cc26xx/inc\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/hal/src/target/_common\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/target\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/hal/src/target/_common/cc26xx\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/hal/src/inc\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/osal/src/inc\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/services/src/sdata\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/services/src/saddr\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/icall/src/inc\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/rom\" --include_path=\"C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/boards/CC1350_LAUNCHXL\" --include_path=\"C:/ti/ccs901/ccs/tools/compiler/ti-cgt-arm_18.12.1.LTS/include\" --define=BOARD_DISPLAY_EXCLUDE_UART --define=CC1350_LAUNCHXL --define=CC13XX --define=DeviceFamily_CC13X0 --define=Display_DISABLE_ALL --define=HEAPMGR_SIZE=0 --define=ICALL_MAX_NUM_ENTITIES=6 --define=ICALL_MAX_NUM_TASKS=3 --define=POWER_SAVING --define=USE_ICALL --define=USE_CORE_SDK --define=xBOARD_DISPLAY_EXCLUDE_LCD --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL -g --c99 --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi " "C:/ti/simplelink_cc13x0_sdk_3_10_00_11/examples/rtos/CC1350_LAUNCHXL/blestack/simple_peripheral/tirtos/ccs/config/app_ble.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring app_ble.xem3 from package/cfg/app_ble_pem3.cfg ...
    TOOLS/subdir_rules.mk:12: recipe for target 'build-272016337-inproc' failed
    js: "C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/common/cc26xx/kernel/cc1350/config/cc1350.cfg", line 63: ReferenceError: "Boot" is not defined. (C:/ti/simplelink_cc13x0_sdk_3_10_00_11/source/ti/blestack/common/cc26xx/kernel/cc1350/config/cc1350.cfg#63)
    "C:/ti/simplelink_cc13x0_sdk_3_10_00_11/examples/rtos/CC1350_LAUNCHXL/blestack/simple_peripheral/tirtos/ccs/config/app_ble.cfg", line 1
    "./package/cfg/app_ble_pem3.cfg", line 180
    gmake.exe: *** [package.mak:202: package/cfg/app_ble_pem3.xdl] Error 1
    js: "C:/ti/xdctools_3_51_02_21_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake[1]: *** [build-272016337-inproc] Error 1
    gmake: *** [build-272016337] Error 2
    TOOLS/subdir_rules.mk:9: recipe for target 'build-272016337' failed
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

    Which m3Hwi.resetVectorAddress did you change in in cc1350.cfg?


    /* Put reset vector at start of Flash */
    if (typeof DIC_IMG_A != 'undefined' && DIC_IMG_A != 0)
    {
    m3Hwi.resetVectorAddress = 0xD0; 
    }
    else if (typeof DIC_IMG_B != 'undefined' && DIC_IMG_B != 0)
    {
    if (DIC_IMG_B == 1)
    {
    // Default.
    m3Hwi.resetVectorAddress = 0x8000; 
    }
    else
    {
    // User specified.
    m3Hwi.resetVectorAddress = DIC_IMG_B;
    }
    }
    else if (typeof OAD_IMG_E != 'undefined' && OAD_IMG_E == 1)
    {
    m3Hwi.resetVectorAddress = 0x1010;
    }
    else
    {
    m3Hwi.resetVectorAddress = 0x00
    }

  • As you could probably see from what you pasted, you also got Boot not defined. Solution is still as described above. I changed the last one, like you did.

  • Oh, yeah, that's resolved my issue. Thank you very much!