On the fly reprogramming of one COG
Onni
Posts: 7
This is one of them newbie "is it possible to..." questions.
What I want to do is this:
One COG runs the FullDuplex
The second COG does the higlevel protocoll stuff:
Reading "packages" and confirms checksums and so forth. And when it has recieved a full program of say 5k it then starts the third COG with the program just recived.
Why do this? Isn't it simpler to just reprogram the whole chip in one go like you usualy do?
Two reasons:
1: I want to do this over a radio. (19.2kbaud, packages aren't guaranteed to arrive, so I need some software to require resending of lost ones.)
2: I want the other COGs to run during reprogramming.
Can this be done with both spin and assembler code?· (If it only works with spin, thats enough.)
The program should of course be aware of the other COGs variables. Is that a problem?
I imagine rewriting the code. Compiling the whole project (so that variable addresses stay the same). Extracting the range from the .binary I know is the part I want to resend. Fireing up my homemade pc-software to send the chunk over the radio.
·
What I want to do is this:
One COG runs the FullDuplex
The second COG does the higlevel protocoll stuff:
Reading "packages" and confirms checksums and so forth. And when it has recieved a full program of say 5k it then starts the third COG with the program just recived.
Why do this? Isn't it simpler to just reprogram the whole chip in one go like you usualy do?
Two reasons:
1: I want to do this over a radio. (19.2kbaud, packages aren't guaranteed to arrive, so I need some software to require resending of lost ones.)
2: I want the other COGs to run during reprogramming.
Can this be done with both spin and assembler code?· (If it only works with spin, thats enough.)
The program should of course be aware of the other COGs variables. Is that a problem?
I imagine rewriting the code. Compiling the whole project (so that variable addresses stay the same). Extracting the range from the .binary I know is the part I want to resend. Fireing up my homemade pc-software to send the chunk over the radio.
·
Comments
So yes it is possible but possibly a bit hard.
I imagined that spin would be easier sinse it was interpreted and "only data".
I will look into that thread.
Thanks again.