Part Number: MSPM0G5187
Hi,
during compilation of the wakeword_detection example I got following errors:
**** Build of configuration 'Debug' for project 'wakeword_detection_ai_npu_LP_MSPM0G5187_nortos_ticlang' ****
"C:\\ti\\ccs2100\\ccs\\utils\\bin\\gmake" -k -j 14 all -r -O
Arm Compiler - building file: "../wakeword_detection_ai_npu.c"
"C:/ti/ccs2100/ccs/tools/compiler/ti-cgt-armllvm_5.1.1.LTS/bin/tiarmclang.exe" -c @"device.opt" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -I"C:/Users/a0406234/workspace_ccstheia/wakeword_detection_ai_npu_LP_MSPM0G5187_nortos_ticlang" -I"C:/Users/a0406234/workspace_ccstheia/wakeword_detection_ai_npu_LP_MSPM0G5187_nortos_ticlang/Debug" -I"C:/ti/mspm0_sdk_2_11_00_07/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_11_00_07/source/third_party/CMSIS/DSP/Include" -I"C:/ti/mspm0_sdk_2_11_00_07/source/ti/edgeAI/npu" -I"C:/ti/mspm0_sdk_2_11_00_07/source" -DARM_MATH_CM0 -g -Wall -MMD -MP -MF"wakeword_detection_ai_npu.d_raw" -MT"wakeword_detection_ai_npu.o" @"./device.opt" -o"wakeword_detection_ai_npu.o" "../wakeword_detection_ai_npu.c"
In file included from ../wakeword_detection_ai_npu.c:56:
[0]..\model/tvmgen_default.h:69:20: warning: 'extern' variable has an initializer [-Wextern-initializer]
69 | extern const float tvmgen_default_bias_data[] __attribute__((weak)) = {2.5188484};
| ^
[1]..\model/tvmgen_default.h:70:22: warning: 'extern' variable has an initializer [-Wextern-initializer]
70 | extern const int32_t tvmgen_default_scale_data[] __attribute__((weak)) = {6};
| ^
[2]..\model/tvmgen_default.h:71:22: warning: 'extern' variable has an initializer [-Wextern-initializer]
71 | extern const int32_t tvmgen_default_shift_data[] __attribute__((weak)) = {0};
| ^
[3]../wakeword_detection_ai_npu.c:74:24: warning: suggest braces around initialization of subobject [-Wmissing-braces]
74 | int8_t output[1][2] = {0, 0};
| ^~~~
| { }
[4]../wakeword_detection_ai_npu.c:185:31: error: incompatible pointer types passing 'int8_t[1][2]' (aka 'signed char[1][2]') to parameter of type 'int8_t *' (aka 'signed char *') [-Wincompatible-pointer-types]
185 | post_inference_ww(output);
| ^~~~~~
[5]..\post_inference.h:37:33: note: passing argument to parameter 'NN_output' here
37 | void post_inference_ww(int8_t * NN_output);
| ^
4 warnings and 1 error generated.
[6]gmake: Target 'all' not remade because of errors.
**** Build finished ****
Regards, Holger