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.

CC2640R2F: Converting library build to split image CCS SPP BLE Server

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2640, CC2650

Hi,

I am using SPP BLE Server from the https://github.com/ti-simplelink/ble_examples

trying to convert Library build example to split image configuration by following the guide in the below link

https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/538/Converting-Library-Build-to-Split-Image-_2800_CCS_29002D00_1.pdf 

from this tread https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/p/629834/2322907

I generated the .out file for both app and stack. after downloading the stack project followed by app project.

the spp_ble_server does not run after BIOS_start();  since It did not advertise,

while doing build for stack project i get some ignored errors.

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

**** Build of configuration FlashROM for project spp_ble_server_cc2640r2lp_stack_library ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 2 all -O
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/../../../tools/blestack/lib_search/lib_sear
ch D:/cc2640_wspc_sdk40/spp_ble_server_cc2640r2lp_stack_library/TOOLS/build_config.opt
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/blelib
D:/cc2640_wspc_sdk40/spp_ble_server_cc2640r2lp_stack_library/FlashROM/lib_linker.cmd cc2640

C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/../../../tools/blestack/lib_search/lib_sear
ch.xml C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/symbols
<<< Using library: C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\source\ti\blestack\blelib\ctrl
\cc2640_hci_pxxx.a >>>
<<< Using library: C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\source\ti\blestack\blelib\ctrl
\cc2640_ll_pxxx.a >>>
<<< Using library: C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\source\ti\blestack\blelib\hci_tl
\cc26xx_hci_tl_none.a >>>
<<< Using library: C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\source\ti\blestack\blelib\host
\cc26xx_att_pxxx.a >>>
<<< Using library: C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\source\ti\blestack\blelib\host
\cc26xx_gap_pxxx.a >>>
<<< Using library: C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\source\ti\blestack\blelib\host
\cc26xx_gatt_pxxx.a >>>
<<< Using library: C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\source\ti\blestack\blelib\host
\cc26xx_l2cap_pxxx.a >>>
<<< Using library: C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\source\ti\blestack\blelib\host
\cc26xx_profiles_pxxx.a >>>
<<< Using library: C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\source\ti\blestack\blelib\host
\cc26xx_smp_pxxx.a >>>
<<< Using library: C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\source\ti\blestack\blelib\host
\cc26xx_sm_pxxx.a >>>
<<< Not modifying lib_linker.cmd. Stack configurations have not changed. >>>

