| Electronic Components Datasheet Search |
|
UM1627 Datasheet(PDF) 11 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1627 Datasheet(HTML) 11 Page - STMicroelectronics |
|
11 / 38 page ![]() DocID024497 Rev 2 11/38 UM1627 API specification Return values Troubleshooting Comments When shadowFlag is set to FALSE, the ‘FlashErase()’ function erases the blocks in the main array. It is capable of erasing any combination of blocks in the low, mid and high address spaces in one operation. If shadowFlag is TRUE, this function erases the shadow row. The inputs lowEnabledBlocks, midEnabledBlocks and highEnabledBlocks are bit-mapped arguments that are used to select the blocks to be erased in the Low/Mid/High address spaces of main array. The selection of the blocks of the main array is determined by setting/clearing the corresponding bit in lowEnabledBlocks, midEnabledBlocks or highEnabledBlocks. The bit allocations for blocks in one address space are: bit 0 is assigned to block 0, bit 1 to block 1, etc. The following diagrams give an example of the formats of lowEnabledBlocks, midEnabledBlocks and highEnabledBlocks for the C90LC module. Refer to Appendix C: Documentation references for the valid bits configuration depending from the specific microcontroller Flash module sectors. Table 8. Return values for FlashErase() Type Description Possible values UINT32 Successful completion or error value. C90FL_OK C90FL_ERROR_BUSY C90FL_ERROR_EGOOD Table 9. Troubleshooting for FlashErase() Error codes Possible causes Solution C90FL_ERROR_BUSY New erase operation cannot be performed because there is program/erase sequence in progress on the Flash module. Wait until all previous program/erase operations on the Flash module finish. Possible cases that erase cannot start are: – erase in progress (FLASH_MCR- ERS is high); – program in progress (FLASH_MCR- PGM is high); C90FL_ERROR_ EGOOD Erase operation failed. Check if the C90LC is available and high voltage is applied to C90LC. Then try to do the erase operation again. Table 10. Bit allocation for blocks in low address space MSB LSB bit 31 … bit 10 bit 9 bit 8 … bit 1 bit 0 reserved … reserved block 9 block 8 … block 1 block 0 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |