H753_CPP_W25Q_QSPI_Flash_Read_Write_01 1.0
STM32H753 W25Q QSPI flash (Adafruit 5632/5633/5634) read/write tutorial
Loading...
Searching...
No Matches
W25QValidation Class Reference

Destructive validation suite for a W25QFlashQSPI driver – see w25q_validation.hpp's file header for the full design rationale (adapted from the AS6C4008 SRAM validation suite, with flash- specific adaptations for erase-before-write and finite erase endurance). More...

#include <w25q_validation.hpp>

Public Member Functions

 W25QValidation (W25QFlashQSPI &flash)
 Constructs the validation suite against an already-initialized driver.
 
const w25qValidationReport_t * RunAll ()
 Runs every validation test in sequence, stopping at the first failure, printing progress and results to stdout throughout.
 
const w25qValidationReport_t * GetReport () const
 Gets the most recent validation report without rerunning tests.
 

Detailed Description

Destructive validation suite for a W25QFlashQSPI driver – see w25q_validation.hpp's file header for the full design rationale (adapted from the AS6C4008 SRAM validation suite, with flash- specific adaptations for erase-before-write and finite erase endurance).

Warning
Not thread-safe or ISR-safe, for the same reason as the W25QFlashQSPI instance it drives (see W25QFlashQSPI's own
) – every test method here is itself a sequence of multiple W25QFlashQSPI calls (erase, then write, then read), so even if the underlying driver somehow tolerated concurrent access, a second task touching the same flash chip mid-suite would invalidate the suite's own results regardless. Run this suite with exclusive access to the chip.

Definition at line 107 of file w25q_validation.hpp.

Constructor & Destructor Documentation

◆ W25QValidation()

W25QValidation::W25QValidation ( W25QFlashQSPI & flash)
explicit

Constructs the validation suite against an already-initialized driver.

Parameters
flashReference to a W25QFlashQSPI instance whose Init() has already succeeded. This suite does not call Init() itself.

Definition at line 12 of file w25q_validation.cpp.

Member Function Documentation

◆ GetReport()

const w25qValidationReport_t * W25QValidation::GetReport ( ) const

Gets the most recent validation report without rerunning tests.

Return values
Pointerto a persistent report structure.

Definition at line 327 of file w25q_validation.cpp.

◆ RunAll()

const w25qValidationReport_t * W25QValidation::RunAll ( )

Runs every validation test in sequence, stopping at the first failure, printing progress and results to stdout throughout.

Return values
Pointerto a persistent report structure describing the outcome.

Definition at line 293 of file w25q_validation.cpp.


The documentation for this class was generated from the following files: