I searched the forums really hard, but now I am stuck.
In order to understand how the Spin-interpreter is started from another cog, I wrote following program:
1. Spin-Code to blink on pin 27
- start new cog with pasm-prg
- stop it self
2. pasm-prg to start in another cog and
- copy the spin-byte-code (witch is stored in the DATA area as hex)
- start cog 0 with spin-interpreter
The byte-code stored in the DATA area is another spin-program to blink on Pin 26.
I wanted to avoid all the hassle with serial communication (SD-card, EEPROM) just to see, how to load another SPIN-prg to adress 0 in the Hub and how to start it.
I found some examples in the forums and booter.spin - and tried to strip the information down to the necessary.
In order to verify the steps, I used the Gear emulator. All runs well, until the Interpreter should start.
I saw the new Spin-code in Cog 0, but then nothing happens.
Testing on hardware showed the same result: nothing.
Is there someone out there, who would help me please ?
Thank You !