Jump to content

Park Namsu

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Park Namsu

  1. Hi. I want to use uart on 500000 baudrate. Before i had used it with ARMBIAN 5.32. But i had some problems about board temperature. So, i updated it brand-new image. it was 5.38. and then some packet are crashing or missing frequently. I used same program for this test. I only counted received packets. It works fine with ARMBIAN 5.32 user-built Ubuntu 16.04.2 LTS 4.11.7-sun8i Received packets are 4500000. But, it doesn't with ARMBIAN 5.38 stable Ubuntu 16.04.4 LTS 4.14.18-sunxi Received packets are 4504376. I also checked configuration using "setserial". the differece was only irq number. please i need your help. what should i check?
  2. Hi. Kernel version : 4.11.7-sun8i My trouble is that clk is weird in using spidev. This is a oscilograph when i send a command with spi. First line is CLK and second line is CS0. My slave chip can not receive commands. and I think it due to this weird CLK. CS seems affect CLK. I just want to use spi with CS keeping active-low. But, following code setting mode of spi occured an error. "invalid argument exception" mode = SPI_MODE_1 | SPI_NO_CS; if (ioctl(file,SPI_IOC_WR_MODE32,&mode)<0){ perror("can't set spi mode"); return; } this work properly. mode = SPI_MODE_1; if (ioctl(file,SPI_IOC_WR_MODE32,&mode)<0){ perror("can't set spi mode"); return; } so i used this code setting spi_ioc_transfer. xfer[0].cs_change = 0; /* Keep CS activated */ xfer[0].delay_usecs = 0, //delay in us xfer[0].speed_hz = 12000000, //speed xfer[0].bits_per_word = 8, // bites per word 8 but cs still work and affect clk. this is my /boot/armbianEnv.txt verbosity=1 logo=disabled console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 rootdev=UUID=4d25b54f-cc4d-4215-93e3-b5e3868e5a06 rootfstype=ext4 overlays=uart1 uart2 spi-spidev param_spidev_spi_bus=1 param_spidev_spi_cs=1 Thank you.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines