I am trying to use the CMSIS DPS library provided by TI to do some matrix operations on the RM48L952PGE processor. I included the "Include" folder of the CMSIS library on the compiler include search path and added the ti_math_Cortex_R4_lspf.lib as a library file on the linker. The project was made using HalCoGen and CCS.
The problem is that I am not getting the right output from the matrix operation functions from the library. When I check the program on debug mode, I notice a very strage behaviour on arm_mat_add_f32 and arm_mat_mult_f32 function calls. When I click on the 'step into' button the program jumps to random lines inside that function. I keep clicking it and It keeps doing that until it jumps to the 'return' line and exits the function.
Other functions work (arm_mat_init_f32) and there is no problem when I use other libraries.
How can I fix this problem?