MSPM0G5187: pir_detection_ai build error

Part Number: MSPM0G5187
Other Parts Discussed in Thread: TIDA-010997

Hi team,

My customer is evaluating PIR detection with TIDA-010997 + M0G5187. While buiding FW with "pir_detection_ai" or "pir_detection_ai_npu" example, it happen below error. Please help clarify. Thank you.

CCS: Version: 21.0.0.14__1.12.0 

M0 SDK: mspm0_sdk_2_11_00_07

Complete Build log:

build_error.txt

Build error:

[8]../pir_detection_ai.c:139:36: error: incompatible pointer types passing 'int8_t (*)[20]' (aka 'signed char (*)[20]') to parameter of type 'int8_t *' (aka 'signed char *') [-Wincompatible-pointer-types]
  139 |                 FE_process(window, &if_map_int8[0][0][i/SLIDING_WINDOW_SIZE], 0);
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[9]C:/ti/mspm0_sdk_2_11_00_07/source/ti/edgeAI/feature_extract\feature_extract.h:78:42: note: passing argument to parameter 'extractedFeatures' here

 

  • Hello Jerry, 

    Does customer do any modification to the demo? I have tested on my side, I import the "pir_detection_ai" example from SDK into CCS directly and build it. There is no build error.

    BR,

    Janz Bai

  • Hi team,

    I find the problem is as below.


    int8_t if_map_int8[1][1][25][25]; ==> structure of "if_map_int8" has 4 index.
    However, inside below code, it only give 3 index to "if_map_int8".
    FE_process(window, &if_map_int8[0][0][i/SLIDING_WINDOW_SIZE], 0);

    Therefore, it happens build error.

    [8]../pir_detection_ai_npu.c:157:36: error: incompatible pointer types passing 'int8_t (*)[25]' (aka 'signed char (*)[25]') to parameter of type 'int8_t *' (aka 'signed char *') [-Wincompatible-pointer-types]
    157 | FE_process(window, &(if_map_int8[0][0][i/SLIDING_WINDOW_SIZE]), 0);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Hi team,

    new SDK 2.12 fix the problem. Thank you.