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.

Flash API Fapi_enableMainBankSectors() parameter is 32-Bit or 16-Bit?

Hello Support,

Following is a snapshot from spnu501d.pdf which is confusing.

What is the parameter size of Fapi_enableMainBankSectors() in Version 2.00 of Flash API? Is it a 32-Bit or 16-Bit Number?

Thank you.
Regards
Pashan

 

  • Pashan,

    It is uint16_t.  Text should read:

    Description
    This function sets up the sectors in the non-EEPROM banks that are available for erase and programming operations. This function must be called with the bank intended for the erase or program operation as the active bank. Additionally, the function must be called once before performing program and sector erase operations and always before a bank erase operation. Each bit refers to a single sector where Sector 0 is bit 0 to Sector 15 is bit 15 in u16SectorEnables.

    This will be corrected in the next revision of the document.