2018-06-01 01:54 AM
Hi there,
we are now facing a new chapter of progress for our sensor. Our sensor generates data (8bit arrays) and they want to be stored on the device. On our custom board we built-in a QSPI-Nor Flash memory (IS25WPXXX256D) connected to the QSPI bus of the STM32F746VG like on the respective discovery board.
Our distributor told us about this combination of tools to store the data:
Usage of FreeRTOS, FatFS and USB mass storage (everything middleware) with wear leveling algorithm to increase lifetime. But we think this sounds like much overhead for our little sensor. Currently we are not using any OS and we want to keep it like that.
So what would be the best way to read from and write to the memory without having an OS? Also is there a more simple solution for the data management with a lookup table or something like that instead of using FatFS?
I guess we are not the only ones facing this issue. I think the qspi-nor flash market will grow fast the next years and will be used much in combination with microcontroller setups.
Thanks in advance!
Kind regards,
Kevin Lehzen
#qspi-flash #nor-flash #memory #stm32-f7Solved! Go to Solution.
2018-06-01 05:24 AM
There should be several QSPI examples under the HAL trees that demonstrate basic read/write functionality
STM32Cube_FW_F7_V1.11.0\Projects\STM32746G-Discovery\Examples\QSPI\QSPI_ReadWrite_IT
STM32Cube_FW_F7_V1.11.0\Projects\STM32F769I_EVAL\Examples\QSPI\QSPI_ReadWrite_DMA
The bulk of these types of example do not use an OS.
You will need to manage the usage of the memory, and the erase, write, read sequencing. If you are recording a linear stream of data you can just create a method that records in a loop, and have a header or block structures allowing you to identify and order sessions for exporting the data.
2018-06-01 05:24 AM
There should be several QSPI examples under the HAL trees that demonstrate basic read/write functionality
STM32Cube_FW_F7_V1.11.0\Projects\STM32746G-Discovery\Examples\QSPI\QSPI_ReadWrite_IT
STM32Cube_FW_F7_V1.11.0\Projects\STM32F769I_EVAL\Examples\QSPI\QSPI_ReadWrite_DMA
The bulk of these types of example do not use an OS.
You will need to manage the usage of the memory, and the erase, write, read sequencing. If you are recording a linear stream of data you can just create a method that records in a loop, and have a header or block structures allowing you to identify and order sessions for exporting the data.
2018-06-01 05:30 AM
Hi Clive,
thats what I wanted to hear!
Thank you one more time!
Kevin