pulp-platform / pulpino

An open-source microcontroller system based on RISC-V
http://www.pulp-platform.org
Other
880 stars 296 forks source link

SPI transfer timed out #97

Closed AmirAliEbrahimi closed 7 years ago

AmirAliEbrahimi commented 7 years ago

Hello, I'm trying to run PULPino on MYIR Z-turn Board (it's a xc7z020clg400-1 Zynq evaluation board),The problem is when I run ./spiload helloworld.stim.txt , I get this error:

Device has been reset
spidev spi32766.0: SPI transfer timed out
Write Error: Connection timed out 
Segmentation fault

BTW I'm change the devicetree , the original one makes the kernel hangs at Starting kernel ... Any idea how can I fix this? Thanks

gautschimi commented 7 years ago

Hm looks strange. I'd try to run it again and specify a timeout:

./spiload helloworld.stim.txt --timeout=30

(for a 30 seconds timeout)

but I'm not sure it helps sorry. I'd also check for error messages and warnings in the log files when you created the bitstream but also the kernel etc. Maybe you get some hint on what went wrong.

best, Michael

On 07/27/2017 09:35 PM, AmirAliEbrahimi wrote:

Hello, I'm trying to run PULPino on MYIR Z-turn Board (it's a xc7z020clg400-1 Zynq evaluation board),The problem is when I run |./spiload helloworld.stim.txt| , I get this error:

Device has been reset spidev spi32766.0: SPI transfer timed out Write Error: Connection timed out Segmentation fault

BTW I'm change the devicetree , the original one makes the kernel hangs at |Starting kernel ...| Any idea how can I fix this? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pulp-platform/pulpino/issues/97, or mute the thread https://github.com/notifications/unsubscribe-auth/ARsRnbzhuLSXIWJh946mQKIvf7sG2aCTks5sSOaEgaJpZM4OlvYK.

--

Michael Gautschi phone: +41 44 632 99 58 Integrated Systems Laboratory fax: +41 44 632 11 94 ETZ J69.2 e-mail: gautschi@iis.ee.ethz.ch Gloriastr. 35 ETH Zentrum CH-8092 Zurich

wang1991jun commented 7 years ago

i want to use SPI.but i don't how to play.it diffrent with before i work.youcan tell me how to init