Part Number: CC2340R5
Other Parts Discussed in Thread: SYSCONFIG
Hi TI members,
Below is my building environment:
|
Code Composer Studio |
12.3.0.00005 |
|
SimpleLink SDK |
7.10.00.35 |
|
XDCtools |
3.62.1.16_core |
We are working on merging data_stream and host_test and use a GPIO value to decide whether to enter host_test or not.
But we encountered some issues:
In host_test_LP_EM_CC2340R5_freertos_ticlang/Release/syscfg/ti_drivers_config.h, we could see these parts:
extern const uint_least8_t CONFIG_GPIO_BTN1_CONST;#define CONFIG_GPIO_BTN1 8
extern const uint_least8_t CONFIG_GPIO_BTN2_CONST;#define CONFIG_GPIO_BTN2 19
But in data_stream_LP_EM_CC2340R5_freertos_ticlang, we didn't define any GPIO for button since we are using 4x4.
This led to errors as below:
gmake: *** [NPI/npi_task.o] Error 1Building file: "C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c"Invoking: Arm Compiler"C:/ti/ccs1230/ccs/tools/compiler/ti-cgt-armllvm_2.1.3.LTS/bin/tiarmclang.exe" -c @"X:/Project/data_stream_lp_em_cc2340r5_freertos_ticlang/Debug/syscfg/ti_ble_app_config.opt" @"X:/Project/data_stream_lp_em_cc2340r5_freertos_ticlang/Debug/syscfg/ti_build_config.opt" @"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/config/build_components.opt" @"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/config/factory_config.opt" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -Oz -I"X:/Project/data_stream_lp_em_cc2340r5_freertos_ticlang" -I"X:/Project/data_stream_lp_em_cc2340r5_freertos_ticlang/Debug" -I"X:/Project/data_stream_lp_em_cc2340r5_freertos_ticlang/app" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/controller/cc26xx/inc" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/inc" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/rom" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/common/cc26xx" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/icall/inc" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/hal/src/target/_common" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/common/cc26xx/npi/stack" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/hal/src/inc" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/heapmgr" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/profiles/dev_info" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/profiles/simple_profile" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/icall/src/inc" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/osal/src/inc" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/services/src/saddr" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/services/src/sdata" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/common/nv" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/common/cc26xx" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/icall/src" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/devices/cc23x0r5" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/devices/cc23x0r5/settings" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/drivers/rcl" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/boards/cc23x0r5" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/posix/ticlang" -I"C:/ti/FreeRTOSv202104.00/FreeRTOS/Source/include" -I"C:/ti/FreeRTOSv202104.00/FreeRTOS/Source/portable/GCC/ARM_CM0" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/kernel/freertos" -I"C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc" -Dti_log_Log_ENABLE -DICALL_NO_APP_EVENTS -DCC23X0 -DDeviceFamily_CC23X0R5 -DNVOCMP_NWSAMEITEM=1 -DFLASH_ONLY_BUILD -DUSE_RCL -DFREERTOS -DNVOCMP_POSIX_MUTEX -gdwarf-3 -ffunction-sections -MMD -MP -MF"NPI/Transport/npi_tl.d_raw" -MT"NPI/Transport/npi_tl.o" -I"X:/Project/data_stream_lp_em_cc2340r5_freertos_ticlang/Debug/syscfg" -std=c99 @"syscfg/ti_build_config.opt" @"syscfg/ti_ble_app_config.opt" @"syscfg/ti_utils_build_compiler.opt" -o"NPI/Transport/npi_tl.o" "C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c"NPI/Transport/subdir_rules.mk:9: recipe for target 'NPI/Transport/npi_tl.o' failedC:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:185:5: error: use of undeclared identifier 'CONFIG_GPIO_BTN2'SRDY_DISABLE();^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:92:54: note: expanded from macro 'SRDY_DISABLE'#define SRDY_DISABLE() GPIO_write(SRDY_PIN, 1) /* RTS high */^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:89:22: note: expanded from macro 'SRDY_PIN'#define SRDY_PIN CONFIG_GPIO_BTN2^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:188:20: error: use of undeclared identifier 'CONFIG_GPIO_BTN1'GPIO_setConfig(MRDY_PIN, GPIO_CFG_INPUT_INTERNAL | GPIO_CFG_IN_INT_BOTH_EDGES | GPIO_CFG_PULL_UP_INTERNAL);^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:88:22: note: expanded from macro 'MRDY_PIN'#define MRDY_PIN CONFIG_GPIO_BTN1^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:189:20: error: use of undeclared identifier 'CONFIG_GPIO_BTN2'GPIO_setConfig(SRDY_PIN, GPIO_CFG_OUTPUT_INTERNAL | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_HIGH);^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:89:22: note: expanded from macro 'SRDY_PIN'#define SRDY_PIN CONFIG_GPIO_BTN2^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:191:22: error: use of undeclared identifier 'CONFIG_GPIO_BTN1'GPIO_setCallback(MRDY_PIN, NPITL_MRDYPinHwiFxn);^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:88:22: note: expanded from macro 'MRDY_PIN'#define MRDY_PIN CONFIG_GPIO_BTN1^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:193:20: error: use of undeclared identifier 'CONFIG_GPIO_BTN1'GPIO_enableInt(MRDY_PIN);^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:88:22: note: expanded from macro 'MRDY_PIN'#define MRDY_PIN CONFIG_GPIO_BTN1^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:194:28: error: use of undeclared identifier 'CONFIG_GPIO_BTN1'mrdy_state = GPIO_read(MRDY_PIN);^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:88:22: note: expanded from macro 'MRDY_PIN'#define MRDY_PIN CONFIG_GPIO_BTN1^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:210:23: error: use of undeclared identifier 'CONFIG_GPIO_BTN2'return !GPIO_read(SRDY_PIN);^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:89:22: note: expanded from macro 'SRDY_PIN'#define SRDY_PIN CONFIG_GPIO_BTN2^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:279:20: error: use of undeclared identifier 'CONFIG_GPIO_BTN1'if ( GPIO_read(MRDY_PIN) == 0 ||^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:88:22: note: expanded from macro 'MRDY_PIN'#define MRDY_PIN CONFIG_GPIO_BTN1^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:286:9: error: use of undeclared identifier 'CONFIG_GPIO_BTN2'SRDY_ENABLE();^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:91:54: note: expanded from macro 'SRDY_ENABLE'#define SRDY_ENABLE() GPIO_write(SRDY_PIN, 0) /* RTS low */^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:89:22: note: expanded from macro 'SRDY_PIN'#define SRDY_PIN CONFIG_GPIO_BTN2^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:328:33: error: use of undeclared identifier 'CONFIG_GPIO_BTN1'if (mrdy_state != GPIO_read(MRDY_PIN))^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:88:22: note: expanded from macro 'MRDY_PIN'#define MRDY_PIN CONFIG_GPIO_BTN1^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:330:32: error: use of undeclared identifier 'CONFIG_GPIO_BTN1'mrdy_state = GPIO_read(MRDY_PIN);^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:88:22: note: expanded from macro 'MRDY_PIN'#define MRDY_PIN CONFIG_GPIO_BTN1^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:387:28: error: use of undeclared identifier 'CONFIG_GPIO_BTN1'mrdy_state = GPIO_read(MRDY_PIN);^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:88:22: note: expanded from macro 'MRDY_PIN'#define MRDY_PIN CONFIG_GPIO_BTN1^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:390:5: error: use of undeclared identifier 'CONFIG_GPIO_BTN2'SRDY_DISABLE();^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:92:54: note: expanded from macro 'SRDY_DISABLE'#define SRDY_DISABLE() GPIO_write(SRDY_PIN, 1) /* RTS high */^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:89:22: note: expanded from macro 'SRDY_PIN'#define SRDY_PIN CONFIG_GPIO_BTN2^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/npi_tl.c:463:5: error: use of undeclared identifier 'CONFIG_GPIO_BTN2'SRDY_ENABLE();^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:91:54: note: expanded from macro 'SRDY_ENABLE'#define SRDY_ENABLE() GPIO_write(SRDY_PIN, 0) /* RTS low */^C:/ti/simplelink_lowpower_f3_sdk_7_10_00_35/source/ti/ble5stack_flash/npi/src/inc/npi_config.h:89:22: note: expanded from macro 'SRDY_PIN'#define SRDY_PIN CONFIG_GPIO_BTN2
Please help to suggest how we should do to merge the two projects into one.
Thanks.
BR,
YuWen















