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 n
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 F
>From: Alan Carvalho de Assis
>
>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/s
Hi Tim,
On 8/24/21, Tim wrote:
>>From: Alan Carvalho de Assis
>>
>>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, plea
Hi Alan,
>Hi Tim,
>
>On 8/24/21, Tim wrote:
>>
>>>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
Ok, did you open your System.map and searched for m25p_initialize() ?
Few days ago I gave someone else this same tip (and another) and he
got things working, please take a look on our email history.
BR,
Alan
On 8/24/21, Tim wrote:
> Hi Alan,
>
>>Hi Tim,
>>
>>On 8/24/21, Tim wrote:
>>>
The
> but I can't find the way to either mount it, or "probe" it, or anything,
from nuttx.
The sequence to initialise the flash and mount NXFFS should look like the
following (to be adapted for chip and device):
spi = stm32_spibus_initialize(1);
if (!spi)
{
ferr("ERROR: Failed to initial
BTW, do we have a driver for MT25Q? I can't see one. Is it compatible with
the M25P series?
On Tue, Aug 24, 2021 at 5:50 PM Abdelatif Guettouche <
abdelatif.guettou...@gmail.com> wrote:
> > but I can't find the way to either mount it, or "probe" it, or anything,
> from nuttx.
>
>
> The sequence
No, it's not in the system map. Having now searched for it I see there's a
possibly useful example in stm32_appinit.c so I will wade through that.
How was I supposed to know what to look for!!??
>Ok, did you open your System.map and searched for m25p_initialize() ?
>
>Few days ago I gave someone
Hi Tim,
It is not your fault, it is fault to NuttX complexity.
We need to improve it, I think NSH_ARCHINIT should be enabled by default.
NuttX is full of unnecessary traps that let users to fall into all the time.
BR,
Alan
On 8/24/21, Tim wrote:
> No, it's not in the system map. Having now s
that is the best and usual way to get documentation about nuttx
you need some grep-fu
the system.map trick is a generic debug technique that you can't invent
if someone else doesnt tell you about it :)
sebastien
Le 24/08/2021 à 18:57, Tim a écrit :
No, it's not in the system map. Having now
There is support for MT25Q128 and I have now added the MT25Q256
It is in nuttx/drivers/mtd/m25px.c and I will add to the list of PRs once I
have everything sorted on my board.
Subject: Re: nxfss on MT25Q nor flash
BTW, do we have a driver for MT25Q? I can't see one. Is it compa
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
Hi Tim,
Congratulations! We are happy to see your progress with NuttX.
If you want to help future "Tim"s please right a small documentation about it.
You can create it at:
Documentation/guides/eeprom_spi.rst
BR,
Alan
On 8/25/21, Tim Hardisty wrote:
> My board is now correctly registering th
s/right/write/
Sorry for the typo
On 8/25/21, Alan Carvalho de Assis wrote:
> Hi Tim,
>
> Congratulations! We are happy to see your progress with NuttX.
>
> If you want to help future "Tim"s please right a small documentation about
> it.
>
> You can create it at:
>
> Documentation/guides/eeprom_
15 matches
Mail list logo