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.

TMS320F28388D: Using Flash API together with TI-RTOS

Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSBIOS

Hi,

I have TI-RTOS running on TMS320F28388D CM and now have the need to write data to flash. Problem is that the kernel is also executing from flash at the same time so I expect that I will need to stop the kernel's flash execution during any flash write or erase operations. So, is it possible to have an atomic (non interrupted) RTOS task that executes from ram, or maybe a sysbios API call that will pause kernel task switching or do I use the brute force approach and just turn off interrupts until the flash API call (erase or write) is completed? Or maybe this is just impossible. Your thoughts??

Thanks, Joel

  • Joel,

    Flash should not be accessed when the flash erase or program operation is in progress.  Hence, you may have to execute the other task from RAM.  

    I will assign this to our team member to comment further.

    Thanks and regards,
    Vamsi

  • Hi Joel,

    You can put your task functions and any kernel functions (see this thread) you expect to run during that time in RAM. You'd have to take care to make sure that you don't overlook any functions or make sure you block any tasks that aren't executing totally from RAM during that time. It may be a bit challenging, but it's possible.

    Whitney