disconnect propboard and 12blocks program goes haywire
pongmstr2
Posts: 16
so when im running a program using 12 blocks everything is fine untill i disconnect the usb cable.· There is a small red light next to the usb port on the proto board that starts flashing and the program starts acting randomly.· Does anyone know how to fix this??·
thanks in advance, Henry
thanks in advance, Henry
Comments
Hanno
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Co-author of the official Propeller Guide- available at Amazon
Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here),
12Blocks, the block-based programming environment (thread here)
and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer
--Henry--
--Henry--
12Blocks let's you edit your program's parameters while it's running- and it gives you all sorts of debugging tools like "view pins", "view variables" and the terminal. These tools require a communication link with the Propeller. Currently when you pull out the usb plug, the Propeller side doesn't handle things well. I've talked to the guys at ftdi and hope to release a fix shortly. When you're loading a program from the Propeller Tool without support for debugging, no communication happens after the initial "load"- so the Propeller doesn't get reset.
Hanno
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Co-author of the official Propeller Guide- available at Amazon
Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here),
12Blocks, the block-based programming environment (thread here)
and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer
http://forums.parallax.com/showthread.php?p=847290 (and interior links)
Hopefully Parallax can correct these in subsequent revs. BTW, I doubt that FTDI can be of much help. It's not a problem with their chip.
-Phil
Thanks for the helpful pointer. My software fix is just as you described- a mode where the firmware doesn't transmit to the PC. The firmware will be in this mode whenever possible- and when the user presses "pause". I initially thought ftdi was to blame- the reset signal for the propeller was coming from their chip even though the dtr shouldn't have been toggled. Your explanation of it toggling due to power state change makes sense. I mainly use protoboards where I disconnect the propplug- so I didn't see this issue until very recently.
Hanno
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Co-author of the official Propeller Guide- available at Amazon
Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here),
12Blocks, the block-based programming environment (thread here)
and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer