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.

TMS320F28379D: FAPI: write on the same address multiple times without erase

Part Number: TMS320F28379D


Hi,

Given the next sequence:

1. Seize FLASH pump semaphore.

2. EALLOW.

3. Fapi_initializeAPI.

4. Fapi_setActiveFlashBank.

5. Read from FLASH.

6. Erase FLASH sector.

7. Write something in FLASH sector.

8. while (Fapi_checkFsmForReady() == Fapi_Status_FsmBusy).

9. if (0 == Fapi_getFsmStatus())

10. Verify it.

11. EDIS

12. Release FLASH pump semaphore.

It works with no problem. But if I don't execute step 6, then the second time I execute the whole sequence I get an error in step 9, specifically API Fapi_getFsmStatus() returns 0x30 intead of 0. I don't know what it means.

Is it possible to rewrite on an already written address without erasing the sector? How?

Best regards,

Adria