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.

HalCoGen Example code lock my TMS570LC4357

Other Parts Discussed in Thread: HALCOGEN, TMS570LC4357

Hi TI,


I am having an issue with HalCoGen Free-RTOS Code.

I am using TMS570LC4357 microcontroller. I create Free-RTOS project using HalCoGen, and in CCS I tried to create two tasks. One is of 1 second and another is 2 second task.

First Task will print "Hello\n" using SCI and Second Task will print "Hello World\n". That's all. Very simple. And my TMS570 worked well. (This is first burn)


And after that I changed my First task to Print "I'm First Task\n" and Second Task to Print "I am second Task\n".

And I tried to burn this code to TMS570. (This is Second burn). This time also it worked well.

But the third time I tried to burn the same code to TMS570LC4357 It show error. I cannot reburn my IC further.

I have given that code as a zip file below.

4863.TMS570LC4357FreeRTOS.zip

Please anybody go through this code and help me why I can not re-write my IC and how to do that. (May be third or fourth try you can reproduce the problem I felt.)

Please anybody help me to save my IC.

Thanks in advance.

Regards,

Karthikeyan.K

  • I did some experiment with your project. if the call to vTaskStartScheduler() is comment out, I can reprogram the device without any issue. This observation indicates that FeeRTOS did something which causes Flash programming to fail. CPU is locked to data abort in Flash programming for some reason. Since CCS still be able to connect to CPU, you can try the following steps.

    (1) Connect to target in CCS.
    (2)From the "run" menu, do system reset twice. i think it a CCS issue that the PC is reset to address 0x0 after second system reset.
    (3) Select "on-chip flash" from the "tools" menu and erase the flash.
    (4) You should be able to reprogram now.

    Thanks and regards,

    Zhaohong