Other Parts Discussed in Thread: HALCOGEN
Hello! My name is Carlos
I wanted to ask for help with this problem.
I'm needing to use the TI FEE drivers on my project. I'm using freeRTOS on the TMS570LS3137 microcontroller.
Basically, the problem I'm having is that the program gets stucked in the "TI_Fee_Init" function. This only happens to me in FreeRTOS. It works OK withtout OS.
I based all my work on the example "example_ti_fee_write_read.c" for my specific device, located in the HalCoGen examples folder.
I've configured HalCoGen with the FEE driver enabled, installed F021 flash API and linked the file F021_API_CortexR4_BE_V3D16.lib to my CSS project. I've also added the include path of F021 API to the project include path.
When I debug in real time, the program gets stucked in the "TI_Fee_Init" function. I can use the button "Step Into" of the debug interface to enter inside the TI_Fee_Init function, to see where is the problem. When I enter, the program gets stucked in the following line:
https://imagizer.imageshack.com/img923/4986/ZuCS4g.png
(apologize for the link of the image. The image attach did not work)
As I commented earlier, that funcion (TI_Fee_Init) does not get stucked when running no OS. I'm running my freeRTOS in cooperative mode (not with preemtion) so the task of flash programming has all the time it needs.
Thanks a lot for the help in advance!