Skip to content

src/third_party/cmsis_nn/Include/arm_nnsupportfunctions.h:847: undefined reference to `__sxtb16 #2331

@Gostas

Description

@Gostas

Hi,

I am building the tflite-micro-arduino-examples for the Nano 33 BLE. I have updated the source files to use the latest version from this repo and also updated to the examples (fork with updated scripts and examples https://github.com/Gostas/tflite-micro-arduino-examples).

I would get the following error for 'hello_world', which I fixed by substituting SXTB16 for __sxtb16:

/tmp/build/third_party/cmsis_nn/Source/NNSupportFunctions/objs.a(arm_nn_vec_mat_mult_t_s4.c.o): In function `read_and_pad_s4':
/home/tflite/src/third_party/cmsis_nn/Include/arm_nnsupportfunctions.h:847: undefined reference to `__sxtb16'
/home/tflite/src/third_party/cmsis_nn/Include/arm_nnsupportfunctions.h:848: undefined reference to `__sxtb16'

/tmp/build/third_party/cmsis_nn/Source/NNSupportFunctions/objs.a(arm_nn_vec_mat_mult_t_s4.c.o):
/home/tflite/src/third_party/cmsis_nn/Include/arm_nnsupportfunctions.h:848: more undefined references to `__sxtb16' follow
collect2: error: ld returned 1 exit status

This example would pass compilation, but in the next one, 'micro_speech', I get

/tmp/build/third_party/cmsis_nn/Source/ConvolutionFunctions/objs.a(arm_depthwise_conv_3x3_s8.c.o): In function `arm_depthwise_conv_3x3_s8':
/home/tflite/src/third_party/cmsis_nn/Source/ConvolutionFunctions/arm_depthwise_conv_3x3_s8.c:137: undefined reference to `__smlabb'
/home/tflite/src/third_party/cmsis_nn/Source/ConvolutionFunctions/arm_depthwise_conv_3x3_s8.c:139: undefined reference to `__smlatt'
(more occurences)
collect2: error: ld returned 1 exit status

Am I missing any files? Or is the Mbed CMSIS library missing some files?

I am using the arduino:mbed_nano 4.0.10 core and compiling with -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -mthumb

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions