Propeller Problems with Large Code
rcm14
Posts: 11
Has anyone ever had problems with the Propeller not operating correctly with large codes?
I wrote a large program which will ONLY work if I separate the program into halves and run each half on its own cog. The flow is: go through the first half, initialize the second half in a new cog, shut down the first half, go through the second half, initialize the first half in a new cog (only when prompted by a user from the serial terminal), and finally shut the second half down.
This seems ridiculous. I am not sure what the problem is. Any thoughts or suggestions?
Thanks.
I wrote a large program which will ONLY work if I separate the program into halves and run each half on its own cog. The flow is: go through the first half, initialize the second half in a new cog, shut down the first half, go through the second half, initialize the first half in a new cog (only when prompted by a user from the serial terminal), and finally shut the second half down.
This seems ridiculous. I am not sure what the problem is. Any thoughts or suggestions?
Thanks.
Comments
I believe this space is used as the stack for cog 0 when the Prop starts so if you don't have any empty space the stack over runs part of the program.
There are options of using external memory where you start out with part of your program and the lauch a different program from EEPROM or a SD card. There are a couple of programs out there to do this. I've used a modified version of Dr_A's KyeDos myself. I think Cluso99 also has a multi program OS for the Prop (I think he leaves this "OS" on the EEPROM (which is write protected) which in turn runs programs from SD cards).
Post your code.