Part Number: TMS570LS1227
Hi All,
I am using flash Api V2.01.0 of TI for TMS570LS1227. I am sharing with you my codes snip that fall the infinite loop. I saw two different mistake at code. When I push directly “Play” button at Debug Mode, code is run into Fapi_BlockErase function(at F_Api_2.PNG) and code goes to infinite loop at line 201(Picture BlockEraseFuntion) but when i paused the debug, it fall prefetch abort page. However if I use it with “StepOver” button step by step I can pass the BlockErase function and code can erease the flash banks after that it run into infinite loop at line 439 Fapi_Issue_ProgrammingCommand function (Picture F_Api_1) at debug mode. Then I stopped the code and saw my two byte data on flash memory at debug mode.
Also I am using three different disable Interrupt functions ( _disable_interrupt_() / _disable_IRQ_interrupt_() / _disable_FIQ_interrupt_() ) before go in to fapi functions.
Can you offer different things about this and do you have flash programming code example for TMS570LS1227 ?