Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
Loading...
Searching...
No Matches

All user-configurable parameters for the W25Qxxx driver. More...

Collaboration diagram for User Configuration:

HAL Handle Configuration

#define FLASH_QSPI_PORT   hqspi
 The HAL QSPI_HandleTypeDef defined in main.h.
 

QSPI Communication Mode

Selects between blocking (polling) and non-blocking (DMA) transfers. Uncomment ONE of the following options.

#define EXT_FLASH_QSPI_DMA_MODE
 

Flash Bus Protocol

Selects the SPI protocol (Single, Dual, or Quad). This must match the hardware wiring. Uncomment ONE of the following options.

#define FLASH_QMODE_4
 Quad SPI (4-bit data lines).
 

Target Flash Memory Layout

Defines the geometry of the specific W25Qxxx chip being used.

Warning
The EXT_FLASH_SIZE must correspond to the FSIZE parameter in the STM32CubeMX QSPI configuration. FSIZE = log2(total_bytes) - 1.
#define EXT_FLASH_PAGE_SIZE   0x0100
 256 bytes per programmable page.
 
#define EXT_FLASH_SECTOR_SIZE   0x1000
 4 KB per erasable sector.
 
#define EXT_FLASH_BLOCK_SIZE   0x00010000
 64 KB per erasable block.
 
#define EXT_FLASH_SIZE   0x04000000
 64 MB total capacity (W25Q512).
 
#define EXT_FLASH_PAGE_NUM   (EXT_FLASH_SIZE / EXT_FLASH_PAGE_SIZE)
 Total number of pages.
 
#define EXT_FLASH_SECTOR_NUM   (EXT_FLASH_SIZE / EXT_FLASH_SECTOR_SIZE)
 Total number of sectors.
 
#define EXT_FLASH_BLOCK_NUM   (EXT_FLASH_SIZE / EXT_FLASH_BLOCK_SIZE)
 Total number of blocks.
 

Detailed Description

All user-configurable parameters for the W25Qxxx driver.

Macro Definition Documentation

◆ EXT_FLASH_BLOCK_NUM

#define EXT_FLASH_BLOCK_NUM   (EXT_FLASH_SIZE / EXT_FLASH_BLOCK_SIZE)

Total number of blocks.

Definition at line 105 of file z_qflash_W25QXXX.h.

◆ EXT_FLASH_BLOCK_SIZE

#define EXT_FLASH_BLOCK_SIZE   0x00010000

64 KB per erasable block.

Definition at line 101 of file z_qflash_W25QXXX.h.

◆ EXT_FLASH_PAGE_NUM

#define EXT_FLASH_PAGE_NUM   (EXT_FLASH_SIZE / EXT_FLASH_PAGE_SIZE)

Total number of pages.

Definition at line 103 of file z_qflash_W25QXXX.h.

◆ EXT_FLASH_PAGE_SIZE

#define EXT_FLASH_PAGE_SIZE   0x0100

256 bytes per programmable page.

Definition at line 99 of file z_qflash_W25QXXX.h.

◆ EXT_FLASH_QSPI_DMA_MODE

#define EXT_FLASH_QSPI_DMA_MODE

Definition at line 58 of file z_qflash_W25QXXX.h.

◆ EXT_FLASH_SECTOR_NUM

#define EXT_FLASH_SECTOR_NUM   (EXT_FLASH_SIZE / EXT_FLASH_SECTOR_SIZE)

Total number of sectors.

Definition at line 104 of file z_qflash_W25QXXX.h.

◆ EXT_FLASH_SECTOR_SIZE

#define EXT_FLASH_SECTOR_SIZE   0x1000

4 KB per erasable sector.

Definition at line 100 of file z_qflash_W25QXXX.h.

◆ EXT_FLASH_SIZE

#define EXT_FLASH_SIZE   0x04000000

64 MB total capacity (W25Q512).

Definition at line 102 of file z_qflash_W25QXXX.h.

◆ FLASH_QMODE_4

#define FLASH_QMODE_4

Quad SPI (4-bit data lines).

Definition at line 88 of file z_qflash_W25QXXX.h.

◆ FLASH_QSPI_PORT

#define FLASH_QSPI_PORT   hqspi

The HAL QSPI_HandleTypeDef defined in main.h.

Definition at line 48 of file z_qflash_W25QXXX.h.