This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Native spi bug?
#1
Video 
Today im try tinkerboard as spi master. Look on examples gpic c library, compile spiSpeed.c and run without connections.. Tinker stops responding via ssh..  Angry
How to correct use spi ?  Dodgy



UPD: use some another examples

Quote:linaro@tinkerboard:~$ ./test
spi mode: 0
bits per word: 8
max speed: 500000 Hz (500 KHz)

FF 60 A7 ED 40 9F
63 7F 00 00 00 00
00 00 00 00 2F 64
65 76 2F 73 70 69
64 65 76 30 2E 30
00 00 6E 75 65 61
62 69
linaro@tinkerboard:~$ gpio readall
 +-----+-----+---------+------+---+--Tinker--+---+------+---------+-----+-----+
 | CPU | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | CPU |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
 | 252 |   8 |   SDA.1 |  I2C | 1 |  3 || 4  |   |      | 5v      |     |     |
 | 253 |   9 |   SCL.1 |  I2C | 1 |  5 || 6  |   |      | 0v      |     |     |
 |  17 |   7 | GPIO0C1 |   IN | 1 |  7 || 8  | 0 | IN   | GPIO5B1 | 15  | 161 |
 |     |     |      0v |      |   |  9 || 10 | 1 | IN   | GPIO5B0 | 16  | 160 |
 | 164 |   0 |  SCLK.0 |  SPI | 0 | 11 || 12 | 1 | I2S  | I2S_CLK | 1   | 184 |
 | 166 |   2 |  MOSI.0 |  SPI | 0 | 13 || 14 |   |      | 0v      |     |     |
 | 167 |   3 |  MISO.0 |  SPI | 1 | 15 || 16 | 1 | IN   | GPIO5B2 | 4   | 162 |
 |     |     |    3.3v |      |   | 17 || 18 | 1 | IN   | GPIO5B3 | 5   | 163 |
 | 257 |  12 |  MOSI.2 |  SPI | 0 | 19 || 20 |   |      | 0v      |     |     |
 | 256 |  13 |  MISO.2 |  SPI | 1 | 21 || 22 | 0 | IN   | GPIO5C3 | 6   | 171 |
 | 254 |  14 |  SCLK.2 |  SPI | 0 | 23 || 24 | 1 | SPI  | CE0.2   | 10  | 255 |
 |     |     |      0v |      |   | 25 || 26 | 1 | SPI  | CE1.2   | 11  | 251 |
 | 233 |  30 | GPIO7C1 |   IN | 1 | 27 || 28 | 1 | IN   | GPIO7C2 | 31  | 234 |
 | 165 |  21 |   CE0.0 |  SPI | 1 | 29 || 30 |   |      | 0v      |     |     |
 | 168 |  22 |   CE1.0 |  SPI | 1 | 31 || 32 | 1 | IN   | GPIO7C7 | 26  | 239 |
 | 238 |  23 | GPIO7C6 |   IN | 1 | 33 || 34 |   |      | 0v      |     |     |
 | 185 |  24 |  I2S_FS |  I2S | 0 | 35 || 36 | 1 | IN   | GPIO7A7 | 27  | 223 |
 | 224 |  25 | GPIO7B0 |   IN | 1 | 37 || 38 | 1 | I2S  | I2S_SDI | 28  | 187 |
 |     |     |      0v |      |   | 39 || 40 | 0 | I2S  | I2S_SDO | 29  | 188 |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 | CPU | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | CPU |
 +-----+-----+---------+------+---+--Tinker--+---+------+---------+-----+-----+
linaro@tinkerboard:~$
Message from syslogd@tinkerboard at Feb 27 13:04:13 ...
 kernel:[ 1329.523974] Internal error: Oops: 80000005 [#1] SMP ARM

Message from syslogd@tinkerboard at Feb 27 13:04:13 ...
 kernel:[ 1329.527446] Process (anacron) (pid: 2035, stack limit = 0xe62a8258)

Message from syslogd@tinkerboard at Feb 27 13:04:13 ...
 kernel:[ 1329.527457] Stack: (0xe62a9f58 to 0xe62aa000)

Message from syslogd@tinkerboard at Feb 27 13:04:13 ...
 kernel:[ 1329.527469] 9f40:                                                       00000031 e7fb8000

Message from syslogd@tinkerboard at Feb 27 13:04:13 ...
 kernel:[ 1329.527485] 9f60: e7fb8040 eda82d00 e62a9f94 e62a9f78 c0250d5c c02334b8 7f7c0888 ffffffff

Message from syslogd@tinkerboard at Feb 27 13:04:13 ...
 kernel:[ 1329.527501] 9f80: 00000000 00000006 e62a9fa4 e62a9f98 c0233564 c0250cac 00000000 e62a9fa8

Message from syslogd@tinkerboard at Feb 27 13:04:13 ...
 kernel:[ 1329.527517] 9fa0: c01075c0 c0233540 7f7c0888 ffffffff 00000031 bed30524 b6fba2c4 00000002

Message from syslogd@tinkerboard at Feb 27 13:04:13 ...
 kernel:[ 1329.527532] 9fc0: 7f7c0888 ffffffff 00000000 00000006 b6fc2ce8 bed305d0 00000001 00000031

Message from syslogd@tinkerboard at Feb 27 13:04:13 ...
 kernel:[ 1329.527548] 9fe0: 00000000 bed30540 00000000 b6cbc532 00010030 00000031 00000000 00000000

Message from syslogd@tinkerboard at Feb 27 13:04:13 ...
 kernel:[ 1329.527636] Code: bad PC value
Reply
#2
The informations you gave are scarce:
  • Kernel ?
  • OS ?
  • C library ?
Light blue words might be a link. Have you try to click on them? Big Grin
Reply
#3
linaro@tinkerboard = TinkerOS
Armbian. Lightweight Debian Stretch or Ubuntu Bionic for Tinker Board.
Reply
#4
Sorry I wasn't such acute observer.
Light blue words might be a link. Have you try to click on them? Big Grin
Reply
#5
Did you solve this ?
Reply
#6
(04-14-2020, 05:47 PM)carloxic Wrote: Did you solve this ?

I have the same problem with Tinker Board running Debian:
Linux tinkerboard 4.4.132+ #1 SMP Wed Aug 21 19:15:55 CST 2019 armv7l GNU/Linux

I'm trying to work with SPI2
I also see following kernel message:
Message from syslogd@tinkerboard at Jul 9 13:25:11 ...
kernel:[ 501.326337] Internal error: Oops: 5 [#8] SMP ARM
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)