Other Parts Discussed in Thread: HALCOGEN
Tool/software:
Hello!
I've being trying to run a project for a TMS570 microcontroller using the GCC toolchain and FreeRTOS. I've managed to get the project to compile and even to run a simple blinky program, but it fails in run-time when trying to do the same using tasks.
I've performed the compilation by downloading a big-endian version of the arm gcc compiler and setting it accordingly in CCS. I've followed the steps set by Jonathon S. in the arm forum: https://community.arm.com/support-forums/f/compilers-and-libraries-forum/49616/latest-arm-gcc-compiler-for-big-endian-processors (also explained in https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1020406/tms570ls1224-how-to-build-and-link-workable-code-for-a-big-endian-system-such-as-a-hercules-tms570-mcu-using-a-gcc-toolchain/3771079?tisearch=e2e-sitesearch&keymatch=tms570%20gcc#).
The first problem I've encountered is with the os_mpu_wrappers.c prvRaisePrivilege() function, as the ams( " swi 1 ") instruction (added when selecting the GCC Tools in HALCoGen) starts an infinite loop of assembly instructions.
I attach the project I have been working with.
Thank you in advance!