The ValidateQSPI() function isn’t actually checking the values written to flash so will always succeed. It needs this line inserted before the verification loop:
testmem = (uint8_t*)qspi.GetData(start);
Also it doesn’t look like the non-quick case will work because the vector cannot be resized to 8 MByte unless it is allocated in SDRAM.
Reported by forum user: gregsbrain
Content of post below:
The ValidateQSPI() function isn’t actually checking the values written to flash so will always succeed. It needs this line inserted before the verification loop:
Also it doesn’t look like the non-quick case will work because the vector cannot be resized to 8 MByte unless it is allocated in SDRAM.