AnsweredAssumed Answered

How do I keep from losing ADC sample data, when writing to flash?

Question asked by Ferguson.Samuel on Dec 6, 2016
Latest reply on Dec 6, 2016 by bauch.aaron.001

I have a STM32L476G Discovery board that I have configured for use with the onboard QSPI flash.  My goal is to reconstruct a waveform from the ADC in flash.  I can successfully write to flash and have setup the ADC (at 14800Hz sampling) to use the DMA.  

 

I am using  `void HAL_ADC_ConvCpltCallback` to fill a buffer of 256 bytes.  Once it is full I initiate a write to the flash through the QSPI.  

 

However when I read back my results I have discontinuities in my 1kHz waveform.  How are you supposed to write to flash memory without losing samples?

Outcomes