Ok but how can I know the setup associated to the dtbo files ? Is there any reverse engineering to get the dtc file from the dtbo ? I want to comunicate by SPI0 so I guess that I have to choose ADAFRUIT-SPI0-00A0.dtbo or BB-SPIDEV0-00A0.dtbo. How do I choose ? How can I know if D0/D1 is an output/input in this dtbo configuration file ?
Jan I will run the test today. I will let you know the result Arthur. Le mardi 11 novembre 2014 18:52:38 UTC+1, Jason Lange a écrit : > > ...so if you enable both spidevs you have four devices show up. > > On Tue, Nov 11, 2014 at 9:51 AM, Jason Lange <[email protected] > <javascript:>> wrote: > >> The two devices that show up are associated with the same clock and data >> lines, they just have different chip select lines to allow you to multiplex >> two devices -- they cannot be used simultaneously. >> >> On Mon, Nov 10, 2014 at 3:54 PM, <[email protected] <javascript:>> >> wrote: >> >>> Hi, >>> >>> Following the links: http://elinux.org/BeagleBone_Black_Enable_SPIDEV >>> and >>> http://www.nagavenkat.adurthi.com/2014/02/spi-communication-beaglebone-black-as-master-to-arduino-as-slave/ >>> >>> I was able to make it work, but I have a SS too long (1.4ms) for my need. >>> For easy test connect MOSI and MISO with a wire (loopback) to eliminate >>> connection problem with you SPI slave. >>> Hope this will help. When you done, can you measure the timing a let me >>> know? >>> I can post you my code if you need it. >>> >>> Jan >>> >>> >>> On Tuesday, November 11, 2014 5:03:38 AM UTC+11, [email protected] >>> wrote: >>>> >>>> Hi, >>>> >>>> I am trying to communicate with a device (ADS1299à by using the >>>> Beaglebone black but without success. First I have to enable spi dev >>>> entries in /dev. There are plenty of blog/tuto which are giving dtc file >>>> to >>>> generate our own dtbo. But dtc files seems to not be always the same. >>>> >>>> In fact I can see that there are already some dtbo files in >>>> /lib/firmware : >>>> root@beaglebone:~# ls /lib/firmware/ | grep SPI >>>> ADAFRUIT-SPI0-00A0.dtbo >>>> ADAFRUIT-SPI1-00A0.dtbo >>>> BB-SPIDEV0-00A0.dtbo >>>> BB-SPIDEV1-00A0.dtbo >>>> BB-SPIDEV1A1-00A0.dtbo >>>> >>>> So I want to use only SPI0 because I know that SPI1 is already used by >>>> HDMI. Can I used theses dtbo files ? Is it better to write my own ? It is >>>> quite strange, when I enable one of theses dtbo files, I get not only one >>>> but two entries in /dev ?? >>>> >>>> Currently I want to validate my wiring between the two boards. I found >>>> a piece of code to read the device id in register of the device though >>>> SPI. >>>> But when I try to read this register, I can only get 1 or only get 0 >>>> (depends of the dtbo files) >>>> >>>> Any advice of the good way to process here ? >>>> >>>> Thanks & Regards, >>>> Arthur. >>>> >>>> >>>> >>>> >>>> -- >>> For more options, visit http://beagleboard.org/discuss >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "BeagleBoard" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected] <javascript:>. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
