Reset Under Program Control
Brian Fairchild
Posts: 549
Is there any way to restart the Prop under program control.
I have a app which is loaded into the EEPROM and which runs on reset. After a bit of housekeeping it loads another spin binary from an SD card and runs it. I want to easily get back to square one from the second application. I realise I could write some code to load the original spin binary from the EEPROM and execute that but I was wondering if there was any easy way?
I've tried playing with Coginit(Cogid, ...) but that only restarts the currently running app.
What I want is the propeller version of 'jmp 0x000'.
I have a app which is loaded into the EEPROM and which runs on reset. After a bit of housekeeping it loads another spin binary from an SD card and runs it. I want to easily get back to square one from the second application. I realise I could write some code to load the original spin binary from the EEPROM and execute that but I was wondering if there was any easy way?
I've tried playing with Coginit(Cogid, ...) but that only restarts the currently running app.
What I want is the propeller version of 'jmp 0x000'.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit my site -> [url=Http://www.rawcircuits.com]www.rawcircuits.com[/url]
Thanks.
FWIW... coginit(cogid,$F004,@Stack) also does it.