Contains all functions support for fmc firmware library on A31G12x. More...
Go to the source code of this file.
Functions | |
void | HAL_FMC_FlashEntry (void) |
Entry of Flash Memory Control. More... | |
void | HAL_FMC_FlashExit (void) |
Exit of Flash Memory Control. More... | |
uint32_t | HAL_FMC_FlashFunction (uint32_t u32FncSel, uint32_t u32Addr, uint32_t *u32Buf) |
Flash Page Erase/Write and Bulk(Chip) Erase. More... | |
uint32_t | HAL_FMC_BulkErase (uint32_t u32UserId) |
Flash Bulk(Chip) Erase Function. More... | |
uint32_t | HAL_FMC_PageErase (uint32_t u32UserId, uint32_t u32Addr) |
Flash Page Erase Function. More... | |
uint32_t | HAL_FMC_PageWrite (uint32_t u32UserId, uint32_t u32Addr, uint32_t *u32Buf) |
Flash Page Write Function. More... | |
Variables | |
uint32_t | flash_id1_reg |
uint32_t | flash_id2_reg |
uint32_t | flash_addr_code0 |
uint32_t | flash_addr_code1 |
Contains all functions support for fmc firmware library on A31G12x.
Copyright(C) 2019, ABOV Semiconductor All rights reserved.
ABOV Disclaimer
IMPORTANT NOTICE ? PLEASE READ CAREFULLY ABOV Semiconductor ("ABOV") reserves the right to make changes, corrections, enhancements, modifications, and improvements to ABOV products and/or to this document at any time without notice. ABOV does not give warranties as to the accuracy or completeness of the information included herein. Purchasers should obtain the latest relevant information of ABOV products before placing orders. Purchasers are entirely responsible for the choice, selection, and use of ABOV products and ABOV assumes no liability for application assistance or the design of purchasers' products. No license, express or implied, to any intellectual property rights is granted by ABOV herein. ABOV disclaims all express and implied warranties and shall not be responsible or liable for any injuries or damages related to use of ABOV products in such unauthorized applications. ABOV and the ABOV logo are trademarks of ABOV. All other product or service names are the property of their respective owners. Information in this document supersedes and replaces the information previously supplied in any former versions of this document. 2020 ABOV Semiconductor All rights reserved
Definition in file A31G12x_hal_fmc.c.
uint32_t HAL_FMC_BulkErase | ( | uint32_t | u32UserId | ) |
Flash Bulk(Chip) Erase Function.
[in] | u32UserId | Check value for real chip erase User ID to check flash memory bulk erase |
This function erases flash memory area with configure option area 1 to 3
Definition at line 223 of file A31G12x_hal_fmc.c.
References flash_addr_code1, HAL_FMC_FlashEntry(), HAL_FMC_FlashExit(), and HAL_FMC_FlashFunction().
void HAL_FMC_FlashEntry | ( | void | ) |
Entry of Flash Memory Control.
This function sets flash IDs for erase/write The HIRC should be enabled before flash functions. So, Do enable the HIRC if disabled The LVR should be enabled and set over 2.28V level before flash functions. So, Do enable the LVR and Set 2.28V level over if disabled The global interrupt should be diabled by s/w. So, Diable global interrupt
Definition at line 64 of file A31G12x_hal_fmc.c.
References flash_addr_code0, flash_id1_reg, and flash_id2_reg.
Referenced by HAL_FMC_BulkErase(), HAL_FMC_PageErase(), and HAL_FMC_PageWrite().
void HAL_FMC_FlashExit | ( | void | ) |
Exit of Flash Memory Control.
This function clears flash IDs for erase/write
Definition at line 94 of file A31G12x_hal_fmc.c.
References flash_addr_code0, flash_addr_code1, flash_id1_reg, and flash_id2_reg.
Referenced by HAL_FMC_BulkErase(), HAL_FMC_PageErase(), and HAL_FMC_PageWrite().
uint32_t HAL_FMC_FlashFunction | ( | uint32_t | u32FncSel, |
uint32_t | u32Addr, | ||
uint32_t * | u32Buf | ||
) |
Flash Page Erase/Write and Bulk(Chip) Erase.
[in] | u32FncSel | Select Flash Function
|
[in] | u32Addr | Address of erase/write
|
[in] | u32Buf | Write Data |
This function erases/writes flash memory and configure option area 1 to 3
Definition at line 120 of file A31G12x_hal_fmc.c.
References flash_addr_code0, flash_addr_code1, flash_id1_reg, and flash_id2_reg.
Referenced by HAL_FMC_BulkErase(), HAL_FMC_PageErase(), and HAL_FMC_PageWrite().
uint32_t HAL_FMC_PageErase | ( | uint32_t | u32UserId, |
uint32_t | u32Addr | ||
) |
Flash Page Erase Function.
[in] | u32UserId | Check value for real page erase User ID to check flash memory page erase |
[in] | u32Addr | Target Address
|
This function erases flash memory area and configure option area
Definition at line 260 of file A31G12x_hal_fmc.c.
References HAL_FMC_FlashEntry(), HAL_FMC_FlashExit(), and HAL_FMC_FlashFunction().
uint32_t HAL_FMC_PageWrite | ( | uint32_t | u32UserId, |
uint32_t | u32Addr, | ||
uint32_t * | u32Buf | ||
) |
Flash Page Write Function.
[in] | u32UserId | Check value for real page write User ID to check flash memory page write |
[in] | u32Addr | Target Address
|
[in] | u32Buf | Write Data |
This function writes flash memory area and configure option area
Definition at line 298 of file A31G12x_hal_fmc.c.
References HAL_FMC_FlashEntry(), HAL_FMC_FlashExit(), and HAL_FMC_FlashFunction().
uint32_t flash_addr_code0 |
Definition at line 48 of file A31G12x_hal_fmc.c.
Referenced by HAL_FMC_FlashEntry(), HAL_FMC_FlashExit(), and HAL_FMC_FlashFunction().
uint32_t flash_addr_code1 |
Definition at line 49 of file A31G12x_hal_fmc.c.
Referenced by HAL_FMC_BulkErase(), HAL_FMC_FlashExit(), and HAL_FMC_FlashFunction().
uint32_t flash_id1_reg |
Definition at line 46 of file A31G12x_hal_fmc.c.
Referenced by HAL_FMC_FlashEntry(), HAL_FMC_FlashExit(), and HAL_FMC_FlashFunction().
uint32_t flash_id2_reg |
Definition at line 47 of file A31G12x_hal_fmc.c.
Referenced by HAL_FMC_FlashEntry(), HAL_FMC_FlashExit(), and HAL_FMC_FlashFunction().