• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SPI access using extender
#2
Hello Irina,

before you start to develop a NPIX extender you need to understand the principle of the standard Raspberry Pi system and the plug-on modules called HAT. https://www.raspberrypi.org/blog/introdu...y-pi-hats/

What HAT is for standard Raspberry Pi is NPIX for netPI to extend the basic hardware with extended hardware. So on a standard Pi you apply a HAT on the 40 pin header and with netPI you shift in NPIX modules. HAT 40 pin header is the same as netPI's internal mPCIe connector ... it is just a different form factor.

So since we use the same mechanism with netPI as known from standard PI also the software behaviour is the same. Since HAT/NPIX may provide any connectivity like SPI, I2C, UART etc. the module "tells" the Linux system about its supported interfaces. This is done with the ID EEPROM that is located on the HAT/NPIX at I2C0 bus. If there is no EEPROM Linux cannot detect the possibilities of the module and does not load the respective driver.

And this is your problem. Linux during the startup phase reads out the ID EEPROM ... which in your case is not there ... and will not load the SPI driver. This is why you do not see the SPI devices mappable at all.

Here is the spec how to generate an ID EEPROM binary file in general for HAT + the tools: https://github.com/raspberrypi/hats

We have for example made the NPIX-CAN module that uses the SPI1.0 interface provided by the NPIX slot to connect to the MCP2515 CAN chip. I could provide you the binary file for the ID EEPROM ... so that you in turn can burn your ID EEPROM to get fast to the missing SPI 1.0 device in Linux and finally in your container.

For burning ID EEPROMS you need to use EEPROM writer for series production or for tests you can also use netPI with a different SD card loaded with Raspbian OS.

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
SPI access using extender - by Irina Grinberg - January-16th-2020, 10:04 AM
RE: SPI access using extender - by Armin@netPI - January-16th-2020, 10:33 AM
RE: SPI access using extender - by Irina Grinberg - January-16th-2020, 11:15 AM
RE: SPI access using extender - by Armin@netPI - January-16th-2020, 12:14 PM
RE: SPI access using extender - by Armin@netPI - January-16th-2020, 12:27 PM
RE: SPI access using extender - by Irina Grinberg - January-16th-2020, 01:02 PM
RE: SPI access using extender - by Armin@netPI - January-16th-2020, 01:19 PM
RE: SPI access using extender - by Irina Grinberg - January-16th-2020, 02:51 PM
RE: SPI access using extender - by Armin@netPI - January-16th-2020, 03:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  netPI RTE + remote access + IO data access on ethernet/ip MGharat 1 2,275 December-24th-2020, 01:43 PM
Last Post: Armin@netPI
Photo [SOLVED] netPI Access Problem Rahulsagar 5 5,380 October-18th-2018, 12:05 PM
Last Post: Armin@netPI
  FRAM access marcel 1 2,878 March-15th-2018, 05:58 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)