SNOR driver and nocache buffer
Posted: Wed Jul 09, 2025 9:35 am
Hi,
Looking at os/hal/lib/complex/serial_nor/hal_serial_nor.c/h code it seems to me that "nocache" feature is not fully finished/implemented. At least for SPI (not WSPI) mode: local buffers are used in few places to construct tx packets.
We need SPI driver for W25Q for RusEFI project, so I done some modification to make serial_nor subsystem work on our STM32F7 based device.
Please see https://github.com/rusefi/ChibiOS/pull/ ... c7edb2ace7 .
If you have any comments - please let me know.
If you like - I can convert macronix_mx25 and micron_n25q drivers to changed API and provide set of patches.
Also I can provide patch adding W25Q support.
Andrey.
Looking at os/hal/lib/complex/serial_nor/hal_serial_nor.c/h code it seems to me that "nocache" feature is not fully finished/implemented. At least for SPI (not WSPI) mode: local buffers are used in few places to construct tx packets.
We need SPI driver for W25Q for RusEFI project, so I done some modification to make serial_nor subsystem work on our STM32F7 based device.
Please see https://github.com/rusefi/ChibiOS/pull/ ... c7edb2ace7 .
If you have any comments - please let me know.
If you like - I can convert macronix_mx25 and micron_n25q drivers to changed API and provide set of patches.
Also I can provide patch adding W25Q support.
Andrey.