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/LAUNCHXL-CC1352P: Running simple_peripheral_oad_offchip example code but getting build errors "ERROR: GEN_SRC_DIR must be set to the directory containing the generated sources".

Other Parts Discussed in Thread: CC1352P

Tool/software: Code Composer Studio

Hi,

I am using simplelink_cc13x2_26x2_sdk_3_40_00_02 with CCS  Version: 10.0.0.00010 and building example code under C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC1352P_2_LAUNCHXL\ble5stack\simple_peripheral_oad_offchip

But getting the below error, 

configuring simple_peripheral_oad_offchip_app.xem4f from package/cfg/simple_peripheral_oad_offchip_app_pem4f.cfg ...
generating custom ROM library makefile ...
Starting build of library sources ...
Build of libraries failed.
subdir_rules.mk:37: recipe for target 'build-1600842417-inproc' failed
C:/Users/praveen.venkatesh/work_space_10_8_20[BLE_OTA]/simple_peripheral_oad_offchip_app_CC13X2P_2_LAUNCHXL_tirtos_ccs/src/makefile.libs:22: *** "ERROR: GEN_SRC_DIR must be set to the directory containing the generated sources". Stop.
error: xdc.cfg.SourceDir: "C:/ti/ccs1000/xdctools_3_61_00_16_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

js: "C:/ti/ccs1000/xdctools_3_61_00_16_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package.mak:202: package/cfg/simple_peripheral_oad_offchip_app_pem4f.xdl] Error 1
gmake.exe: *** Deleting file 'package/cfg/simple_peripheral_oad_offchip_app_pem4f.xdl'
gmake.exe: *** [package/cfg/simple_peripheral_oad_offchip_app_pem4f.xdl] Deleting file 'package/cfg/simple_peripheral_oad_offchip_app_pem4f.h'
gmake.exe: *** [package/cfg/simple_peripheral_oad_offchip_app_pem4f.xdl] Deleting file 'package/cfg/simple_peripheral_oad_offchip_app_pem4f.c'
js: "C:/ti/ccs1000/xdctools_3_61_00_16_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-1600842417-inproc] Error 1

Also attaching the snapshot of makefile.lib under src folder

#
# ======== GEN_SRC_DIR =========
# The path to the sources generated during configuration
#
# This path must be either absolute or relative to the build directory.
#
# The absolute path to the generated source directory (at the time the
# sources were generated) is:
# C:\Users\praveen.venkatesh\work_space_10_8_20[BLE_OTA]\simple_peripheral_oad_offchip_app_CC13X2P_2_LAUNCHXL_tirtos_ccs\src
#
GEN_SRC_DIR ?= ../src

Regards,

Praveen T V