smlcaerus
05-15-2008, 07:21 PM
Hello everyone,
I am doing my first project with a the Propeller, though having a number of years of coding experience, so not new to programming, just the Propeller ways and architecture.
In any case, what I am doing is something like this:
Primary COG:· Startup and Screen/TV control for status, etc
···················Also starts up COG 2 and 3 and 4
Cog 2: FullDuplexSerialExtended
Cog 3:·TV_Terminal
Cog 4: Parser (my code)
In any case, the COG 4's purpose is to parse the incoming data (RS232), into a buffered set of messages for processing and displaying.· It needs to access the FullDuplexSerialExteneded - rxcheck, and rx methods.· But being this was created in the PRIMARY COG, I cant seem to reference it to read bytes to parse.· When I try adding the FULLDUPLEXSERIALEXTENDED in the OBJ section of my parser, the whole application fails to compile as I have exceed MAX NUMBER OF LONGS, I assume this is from having the same object instantiated twice consuming too much memory.
How does one reference the methods of an object instianted in another COG?
Thanks
Shawn
·
I am doing my first project with a the Propeller, though having a number of years of coding experience, so not new to programming, just the Propeller ways and architecture.
In any case, what I am doing is something like this:
Primary COG:· Startup and Screen/TV control for status, etc
···················Also starts up COG 2 and 3 and 4
Cog 2: FullDuplexSerialExtended
Cog 3:·TV_Terminal
Cog 4: Parser (my code)
In any case, the COG 4's purpose is to parse the incoming data (RS232), into a buffered set of messages for processing and displaying.· It needs to access the FullDuplexSerialExteneded - rxcheck, and rx methods.· But being this was created in the PRIMARY COG, I cant seem to reference it to read bytes to parse.· When I try adding the FULLDUPLEXSERIALEXTENDED in the OBJ section of my parser, the whole application fails to compile as I have exceed MAX NUMBER OF LONGS, I assume this is from having the same object instantiated twice consuming too much memory.
How does one reference the methods of an object instianted in another COG?
Thanks
Shawn
·