This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA2PXEVM: Custom SBL assembler functions error

Part Number: TDA2PXEVM

I am trying to create a custom version of SBL for tda2px. For that I decided to use cmake. I used sbl_tda2xx_main.c from pdk sbl as a starting point with some tweaks in the end. I didn't want to build all libraries from pdk separately, so I included individual files that included missing symbols for main.c file to build. I used the same macros and compiler directives as in pdk. 

The project builds successfully and I even managed to start it on a board, but after ANY call of a function in asm file the program immediately crashes. In my case it crashes on ARM_CCNT_Enable function, if I comment it out, it will crash on some other asm file function. I tried to erase all commands from this functions (except return) but it would still crash. I did not make any changes up to this point, what could be the wrong?

Here is a link for my project

It is a windows self contained project(only need to change path to compiler in toolchain.cmake)

I used Visual Studio 2019 CMake project as a template.

I do not know what else to check and what could cause such behavior