Jump to content

albsef

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by albsef

  1. On 5/23/2020 at 8:47 AM, MX_Master said:

    Pull up or pull down the pin using built-in 50k resistors. And compare the results. 

    Is it possible to have an example of how I can do that with an overlay maybe?

    I tried with gpio mode *pin number* up and also down but it doesn't seem to work. I tried using sunxi-pio but no changes are made.

    Thank you

  2. Hi everyone,

    I am trying to set the pin 26 (PL08) on orange pi as Input but sometimes it is flashing.

    I did  put a 10K external pull up resistor and it is exported as input pin.

    I did the same thing with the pin 22 (PD21) and this one is steady, no problems until now. 

    I did not add anything on overlays for these pins.

    Any idea what I am doing wrong?

    Thanks

  3. Hi everyone,

    I enabled on armbianEnv.txt overlays for uart1 uart2 and uart3 and also

    param_uart3_rtscts=1
    param_uart2_rtscts=1
    param_uart1_rtscts=1

    but when I do "cat /proc/tty/driver/serial" I have:

    serinfo:1.0 driver revision:
    0: uart:U6_16550A mmio:0x01C28000 irq:45 tx:68 rx:0 RTS|DTR
    1: uart:U6_16550A mmio:0x01C28400 irq:46 tx:0 rx:0 CTS
    2: uart:U6_16550A mmio:0x01C28800 irq:47 tx:0 rx:0 CTS
    3: uart:U6_16550A mmio:0x01C28C00 irq:48 tx:0 rx:0 CTS

     

    I am using :  ARMBIAN 5.83 stable Debian GNU/Linux 9 (stretch) 4.19.38-sunxi

     

    Can anyone help me to activate RTS on any of uarts please?

     

    Thank you

     

     

  4. In case anyone has the same problem, I found this solution:

     

    git clone https://github.com/zhaolei/WiringOP.git -b h3

     

    then go to WiringOP/wiringPI/

    and edit file wiringPiSPI.c

     

    These are the lines that I modified 

    static const char       *spiDev0  = "/dev/spidev0.0" ;

    static const char       *spiDev1  = "/dev/spidev0.1" ;

     

    into this:

    static const char       *spiDev0  = "/dev/spidev0.1" ;

    static const char       *spiDev1  = "/dev/spidev1.0" ;

     

    after this, build wiringpi. Error is gone now

     

  5. Armbianmonitor:

    Hi everyone,

    I am using Armbian. SPI overlay and "spidev" are already loaded

    "[    2.614185] spi spi0.1: spi_setup / gpio_is_valid(21) ... doing gpio_request ...
    [    2.614213] spi spi0.1: spi_setup / gpio_direction_output(21) done !
    [    7.256451] spidev spi0.1: probing from DT
    "

    Did someone succesfully used SPI on this board using WiringPi, WiringPISPI?

    I have an application that returns me "Unable to open SPI device: No such file or directory".

    I do have ls /dev/spidev0.1

    I tried different libraries for WiringPi but no success.

    It seems that the library tries to load another module instead "spidev" that is already loaded in linux.

    Do you need another information? I am ready to provide whatever you might need.

    Thank you

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines