Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI gunk stuck in serial on power off #64

Open
jingman opened this issue Feb 14, 2014 · 2 comments
Open

SPI gunk stuck in serial on power off #64

jingman opened this issue Feb 14, 2014 · 2 comments

Comments

@jingman
Copy link
Collaborator

jingman commented Feb 14, 2014

I was recovering from an "SPI error" and found that on every power cycle, there was a bit of SPI "gunk" spit into the serial prompt right when I powered it off. The gunk persists even after unplugging/replugging.

...
SPI 0xff?
SPI 0xff?
SPI 0xff?
SPI 0ü
Hello from Pinoccio! 
 (Shell based on Bitlash v2.0 (c) 2014 Bill Roy)
 16351 bytes free
 Lead Scout ready
> SPIü
Hello from Pinoccio! 
 (Shell based on Bitlash v2.0 (c) 2014 Bill Roy)
 16351 bytes free
 Lead Scout ready
> SPI 0xþ
Hello from Pinoccio! 
 (Shell based on Bitlash v2.0 (c) 2014 Bill Roy)
 16351 bytes free
 Lead Scout ready

I ran scout.daisy;scout.daisy and there was no response (frozen). I power cycled the board and got the SPI dump problem immediately on boot. Power cycled again, scout.daisy;scout.daisy completed successfully, but I still get SPI in serial on every power-off.

@matthijskooijman
Copy link
Collaborator

Weird... I wonder where that output actuall comes from. Grepping through the wifi library, it seems the only messages it outputs containing "SPI" are:

src/GSModule/GSCore.cpp:    dump_byte("SPI: >> ", out, false);
src/GSModule/GSCore.cpp:        SERIAL_PORT_MONITOR.println("SPI 0xff?");
src/GSModule/GSCore.cpp:        SERIAL_PORT_MONITOR.println("SPI 0x00?");
src/GSModule/GSCore.cpp:        SERIAL_PORT_MONITOR.println("SPI ACK received?");

The first is only enabled when GS_DUMP_SPI is defined, which I don't suppose you have Weird...enabled. The other messages don't actually dump the byte received, so that doesn't explain the ü and þ characters. I'm not sure what is going on here, but I'll keep an eye if I find something similar.

@amcjen
Copy link
Member

amcjen commented Feb 18, 2014

Probably related to: Pinoccio/library-gainspan-s2w#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants