STM32L486xx HAL User Manual
Functions
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 half-word buffer from the NOR memory.
HAL_StatusTypeDef HAL_NOR_ProgramBuffer (NOR_HandleTypeDef *hnor, uint32_t uwAddress, uint16_t *pData, uint32_t uwBufferSize)
 Writes a half-word buffer to the 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:
hnorpointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module.
BlockAddressBlock to erase address
AddressDevice address
Return values:
HALstatus

Definition at line 696 of file stm32l4xx_hal_nor.c.

References NOR_CMD_ADDRESS_FIFTH, NOR_CMD_ADDRESS_FIRST, NOR_CMD_ADDRESS_FOURTH, NOR_CMD_ADDRESS_SECOND, NOR_CMD_ADDRESS_THIRD, NOR_CMD_DATA_BLOCK_ERASE, NOR_CMD_DATA_CHIP_BLOCK_ERASE_FIFTH, NOR_CMD_DATA_CHIP_BLOCK_ERASE_FOURTH, NOR_CMD_DATA_CHIP_BLOCK_ERASE_THIRD, NOR_CMD_DATA_FIRST, NOR_CMD_DATA_SECOND, and uwNORMemoryDataWidth.

HAL_StatusTypeDef HAL_NOR_Erase_Chip ( NOR_HandleTypeDef *  hnor,
uint32_t  Address 
)

Erase the entire NOR chip.

Parameters:
hnorpointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module.
AddressDevice address
Return values:
HALstatus

Definition at line 755 of file stm32l4xx_hal_nor.c.

References NOR_CMD_ADDRESS_FIFTH, NOR_CMD_ADDRESS_FIRST, NOR_CMD_ADDRESS_FOURTH, NOR_CMD_ADDRESS_SECOND, NOR_CMD_ADDRESS_SIXTH, NOR_CMD_ADDRESS_THIRD, NOR_CMD_DATA_CHIP_BLOCK_ERASE_FIFTH, NOR_CMD_DATA_CHIP_BLOCK_ERASE_FOURTH, NOR_CMD_DATA_CHIP_BLOCK_ERASE_THIRD, NOR_CMD_DATA_CHIP_ERASE, NOR_CMD_DATA_FIRST, NOR_CMD_DATA_SECOND, and uwNORMemoryDataWidth.

HAL_StatusTypeDef HAL_NOR_Program ( NOR_HandleTypeDef *  hnor,
uint32_t *  pAddress,
uint16_t *  pData 
)

Program data to NOR memory.

Parameters:
hnorpointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module.
pAddressDevice address
pDatapointer to the data to write
Return values:
HALstatus

Definition at line 491 of file stm32l4xx_hal_nor.c.

References NOR_CMD_ADDRESS_FIRST, NOR_CMD_ADDRESS_SECOND, NOR_CMD_ADDRESS_THIRD, NOR_CMD_DATA_FIRST, NOR_CMD_DATA_PROGRAM, NOR_CMD_DATA_SECOND, and uwNORMemoryDataWidth.

HAL_StatusTypeDef HAL_NOR_ProgramBuffer ( NOR_HandleTypeDef *  hnor,
uint32_t  uwAddress,
uint16_t *  pData,
uint32_t  uwBufferSize 
)

Writes a half-word buffer to the NOR memory.

This function must be used only with S29GL128P NOR memory.

Parameters:
hnorpointer to the NOR handle
uwAddressNOR memory internal start write address
pDatapointer to source data buffer.
uwBufferSizeSize of the buffer to write
Return values:
HALstatus

Definition at line 616 of file stm32l4xx_hal_nor.c.

References NOR_CMD_ADDRESS_FIRST, NOR_CMD_ADDRESS_SECOND, NOR_CMD_DATA_BUFFER_AND_PROG, NOR_CMD_DATA_BUFFER_AND_PROG_CONFIRM, NOR_CMD_DATA_FIRST, NOR_CMD_DATA_SECOND, and uwNORMemoryDataWidth.

HAL_StatusTypeDef HAL_NOR_Read ( NOR_HandleTypeDef *  hnor,
uint32_t *  pAddress,
uint16_t *  pData 
)

Read data from NOR memory.

Parameters:
hnorpointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module.
pAddresspointer to Device address
pDatapointer to read data
Return values:
HALstatus

Definition at line 432 of file stm32l4xx_hal_nor.c.

References NOR_CMD_ADDRESS_FIRST, NOR_CMD_ADDRESS_SECOND, NOR_CMD_ADDRESS_THIRD, NOR_CMD_DATA_FIRST, NOR_CMD_DATA_READ_RESET, NOR_CMD_DATA_SECOND, and uwNORMemoryDataWidth.

HAL_StatusTypeDef HAL_NOR_Read_CFI ( NOR_HandleTypeDef *  hnor,
NOR_CFITypeDef *  pNOR_CFI 
)

Read NOR flash CFI IDs.

Parameters:
hnorpointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module.
pNOR_CFIpointer to NOR CFI IDs structure
Return values:
HALstatus

Definition at line 816 of file stm32l4xx_hal_nor.c.

References NOR_CMD_ADDRESS_FIRST_CFI, NOR_CMD_DATA_CFI, and uwNORMemoryDataWidth.

HAL_StatusTypeDef HAL_NOR_Read_ID ( NOR_HandleTypeDef *  hnor,
NOR_IDTypeDef *  pNOR_ID 
)

Read NOR flash IDs.

Parameters:
hnorpointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module.
pNOR_IDpointer to NOR ID structure
Return values:
HALstatus

Definition at line 322 of file stm32l4xx_hal_nor.c.

References NOR_CMD_ADDRESS_FIRST, NOR_CMD_ADDRESS_SECOND, NOR_CMD_ADDRESS_THIRD, NOR_CMD_DATA_AUTO_SELECT, NOR_CMD_DATA_FIRST, NOR_CMD_DATA_SECOND, and uwNORMemoryDataWidth.

HAL_StatusTypeDef HAL_NOR_ReadBuffer ( NOR_HandleTypeDef *  hnor,
uint32_t  uwAddress,
uint16_t *  pData,
uint32_t  uwBufferSize 
)

Read a half-word buffer from the NOR memory.

Parameters:
hnorpointer to the NOR handle
uwAddressNOR memory internal address to read from.
pDatapointer to the buffer that receives the data read from the NOR memory.
uwBufferSizenumber of Half word to read.
Return values:
HALstatus

Definition at line 551 of file stm32l4xx_hal_nor.c.

References NOR_CMD_ADDRESS_FIRST, NOR_CMD_ADDRESS_SECOND, NOR_CMD_ADDRESS_THIRD, NOR_CMD_DATA_FIRST, NOR_CMD_DATA_READ_RESET, NOR_CMD_DATA_SECOND, and uwNORMemoryDataWidth.

HAL_StatusTypeDef HAL_NOR_ReturnToReadMode ( NOR_HandleTypeDef *  hnor)

Return the NOR memory to Read mode.

Parameters:
hnorpointer to a NOR_HandleTypeDef structure that contains the configuration information for NOR module.
Return values:
HALstatus

Definition at line 382 of file stm32l4xx_hal_nor.c.

References NOR_CMD_DATA_READ_RESET.