Other Parts Discussed in Thread: CC1352P7, TLV320AIC3254, SYSCONFIG
Tool/software:
Hi,
I want to migrate a "audiohal_packetizer_echo_CC1352P1_LAUNCHXL_tirtos_ccs" project @ CC1352P1 unning in TI-RTOS
to a "audiohal_packetizer_echo_LP_CC1352P7_1_tirtos7_gcc" @ CC1352P7-1 running in TI-RTOS7.
After overwriting audiohal_packetizer_echo_CC1352P1_LAUNCHXL_tirtos_ccs in "i2secho_CC1352P1_LAUNCHXL_tirtos7_gcc" example,
modifying audiohal_packetizer_echo.c and main_tirtos.c, and
adding COM_TI_SIMPLELINK_AUDIO_PLUGIN_INSTALL_DIR to C/C++ Build>Environment, the following errors occurred when building.
>>>> console messages >>>>
**** Build of configuration Debug for project audiohal_packetizer_echo_LP_CC1352P7_1_tirtos7_gcc ****
"C:\\ti\\ccs1281\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
Building file: "../audiohal_packetizer_echo.c"
Invoking: GNU Compiler
"C:/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -I"C:/ti/workspace_v12/audiohal_packetizer_echo_LP_CC1352P7_1_tirtos7_gcc" -I"C:/ti/workspace_v12/audiohal_packetizer_echo_LP_CC1352P7_1_tirtos7_gcc/Debug" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_7_41_00_17/source" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_7_41_00_17/kernel/tirtos7/packages" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_7_41_00_17/source/ti/posix/gcc" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -I"C:/ti/simplelink_audio_plugin_3_30_00_06/source/ti/audio/hal" -I"C:/ti/simplelink_audio_plugin_3_30_00_06/source" -I"C:/ti/simplelink_audio_plugin_3_30_00_06/source/ti/audio/hal/codec" -I"C:/ti/simplelink_audio_plugin_3_30_00_06/source/ti/audio/stream" -O3 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"audiohal_packetizer_echo.d_raw" -MT"audiohal_packetizer_echo.o" -I"C:/ti/workspace_v12/audiohal_packetizer_echo_LP_CC1352P7_1_tirtos7_gcc/Debug/syscfg" -std=c99 @"syscfg/ti_utils_build_compiler.opt" -o"audiohal_packetizer_echo.o" "../audiohal_packetizer_echo.c"
subdir_rules.mk:9: recipe for target 'audiohal_packetizer_echo.o' failed
gmake: *** No rule to make target 'C:/ti/ccs1281/ccs/eclipse/COM_TI_SIMPLELINK_AUDIO_PLUGIN_INSTALL_DIR/source/ti/audio/hal/AudioHAL.c', needed by 'AudioHAL/AudioHAL.o'.
gmake: *** No rule to make target 'C:/ti/ccs1281/ccs/eclipse/COM_TI_SIMPLELINK_AUDIO_PLUGIN_INSTALL_DIR/source/ti/audio/hal/codec/AudioHALCodec.c', needed by 'AudioHAL/AudioHALCodec.o'.
gmake: *** No rule to make target 'C:/ti/ccs1281/ccs/eclipse/COM_TI_SIMPLELINK_AUDIO_PLUGIN_INSTALL_DIR/source/ti/audio/hal/codec/AudioHAL_I2C.c', needed by 'AudioHAL/AudioHAL_I2C.o'.
gmake: *** No rule to make target 'C:/ti/ccs1281/ccs/eclipse/COM_TI_SIMPLELINK_AUDIO_PLUGIN_INSTALL_DIR/source/ti/audio/hal/codec/MCLKCC26XX.c', needed by 'AudioHAL/MCLKCC26XX.o'.
gmake: *** No rule to make target 'C:/ti/ccs1281/ccs/eclipse/COM_TI_SIMPLELINK_AUDIO_PLUGIN_INSTALL_DIR/source/ti/audio/hal/codec/TLV320AIC3254.c', needed by 'AudioHAL/TLV320AIC3254.o'.
gmake: *** No rule to make target 'C:/ti/ccs1281/ccs/eclipse/COM_TI_SIMPLELINK_AUDIO_PLUGIN_INSTALL_DIR/source/ti/audio/stream/Packetizer.c', needed by 'AudioStream/Packetizer.o'.
../audiohal_packetizer_echo.c:79:1: warning: variably modified 'bitStream' at file scope
79 | uint8_t bitStream[PACKETIZER_HEADER_SIZE + ADPCM_ENC_FRAME_SIZE(ADPCM_PCM_FRAME_SIZE(SAMPLE_RATE))];
| ^~~~~~~
../audiohal_packetizer_echo.c: In function 'mainThread':
../audiohal_packetizer_echo.c:190:34: error: 'Board_AUDIOHAL_CODEC' undeclared (first use in this function)
190 | tlv320Handle = AudioHAL_open(Board_AUDIOHAL_CODEC, &audioHalParams);
| ^~~~~~~~~~~~~~~~~~~~
../audiohal_packetizer_echo.c:190:34: note: each undeclared identifier is reported only once for each function it appears in
gmake: *** [audiohal_packetizer_echo.o] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
<<<< console messages <<<<
In the case of "gmake: *** No rule to make target", automatically-generated files(*.mk) are generated wrong.
I would greatly appreciate it if you could tell me how to solve above problems.
Thank you very much.
Best regards,
JM KIM