You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Вадим Ястребов <wo...@mail.ru.INVALID> on 2021/08/24 19:25:41 UTC

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 initialization.

Vadim


Sent from Mail.ru app for iOS


Tuesday, August 24, 2021, 3:16 PM -0400 from timh@jti.uk.com.invalid  <ti...@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 < spudaneco@gmail.com >
>Reply to: < dev@nuttx.apache.org >
>Date: Tuesday, 24 August 2021 at 20:11
>To: < dev@nuttx.apache.org >
>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 even simulated AT24 support:
>
> 
>
>boars/sim/sim/sim
>
> 
>
>You should be able to duplicate the logic from the samv7 boards.
>
> 
>
> 
>

Re: Re[2]: SPI EEPROM

Posted by Tim Hardisty <Ti...@JTi.uk.com.INVALID>.
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 initialization.