P2 Challenge - CLDebug
ctwardell
Posts: 1,716
The challenge is to create a small interactive debugger for the P2 that mainly resides in the CLUT using CLMM and leaves as much COG space as possible so that the rest of the COG can run the code being debugged.
Ideally this would work with a serial terminal only, but given the small space available we may need a host side interface to do bin/dec/hex conversion, formatted display etc.
With a host side application the debugger could dynamically swap code in/out depending on the specific functionality needed at the time.
C.W.
Ideally this would work with a serial terminal only, but given the small space available we may need a host side interface to do bin/dec/hex conversion, formatted display etc.
With a host side application the debugger could dynamically swap code in/out depending on the specific functionality needed at the time.
C.W.
Comments
C.W.
That is very cool stuff, I don't get along well with SPIN, so it may take a while to fully digest.
This give me the idea that we could do an SMM, the Serial Memory Model, that gets it's code from the serial port running on another thread on the P2 or via task switching on a P1.
There could be a version that resides mostly in the CLUT or one that uses regular COG memory when the CLUT is needed by the application.
It would obviously be very slow but might have some novel uses as the data stream could be dynamically created by the controlling application based on feedback being transmitted back.
C.W.