<<< Using pxxx.symbols >>>
' '
'Building target: spp_ble_server_cc2640r2lp_stack_library.out'
'Invoking: ARM Linker'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" --
cmd_file="C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/config/build_components.opt" --
cmd_file="C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/config/factory_config.opt" --
cmd_file="D:/cc2640_wspc_sdk40/spp_ble_server_cc2640r2lp_stack_library/TOOLS/build_config.opt" -mv7M3
--code_state=16 -me -O4 --opt_for_speed=0 --define=CC26XX --define=CC26XX_R2 --
define=DeviceFamily_CC26X0R2 --define=EXT_HAL_ASSERT --define=FLASH_ROM_BUILD --define=ICALL_EVENTS --
define=ICALL_JT --define=ICALL_LITE --define=OSAL_CBTIMER_NUM_TASKS=1 --define=OSAL_SNV=1 --
define=POWER_SAVING --define=RF_SINGLEMODE --define=USE_ICALL -g --c99 --gcc --diag_warning=225 --
diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi -z -
m"spp_ble_server_cc2640r2lp_stack_library_FlashROM.map" --heap_size=0 --stack_size=256 -
i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-
arm_16.9.3.LTS/include" --reread_libs --define=CC26X0ROM=2 --define=OSAL_SNV=1 --diag_suppress=16002-D
--diag_suppress=10247-D --diag_suppress=10325-D --diag_suppress=10229-D --diag_suppress=16032-D --
diag_wrap=off --display_error_number --
xml_link_info="spp_ble_server_cc2640r2lp_stack_library_FlashROM_linkInfo.xml" --
entry_point=startup_entry --rom_model -o "spp_ble_server_cc2640r2lp_stack_library.out"
"./HAL/Common/hal_assert.obj" "./HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj"
"./HAL/Target/CC2650/Drivers/hal_rtc_wrapper.obj" "./HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj"
"./HAL/Target/CC2650/_common/mb_patch.obj" "./Host/gatt_uuid.obj" "./ICallBLE/ble_dispatch_JT.obj"
"./ICallBLE/ble_dispatch_lite.obj" "./ICallBLE/icall_lite_translation.obj" "./NPI/npi.obj"
"./OSAL/osal.obj" "./OSAL/osal_bufmgr.obj" "./OSAL/osal_cbtimer.obj" "./OSAL/osal_clock.obj"
"./OSAL/osal_memory_icall.obj" "./OSAL/osal_pwrmgr.obj" "./OSAL/osal_snv_wrapper.obj"
"./OSAL/osal_timers.obj" "./PROFILES/gap.obj" "./PROFILES/gapbondmgr.obj"
"./PROFILES/gattservapp_util.obj" "./PROFILES/sm_ecc.obj" "./ROM/common_rom_init.obj"
"./ROM/rom_init.obj" "./Startup/ble_user_config.obj" "./Startup/icall_startup.obj"
"./Startup/osal_icall_ble.obj" "./TOOLS/onboard.obj" -
l"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/bin/ccs/driverlib.lib"
-l"D:/cc2640_wspc_sdk40/spp_ble_server_cc2640r2lp_stack_library/FlashROM/lib_linker.cmd" -
l"D:/cc2640_wspc_sdk40/spp_ble_server_cc2640r2lp_stack_library/FlashROM/ble_r2.symbols" -
l"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/common/cc26xx/ccs/cc26xx_stack.cmd" -
llibc.a
<Linking>
'Finished building target: spp_ble_server_cc2640r2lp_stack_library.out'
' '
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armhex -order MS --memwidth=8 --romwidth=8 --intel
-o spp_ble_server_cc2640r2lp_stack_library_FlashROM.hex spp_ble_server_cc2640r2lp_stack_library.out
Translating to Intel format...
"spp_ble_server_cc2640r2lp_stack_library.out" EntrySection ==> EntrySection
"spp_ble_server_cc2640r2lp_stack_library.out" .text ==> .text
"spp_ble_server_cc2640r2lp_stack_library.out" .const ==> .const
"spp_ble_server_cc2640r2lp_stack_library.out" .rodata ==> .rodata
"spp_ble_server_cc2640r2lp_stack_library.out" .cinit ==> .cinit
"spp_ble_server_cc2640r2lp_stack_library.out" .snvSectors ==> .snvSectors
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/../../../tools/blestack/frontier/frontier
ccs
D:/cc2640_wspc_sdk40/spp_ble_server_cc2640r2lp_stack_library/FlashROM/spp_ble_server_cc2640r2lp_stack_l
ibrary_FlashROM_linkInfo.xml
D:/cc2640_wspc_sdk40/spp_ble_server_cc2640r2lp_stack_library/TOOLS/ccs_compiler_defines.bcfg
makefile:223: recipe for target 'post-build' failed
usage: Frontier [-h] [-b {0,1}] {iar,ccs} map cdef ldef
Frontier: error: too few arguments
gmake[3]: [post-build] Error 2 (ignored)
process_begin: CreateProcess(NULL,
D:/cc2640_wspc_sdk40/spp_ble_server_cc2640r2lp_stack_library/TOOLS/ccs_linker_defines.cmd, ...) failed.
make (e=2): The system cannot find the file specified.

gmake[3]: [post-build] Error 2 (ignored)
D:/cc2640_wspc_sdk40/spp_ble_server_cc2640r2lp_stack_library/TOOLS/ccs_linker_defines.cmd
makefile:223: recipe for target 'post-build' failed
' '

**** Build Finished ****

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Please help us to achieve the split image configuration with CCS?

thanks,

Santhananarayanan