Global "debug" using FullDuplexSerial?
Paul
Posts: 263
How would I make OBJ DEBUG : "FullDuplexSerial" available to both the main cog and any child cogs? If I put Debug.Start in the main program, the programs that are started in another cog cannot get to the DEBUG and any DEBUG.tx in those cogs shows an error when compiled.
I almost had it working by putting DEBUG.start in the cog2 (DEBUG is in cog1) but I got odd results (but no errors) when DEBUG.dec was ran in the main program.
I've just spent the morning looking at Propeller Education Kits Labs and both Objects and Counters chapters came very close to answering this but stopped just shy of putting it all together.
Is there some address I should pass to the child cogs to make DEBUG available to them?
Thanks,
Paul
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki Rocks! - propeller.wikispaces.com
I almost had it working by putting DEBUG.start in the cog2 (DEBUG is in cog1) but I got odd results (but no errors) when DEBUG.dec was ran in the main program.
I've just spent the morning looking at Propeller Education Kits Labs and both Objects and Counters chapters came very close to answering this but stopped just shy of putting it all together.
Is there some address I should pass to the child cogs to make DEBUG available to them?
Thanks,
Paul
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki Rocks! - propeller.wikispaces.com
Comments
v1.301
- Incorporated SerialMirror features that allow any any object that uses the
FullDuplexSerialPlus object to write to the same buffer.
John Abshier
Sam with help from Ken described a way to use a wrapper in this thread:
http://forums.parallax.com/showthread.php?p=843764
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki Rocks! - propeller.wikispaces.com