Hi Tim, On 8/24/21, Tim <t...@jti.uk.com.invalid> wrote: >>From: Alan Carvalho de Assis <acas...@gmail.com> >> >>It seams like MT25Q uses the m25px.c driver, so I assume you are enabling >> the >>CONFIG_MT25Q_MEMORY_TYPE right? > > Yes = my .config has CONFIG_MT25Q_MEMORY_TYPE set > >> >>Next you need to configure our board SPI CS pin, please take a look >>at: arm/stm32/mikroe-stm32f4/src/stm32_spi.c >> > > Yes, I have defined the PIOs etc. > >>Then before try to setup the NXFFS you need to confirm that the Flash NOR >> was >>detected correctly. > > How, in code or from the nsh, do I do that? I know the chip works as I've > used it (for example) for u-boot environment variables with no issue, but I > can't find the way to either mount it, or "probe" it, or anything, from > nuttx. It doesn’t appear as a /dev. > > No doubt it's in some documentation somewhere.... >
You can enable the CONFIG_DEBUG_FS_* to see the mtd debug messages. It will tell you want is going on. BR, Alan