4 Replies Latest reply on Feb 2, 2015 1:29 PM by DiegoV_Intel

    Freezes after configuring GPIO

    NikkiC

      I'm trying to configure IO.7 on Edison Arduino board exactly as described in "Edison GPIO Pin Multiplexing Guide" example 2. Nothing is physically connected to IO.7 at the time when I execute these commands.

       

      echo 48 > /sys/class/gpio/export

      echo 255 > /sys/class/gpio/export

      echo 223 > /sys/class/gpio/export

      echo 214 > /sys/class/gpio/export

      echo low > /sys/class/gpio/gpio214/direction

      echo low > /sys/class/gpio/gpio255/direction

      echo high > /sys/class/gpio/gpio223/direction

      echo in > /sys/class/gpio/gpio48/direction

      echo high > /sys/class/gpio/gpio214/direction

       

      Right after that the system begin experience freezes. I think it probably relates to WiFi but not for sure. If I ping edison from outside, I see this picture:

       

      (before GPIO config)

      64 bytes from 10.10.1.41: icmp_seq=730 ttl=64 time=88.202 ms

      64 bytes from 10.10.1.41: icmp_seq=731 ttl=64 time=304.347 ms

      64 bytes from 10.10.1.41: icmp_seq=732 ttl=64 time=8.439 ms

      64 bytes from 10.10.1.41: icmp_seq=733 ttl=64 time=12.267 ms

      64 bytes from 10.10.1.41: icmp_seq=734 ttl=64 time=65.159 ms

      64 bytes from 10.10.1.41: icmp_seq=735 ttl=64 time=580.178 ms

      64 bytes from 10.10.1.41: icmp_seq=736 ttl=64 time=207.988 ms

      64 bytes from 10.10.1.41: icmp_seq=737 ttl=64 time=127.942 ms

      64 bytes from 10.10.1.41: icmp_seq=738 ttl=64 time=336.750 ms

      64 bytes from 10.10.1.41: icmp_seq=739 ttl=64 time=269.400 ms

      (after GPIO config)

      Request timeout for icmp_seq 740

      Request timeout for icmp_seq 741

      Request timeout for icmp_seq 742

      Request timeout for icmp_seq 743

      Request timeout for icmp_seq 744

      Request timeout for icmp_seq 745

      Request timeout for icmp_seq 746

      Request timeout for icmp_seq 747

      Request timeout for icmp_seq 748

      Request timeout for icmp_seq 749

      Request timeout for icmp_seq 750

      Request timeout for icmp_seq 751

      Request timeout for icmp_seq 752

      Request timeout for icmp_seq 753

      64 bytes from 10.10.1.41: icmp_seq=740 ttl=64 time=14608.834 ms

      64 bytes from 10.10.1.41: icmp_seq=741 ttl=64 time=13604.610 ms

      64 bytes from 10.10.1.41: icmp_seq=742 ttl=64 time=12600.928 ms

      64 bytes from 10.10.1.41: icmp_seq=743 ttl=64 time=11595.918 ms

      64 bytes from 10.10.1.41: icmp_seq=744 ttl=64 time=10593.000 ms

      64 bytes from 10.10.1.41: icmp_seq=745 ttl=64 time=9587.996 ms

      64 bytes from 10.10.1.41: icmp_seq=746 ttl=64 time=8586.305 ms

      64 bytes from 10.10.1.41: icmp_seq=747 ttl=64 time=7582.252 ms

      64 bytes from 10.10.1.41: icmp_seq=748 ttl=64 time=6578.423 ms

      64 bytes from 10.10.1.41: icmp_seq=749 ttl=64 time=5574.765 ms

      64 bytes from 10.10.1.41: icmp_seq=750 ttl=64 time=4859.752 ms

      64 bytes from 10.10.1.41: icmp_seq=751 ttl=64 time=3855.898 ms

      Request timeout for icmp_seq 766

      Request timeout for icmp_seq 767

      Request timeout for icmp_seq 768

      64 bytes from 10.10.1.41: icmp_seq=755 ttl=64 time=14839.038 ms

      64 bytes from 10.10.1.41: icmp_seq=756 ttl=64 time=13843.308 ms

      64 bytes from 10.10.1.41: icmp_seq=757 ttl=64 time=12841.166 ms

      64 bytes from 10.10.1.41: icmp_seq=758 ttl=64 time=11837.046 ms

      64 bytes from 10.10.1.41: icmp_seq=759 ttl=64 time=10835.504 ms

      64 bytes from 10.10.1.41: icmp_seq=760 ttl=64 time=9833.720 ms

      64 bytes from 10.10.1.41: icmp_seq=761 ttl=64 time=8832.493 ms

      64 bytes from 10.10.1.41: icmp_seq=762 ttl=64 time=7832.047 ms

      64 bytes from 10.10.1.41: icmp_seq=763 ttl=64 time=6832.776 ms

      64 bytes from 10.10.1.41: icmp_seq=764 ttl=64 time=5829.140 ms

      64 bytes from 10.10.1.41: icmp_seq=765 ttl=64 time=4826.630 ms

      64 bytes from 10.10.1.41: icmp_seq=766 ttl=64 time=3821.600 ms

      64 bytes from 10.10.1.41: icmp_seq=767 ttl=64 time=2820.348 ms

      64 bytes from 10.10.1.41: icmp_seq=769 ttl=64 time=1049.340 ms

      64 bytes from 10.10.1.41: icmp_seq=770 ttl=64 time=46.643 ms

       

      64 bytes from 10.10.1.41: icmp_seq=771 ttl=64 time=12613.544 ms

      64 bytes from 10.10.1.41: icmp_seq=772 ttl=64 time=11613.256 ms

      64 bytes from 10.10.1.41: icmp_seq=773 ttl=64 time=10610.642 ms

      64 bytes from 10.10.1.41: icmp_seq=774 ttl=64 time=9606.947 ms

      64 bytes from 10.10.1.41: icmp_seq=775 ttl=64 time=8604.418 ms

      64 bytes from 10.10.1.41: icmp_seq=776 ttl=64 time=7604.102 ms

       

      It seems to be ~15 secs freezes. They last for hours. One time I leave the system in such state for a night, and at the morning found it "self-fixed". But usually I cannot wait and just reboot. The dmesg output is clean (does not have anything unusual), the rate of interrupts seems to be normal.