Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Input and Output functions
[NOR Exported Functions]
Input Output and memory control functions. More...
Functions | |
HAL_StatusTypeDef | HAL_NOR_Read_ID (NOR_HandleTypeDef *hnor, NOR_IDTypeDef *pNOR_ID) |
Read NOR flash IDs. | |
HAL_StatusTypeDef | HAL_NOR_ReturnToReadMode (NOR_HandleTypeDef *hnor) |
Return the NOR memory to Read mode. | |
HAL_StatusTypeDef | HAL_NOR_Read (NOR_HandleTypeDef *hnor, uint32_t *pAddress, uint16_t *pData) |
Read data from NOR memory. | |
HAL_StatusTypeDef | HAL_NOR_Program (NOR_HandleTypeDef *hnor, uint32_t *pAddress, uint16_t *pData) |
Program data to NOR memory. | |
HAL_StatusTypeDef | HAL_NOR_ReadBuffer (NOR_HandleTypeDef *hnor, uint32_t uwAddress, uint16_t *pData, uint32_t uwBufferSize) |
Read a block of data from the FMC NOR memory. | |
HAL_StatusTypeDef | HAL_NOR_ProgramBuffer (NOR_HandleTypeDef *hnor, uint32_t uwAddress, uint16_t *pData, uint32_t uwBufferSize) |
Write a half-word buffer to the FMC NOR memory. | |
HAL_StatusTypeDef | HAL_NOR_Erase_Block (NOR_HandleTypeDef *hnor, uint32_t BlockAddress, uint32_t Address) |
Erase the specified block of the NOR memory. | |
HAL_StatusTypeDef | HAL_NOR_Erase_Chip (NOR_HandleTypeDef *hnor, uint32_t Address) |
Erase the entire NOR chip. | |
HAL_StatusTypeDef | HAL_NOR_Read_CFI (NOR_HandleTypeDef *hnor, NOR_CFITypeDef *pNOR_CFI) |
Read NOR flash CFI IDs. |
Detailed Description
Input Output and memory control functions.
============================================================================== ##### NOR Input and Output functions ##### ============================================================================== [..] This section provides functions allowing to use and control the NOR memory
Function Documentation
HAL_StatusTypeDef HAL_NOR_Erase_Block | ( | NOR_HandleTypeDef * | hnor, |
uint32_t | BlockAddress, | ||
uint32_t | Address | ||
) |
Erase the specified block of the NOR memory.
- Parameters:
-
hnor,: pointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module. BlockAddress : Block to erase address Address,: Device address
- Return values:
-
HAL status
Definition at line 712 of file stm32l4xx_hal_nor.c.
HAL_StatusTypeDef HAL_NOR_Erase_Chip | ( | NOR_HandleTypeDef * | hnor, |
uint32_t | Address | ||
) |
Erase the entire NOR chip.
- Parameters:
-
hnor,: pointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module. Address : Device address
- Return values:
-
HAL status
Definition at line 771 of file stm32l4xx_hal_nor.c.
HAL_StatusTypeDef HAL_NOR_Program | ( | NOR_HandleTypeDef * | hnor, |
uint32_t * | pAddress, | ||
uint16_t * | pData | ||
) |
Program data to NOR memory.
- Parameters:
-
hnor,: pointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module. pAddress,: Device address pData : pointer to the data to write
- Return values:
-
HAL status
Definition at line 501 of file stm32l4xx_hal_nor.c.
HAL_StatusTypeDef HAL_NOR_ProgramBuffer | ( | NOR_HandleTypeDef * | hnor, |
uint32_t | uwAddress, | ||
uint16_t * | pData, | ||
uint32_t | uwBufferSize | ||
) |
Write a half-word buffer to the FMC NOR memory.
This function must be used only with S29GL128P NOR memory.
- Parameters:
-
hnor,: pointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module. uwAddress,: NOR memory internal address from which the data
- Note:
- Some NOR memory need Address aligned to xx bytes (can be aligned to 64 bytes boundary for example).
- Parameters:
-
pData,: pointer to source data buffer. uwBufferSize,: number of Half words to write.
- Note:
- The maximum buffer size allowed is NOR memory dependent (can be 64 Bytes max for example).
- Return values:
-
HAL status
Definition at line 632 of file stm32l4xx_hal_nor.c.
HAL_StatusTypeDef HAL_NOR_Read | ( | NOR_HandleTypeDef * | hnor, |
uint32_t * | pAddress, | ||
uint16_t * | pData | ||
) |
Read data from NOR memory.
- Parameters:
-
hnor,: pointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module. pAddress,: pointer to Device address pData : pointer to read data
- Return values:
-
HAL status
Definition at line 442 of file stm32l4xx_hal_nor.c.
HAL_StatusTypeDef HAL_NOR_Read_CFI | ( | NOR_HandleTypeDef * | hnor, |
NOR_CFITypeDef * | pNOR_CFI | ||
) |
Read NOR flash CFI IDs.
- Parameters:
-
hnor,: pointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module. pNOR_CFI : pointer to NOR CFI IDs structure
- Return values:
-
HAL status
Definition at line 832 of file stm32l4xx_hal_nor.c.
HAL_StatusTypeDef HAL_NOR_Read_ID | ( | NOR_HandleTypeDef * | hnor, |
NOR_IDTypeDef * | pNOR_ID | ||
) |
Read NOR flash IDs.
- Parameters:
-
hnor,: pointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module. pNOR_ID : pointer to NOR ID structure
- Return values:
-
HAL status
Definition at line 332 of file stm32l4xx_hal_nor.c.
HAL_StatusTypeDef HAL_NOR_ReadBuffer | ( | NOR_HandleTypeDef * | hnor, |
uint32_t | uwAddress, | ||
uint16_t * | pData, | ||
uint32_t | uwBufferSize | ||
) |
Read a block of data from the FMC NOR memory.
- Parameters:
-
hnor,: pointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module. uwAddress,: NOR memory internal address to read from. pData,: pointer to the buffer that receives the data read from the NOR memory. uwBufferSize : number of Half word to read.
- Return values:
-
HAL status
Definition at line 562 of file stm32l4xx_hal_nor.c.
HAL_StatusTypeDef HAL_NOR_ReturnToReadMode | ( | NOR_HandleTypeDef * | hnor ) |
Return the NOR memory to Read mode.
- Parameters:
-
hnor,: pointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module.
- Return values:
-
HAL status
Definition at line 392 of file stm32l4xx_hal_nor.c.
Generated on Tue Jul 12 2022 11:00:04 by
