My board is now correctly registering the SPI instance and binding the relevant SPI and CS to the SPI Flash driver.

It was an uphill struggle, but thanks to all your various suggestions I have got there and learned more than I wanted to!

Next hurdle is to trawl through other boards to learn how to "automount" my SPI flash as a file system - maybe SMART or maybe MXFSS; right now, any file system mounting from my board or app init function would be good :)

On 24/08/2021 16:53, Alan Carvalho de Assis wrote:
Hi Tim,

It seams like MT25Q uses the m25px.c driver, so I assume you are
enabling the CONFIG_MT25Q_MEMORY_TYPE right?

Next you need to configure our board SPI CS pin, please take a look
at: arm/stm32/mikroe-stm32f4/src/stm32_spi.c

Then before try to setup the NXFFS you need to confirm that the Flash
NOR was detected correctly.

BR,

Alan

On 8/24/21, Tim <t...@jti.uk.com.invalid> wrote:
Does anyone have any pointers on how to setup nxfss (or any filesystem for
that matter) on an MT25Q nor flash?



I cannot find any code for any other boards that makes any sense to me and
I
feel this should be a pretty basic thing to want to do? I believe I have
set
up all the SPI stuff and now need to (auto)mount it in my bringup or app
init code, but I'm stuck :(



"CONFIG_HAVE_M25P" is as far as I have got.



SAMA5D27 device.



TIA,



Tim.




Reply via email to