Fault at runtime

Hello,
The error I get is when linking the code to the firmware.elf.


I’m using PlatformIO, and compiling with gcc-arm-noneeabi 9.2.1-1.1.1. I added uTensor as a library.
The platform.ini includes:

[env:nucleo_l496zg]
platform = ststm32
board = nucleo_l496zg
framework = mbed
lib_ldf_mode = deep
build_unflags = -std=gnu++98
build_flags =
    -I lib/uTensor/core
    -I lib/uTensor/loaders
    -I lib/uTensor/util
    -I lib/uTensor/
    -I lib/uTensor/ops
    -I lib/uTensor/allocators
    -I lib/uTensor/contexts
    -I lib/uTensor/errorHandlers
    -I lib/uTensor/tensors
    -I lib/models
    -I lib/models/model
    -I lib/constants
    -I lib/constants/model
    -I lib/
    -std=c++14
    -D TARGET_MBED

lib_extra_dirs =  
    lib/uTensor/core
    lib/uTensor/loaders
    lib/uTensor/util
    lib/uTensor/
    lib/uTensor/ops
    lib/uTensor/allocators
    lib/uTensor/contexts
    lib/uTensor/errorHandlers
    lib/uTensor/tensors
src_filter = -<lib/uTensor/ops/optimized>
monitor_speed = 9600
debug_tool = stlink 
upload_protocol= stlink

Thanks in advance!

I think you’re excluding all of your other source files here too. Try with

src_filter = +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/> -<lib/uTensor/ops/optimized>

?

Hi,
When I add this src_filter I get all the errors from <lib/uTensor/ops/optimized> again.
So is there any other way I could fix this?

Thanks

Have you got a proper library.json in the lib/uTensor folder? You can use "exclude" : [ <array>]" and srcFilter directives as documented to exclude files from build.

Or, remove the files for the easy path.

No I don’t have a library.json for the uTensor library. I thought I could use the include paths to add it to the directory.

Also, I can’t remove the whole folder.