Cog Memory Dump?
grahamreitz
Posts: 56
Is there a method to dump the contents of a cog's memory? I am working in pasm. It doesn't need to be real time. All that is necessary is to dump the contents once a pasm program has completed.
I apologize if this has been answered before. I entered 'cog,memory,dump' (no quotes) and received no results. Although, I found a post by cluso that had exactly that phrase. It only seems to work if I enter only one search item.
Thanks,
graham
I apologize if this has been answered before. I entered 'cog,memory,dump' (no quotes) and received no results. Although, I found a post by cluso that had exactly that phrase. It only seems to work if I enter only one search item.
Thanks,
graham
Comments
There's no way to access the cog's memory from another cog, so any dump scheme has to be made part of the program running in the cog. The easiest way to do this would be to just add a loop to the end of your program to copy the contents of the cog to a 2K buffer in the hub. You can then dump it from the hub buffer any way you want.
Post Edited (Mike Green) : 9/5/2009 12:55:59 AM GMT
You could also try my BMA debugger which has a dump feature and other things. It is pure Spin/PASM.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Propeller Tools