bst terminal resets Prop
I'm using bst 0.19.3 under OS X 10.6.3 with a Propeller Professional Development Board. If I leave the bst terminal window open and connected when I compile and load to RAM, the prop gets reset when the terminal window comes to the front. Is this expected behavior? Is the terminal window only for use with Prop programs loaded into EEPROM?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store
Comments
I saw this with another hardware when the polarity of the DTR signal was wrong. I changed a NPN transistor to a PNP type to overcome the problems. If you have a terminal program where you can toggle DTR on and off, you could find out on which of the edges the PPDB resets: on DTR going down, or going up. I don't know if there are schematics for the PPDB. Does it also have a transistor for the DTR to reset signal line?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pullmoll's Propeller Projects
http://www.parallax.com/Portals/0/Downloads/docs/prod/schem/PPDB_A_Schematic.pdf
Jim
There is an NPN transistor on DTR. But I'm a software guy so I really have no idea what that means.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store
I think that if you try e.g. gtkterm, which allows to toggle DTR, that you will see a reset happen when you turn it on after it was off, i.e. on the rising edge. With a PNP transistor the other, falling, edge is used to actually reset the propeller.
Don't ask me why the PPDB or the DracBlade don't show this kind of trouble under Windows. I can only imagine that Windows keeps DTR high all the time and that starting the serial terminal thus does not reset the propeller.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pullmoll's Propeller Projects
Post Edited (pullmoll) : 4/12/2010 5:07:28 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store
Windows allows not touching the DTR on open, as does Linux. OSX does not.
Since I do my testing with a Prop-Plug, on OSX with a Prop-Plug you can load/run and bring the terminal forward once without it resetting. A disconnect/reconnect of the terminal will cause a reset. I don't know how the PPDB is put together, but I'd assume it's using the FTDI chip and configured the same as a Prop-Plug or Demo board. If it's a problem with that then I can fix it. If it's not and your're on OSX then I'm afraid you are SOL. I just can't get the port open without OSX hitting the DTR.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You only ever need two tools in life. If it moves and it shouldn't use Duct Tape. If it does not move and it should use WD40.
If this is going to be some hair-pulling signal timing debugging nightmare, don't worry about it. I'm sure there are more productive ways you could be spending your time.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store
Yes, you should. Which *precise* version of bst are you using right now? I made some changes to the latest pre-releases that might affect the state of the DTR on OSX.
Hair notwithstanding, I would like to fix it if I can.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You only ever need two tools in life. If it moves and it shouldn't use Duct Tape. If it does not move and it should use WD40.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store