Closed vampjaz closed 7 years ago
Thanks for all the info! I don't know why that would happen, but you've given us plenty to try to duplicate it on our side. We'll try it out and see if we can get to the bottom of it.
Now I can't get it to upload at all after restarting. Another note, it does error if the prop is unplugged:
Opening file 'Graphics_Demo.binary'
ERROR: Unable to connect to port /dev/tty.usbserial-AH00OPJZ
$ proploader -v
PropLoader v1.0-24 (2017-01-05 10:00:59 g40ee527)
Update: I tried using the other serial port and it worked:
$ openspin Graphics_test.spin -o temp.binary && proploader -p /dev/tty.usbserial-AH00OPJZ temp.binary
Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor.
Version 1.00.80 Compiled on Mar 12 2017 15:40:19
Compiling...
Graphics_test.spin
|-display.tv.spin
|-display.tv.graphics.spin
Done.
Program size is 4668 bytes
Opening file 'temp.binary'
^C
$ openspin Graphics_test.spin -o temp.binary && proploader -p /dev/cu.usbserial-AH00OPJZ temp.binary
Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor.
Version 1.00.80 Compiled on Mar 12 2017 15:40:19
Compiling...
Graphics_test.spin
|-display.tv.spin
|-display.tv.graphics.spin
Done.
Program size is 4668 bytes
Opening file 'temp.binary'
Downloading file to port /dev/cu.usbserial-AH00OPJZ
4668 bytes remaining
3644 bytes remaining
2620 bytes remaining
1596 bytes remaining
572 bytes remaining
4668 bytes sent
Verifying RAM
Download successful!
I had been using the /dev/tty.usbserial-XXXXX
port and it worked for some of the time. When I switched to the /dev/cu.usbserial-XXXXX
port, it started working again. Could be a problem with the FTDI drivers?
Yes, it could be a driver issue.
Is one port a USB 3.0 and others USB 2.0?
To see what driver is connected to the port when the board is connected...
kextstat | grep FTDI
Both ports on my laptop are USB 3; and it looks like the FTDI driver loads. Side node:
$ proploader -P
/dev/cu.usbserial-AH00OPJZ
The CU port is the only one listed...
Oh! I'm sorry, I somehow missed that! The /dev/cu.usbserial ports is all we use and I assumed you had used -P option to determine what port to use. The "cu.usbserial" port should continue to work great for you; sorry for the confusion and trouble.
@dbetz - [See thread above] I think we specifically filter out the /dev/tty. ports from the list returned by -P option, right? If so, based on this interaction, we should add a special error message that leads the user in the right direction if they end up requesting a /dev/tty. port when communicating. What do you think?
Probably a good idea.
[EDITED by PropGit - Issue title renamed; it was first thought to be a problem with opening a file (and hanging) but later seemed to be a problem due to specifying a tty port instead of a cu port on the Mac]
I'm on a Mac, trying to load some code on to my Quickstart Board, and I'm having a very strange error. When I'm in the spin-standard-library repository that I cloned to test out the demos, I can compile (using OpenSpin) all the files fine and upload them over serial to my Prop. However, if I copy the files anywhere else on my computer, PropLoader will just say "Opening file 'temp.binary'" and hang forever.
The weird thing is that when I copy any other spin or binary files into the Spin Standard Library directory, they can upload fine. When the process hangs, it doesn't use any CPU, it just resets the prop and prints that message. I sampled the execution after it did this:
Any ideas? The proploader binary is in
/Users/dev/Documents/Programming/git/PropLoader/proploader
and is symlinked to/usr/local/bin/
. The only directory that seems to work when uploading is/Users/dev/Documents/Programming/git/spin-standard-library
and its subfolders.