How are people loading data to hubram?
Baggers
Posts: 3,019
Hi all,
Just a quick question, I've recently joined the Prop2Emu club ( just waiting on the add-on boards, so reading up etc. )
And I wanted to know what people are using to load bigger programs than just 512 longs? as PNut, which I assume so far, can only do programs for a single cogs worth.
Are people using the SD card for their data? how are they filling the 128K ( if at all ) when writing programs for the prop2.
The reason I'm asking is I'm wanting to get onto doing some graphics stuff, and wondering what's the best/optimal way to get big data into hub ram that people have come up with so far.
Cheers,
Jim.
Just a quick question, I've recently joined the Prop2Emu club ( just waiting on the add-on boards, so reading up etc. )
And I wanted to know what people are using to load bigger programs than just 512 longs? as PNut, which I assume so far, can only do programs for a single cogs worth.
Are people using the SD card for their data? how are they filling the 128K ( if at all ) when writing programs for the prop2.
The reason I'm asking is I'm wanting to get onto doing some graphics stuff, and wondering what's the best/optimal way to get big data into hub ram that people have come up with so far.
Cheers,
Jim.
Comments
pnut can load larger programs to the hub. The first DAT pasm program (starts at $E80) runs in cog0 first. You can use that to run other cogs (if you have a DE2), or just coginit a new pasm program in cog0 (on DE0). Take a look at my SerialDebugger program - it also reboots the ROM Monitor (you need to hit <space> for the autoboard to work and display something). Be careful of key bounce if you are using the monitor to look at some results - multiple resets causes problems & clears the hub.
BTW the sticky has good info on how to get your DE0/DE2 running.
Postedit 27 March 2013:
The loader part of pnut can only load about 504 longs to hub. This limit is $165F using $E80 as the start.
With the monitor you can keep P2 running, stop, start cogs and upload download code through a terminal. When doing this, I often run two Prop Plugs. One on the default port, another on some free pins. Upload program, which then fires off a monitor COG as part of it's initialization. I keep a terminal connected to the "free pins" Prop Plug, which then basically stays on. Tap the space bar, enter monitor and do whatever it is needs doing.
You might not have seen this yet: http://forums.parallax.com/attachment.php?attachmentid=98587&d=1357887830 That's a monitor document I wrote up a while back.
I shall have a play tomorrow, not had time at the computer today, as I was doing a full drive backup, so left it to it, whilst I made snow bunnies with my girls
Should hopefully get the add-on boards any day now, so will be able to really have a good play!
Been dying to join the P2emu club I've had the odd curiosity look at the forum, but couldn't bring myself to take part, as it's hard when you can't play along lol and you all looked like you're having great fun too! can't wait!