Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

F021 Flash API

$
0
0

I am trying to flash code using F021 Flash API. I was successful to do so with F035 API for TMS570LS2026 processor, but TMS570LS3137 with F021 API the function FlashProgram() returns Fapi_Error_AsyncIncorrectDataBufferLength.

My flashing program is located in RAM after it was copied there from flash and after the RAM and the flash were swapped. The Erase of the needed sectors works correctly, but the programming fails.

The following parameters are passed to FlashProgram():

pu32StartAddress  = 0x08010000

pu8DataBuffer = 0x00018000

u8DataBufferSizeInBytes = 30528

pu8EccBuffer - NULL


u8EccBufferSizeInBytes = 0

oMode  = Fapi_AutoEccGeneration

The FlashProgram() is located at 0x00007E34

Can someone tell me if I'm doing anything wrong, or maybe the F021 API has an issue programming the fash when RAM and flash are swapped?

Thanks,

Alex


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>