Thanks Alan – all my SPI pins are configured. That was easy to work out :)
I will follow this tomorrow and I’m sure it will all seem easier in the morning!
From: Alan Carvalho de Assis
Reply to:
Date: Tuesday, 24 August 2021 at 20:59
To:
Subject: Re: SPI EEPROM
Hi Tim,
It is very st
Hi Tim,
It is very straightforward, basically you will replace:
FAR struct i2c_master_s *i2c;
i2c = stm32_i2cbus_initialize(AT24_I2C_BUS);
mtd = at24c_initialize(i2c);
WITH:
FAR struct spi_dev_s *spi;
spi = sam_spibus_initialize(AT25_SPI_PORTNO);
mtd = at25_initialize(spi);
But of cours
Thanks Vadim – that’s pretty much the conclusion I had come to.
Tim.
Subject: Re[2]: SPI EEPROM
Hi Tim,
You could search for any spi device being initialized. Search for spi_dev_s
being declared in boards folder for some board, use it as an example and do the
same initia
Hi Tim,
You could search for any spi device being initialized. Search for spi_dev_s
being declared in boards folder for some board, use it as an example and do the
same initialization.
Vadim
Sent from Mail.ru app for iOS
Tuesday, August 24, 2021, 3:16 PM -0400 from t...@jti.uk.com.invalid
AT24 is I2C and this is well supported in NuttX. AT25 is SPI and is what I have
(AT25128) and it is not well supported, with no example code or boards that
support it (that I can find)
From: Gregory Nutt
Reply to:
Date: Tuesday, 24 August 2021 at 20:11
To:
Subject: Re: SPI EEPROM
That’s AT24 I2C not AT25 SPI EEPROM unfortunatel, and from a quick look it
“just worked” ☹
There is support for the AT24 in other SAM boards. Search for AT24 in
defconfigs, I find
boards/arm/samv7/same70-xplained/
boards/arm/samv7/samv71-xult/
boards/arm/xmc4/xmc4500-relax
There is eve
I have 3 different SAMA5D2 eval board and have used them for years. I have had
my custom board running “bare metal” code based on the Atmel code with no
problems. Everything works, including the many many custom device on the board.
I can swim. Using Lvgl too.
I made the decision to move to
Hi Tim,
The process to get AT25 SPI is similar, but for SPI you need to get
the CS pin configure besides the other four SPI pins.
Is this your first time using SPI on NuttX?
There are some tutorials at NuttX Channel explaining how to use SPI on
NuttX, like using SDCard over SPI. I suggest you to
That’s AT24 I2C not AT25 SPI EEPROM unfortunatel, and from a quick look it
“just worked” ☹
From: Alan Carvalho de Assis
Reply to:
Date: Tuesday, 24 August 2021 at 18:01
To:
Subject: Re: SPI EEPROM
Hi Tim,
You are right, Documentation is one of our "Achilles tendon".
But,
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
Hi Tim,
You are right, Documentation is one of our "Achilles tendon".
But, of course, some times it is also the user search fault, maybe
they don't have the Google-fun skills yet (please don't take it as
personal).
If you search for NuttX EEPROM Tutorial
It will returns this tutorial:
https://
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
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
> 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
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
The more time I spend with nuttx the more I think I just haven't found some
treasure trove of documentation somewhere. All I seem to end up doing is
searching every single file for some kind of clue as to what to do!
I have an SPI EEPROM device. Menuconfig allows me to set it up, lovely! I
end
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
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
>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,
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
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
21 matches
Mail list logo