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.

F29H850TU: Flash Sector Size

Part Number: F29H850TU


Tool/software:

HI , 

I am running Flash API   example from the f29h85x-sdk  ,specifically  the example  flash_mode0_128. And i am  trying  to understand

the erase sector function Fapi_issueAsyncCommandWithAddress.

what is the sector  size ?  it is written  2KB  , but i think  it is 4KB

I changed  the example code such that it will erase  two sectors  , after  the code finishes erasing the first sector the variable u32CurrentAddress  is incremented by 0x1000   and will run additional   sector erase.  

it seems to work only  if i increment it by 4K  (0x1000) , it fails with 2K (0x800) increment.
I also  notice the use  of the function Fapi_setupBankSectorEnable   before  each erase  and program in order to mask  protection , can i just call it once   if i am planning to erase  multiple  sectors one after another  ?    
Do you have  an example  that erase multiple sectors ?
  • Hi,

    F29h85x device has an interleaved bank structure, each bank has a sector size of 0x800. When operating on an interleaved bank, Fapi_issueAsyncCommandWithAddress() & Fapi_setupBankSectorEnable() functions must be called twice (once with each iterator value) to erase both underlying banks. The 128-bit aligned start address stays the same during these two calls. Flash API internally translates the start address when an iterator value is 2. In order to erase multiple sectors increment sector size by 0x1000.

    For more details refer Flash API user guide .

    Regards,

    Rajeshwary