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.

TMS570LS3137: Problem initializing flash API V2.01.01

Part Number: TMS570LS3137

Hello,

We have been using an old flash API V1.00 for our bootloader for years and we recently decided to update the API to version V2.01.01.

We are having problems when calling function Fapi_initializeFlashBanks( 180 ), it returns status Fapi_Error_InvalidHclkValue and if we ignore this error, erasing operation fail.

The frequency we use is 180MHz with RWAIT set to 3 and ASWSTEN set to 1.

If we use a frequency of 140MHz with RWAIT set to 2 and ASWSTEN set to 0 it works intermittently.

If we use a frequency of 100MHz with RWAIT set to 2 and ASWSTEN set to 0 it works all the time.

Is there a maximum frequency to use the API? Should I use different wait state configuration?

Thanks,

Martin