Spi not working on a13-som with pyA13SOM

Started by danss70, January 29, 2015, 06:53:29 PM

Previous topic - Next topic

danss70

Hi,
  I am new to programming & a13-som. I am trying to connect ILI9341 LCD. Can anyone confirm if spi is working on a13-som? I was trying as root with pyA13SOM-0.2.0 but it doesn't give any output? But GPIO and I2C are working fine.
Is there any other programs where spi work? Or any functioning library for a13 - ILI9341 LCD?
Please help.
:(

danss70

Hi,
Any ideas? 
With software 'bit banging', for 708kb, it took 24 seconds for screen fill (cat.jpg). from modified, 2014 Adafruit - Tony DiCola's library.
I am not a programmer but I can copy-paste in good places!
Thanks     

balornt

I just got my A13-SOM-WIFI and A13-SOM yesterday, so I am not up to speed yet, but I figure that there is not many of us with the device. Post your code somewhere and links to the libraries you are using. I have the 1.8 inch screen from adafruit that I can use to test your code.

I don't have much time to work on it at the moment as I am preparing to go on vacation in California, but I will try it when I can.

danss70

Hi,
Thanks, I thought I was alone fighting this! But it started working. I think it was fex settings error. But still it is crashing and I have to reboot it every time.
I will post the code after I clean it!
my 'working setting' now....
[spi2_para]
spi_used = 1
spi_cs0 = port:PE00<4><default><default><default>
spi_sclk = port:PE01<4><default><default><default>
spi_mosi = port:PE02<4><default><default><default>
spi_miso = port:PE03<4><default><default><default>



[spi_devices]
spi_dev_num = 1

[spi_board0]
modalias = "spidev"
max_speed_hz = 12000000
bus_num = 2
chip_select = 0
mode = 1
full_duplex = 1
manual_cs = 0

vinifr

#4
Hi danss,

Check if spi driver was load:
dmesg | grep spi

Check for conflicts between SPI pin definitions... PE00, PE01, PE02, PE03

This one could be help you


[spi2_para]
spi_used = 1
spi_cs_bitmap = 3
spi_cs0 = port:PE00<4><default><default><default>
spi_cs1 = port:PB10<2><default><default><default>
spi_sclk = port:PE01<4><default><default><default>
spi_mosi = port:PE02<4><default><default><default>
spi_miso = port:PE03<4><default><default><default>

[spi_devices]
spi_dev_num = 1

[spi_board0]
modalias = "spidev"
max_speed_hz = 12000000
chip_select = 0
bus_num = 2
mode = 0