External memory for spin code
richaj45
Posts: 179
Hello:
If an external serial RAM chip was attached to the prop, and if the driver was available, then is it possible for the spin interpreter to process byte codes form that external RAM?
If so then spin programs could be very large indeed.
Thanks for your time.
rich
If an external serial RAM chip was attached to the prop, and if the driver was available, then is it possible for the spin interpreter to process byte codes form that external RAM?
If so then spin programs could be very large indeed.
Thanks for your time.
rich
Comments
Have you seen this thread?
I'd think it wouldn't be too hard to modify Dave Hein's cool (understatement) program to read the binary objects from an external RAM chip. You'd need a way to load the binary onto the chip though (not trivial but real hard either).
Duane's suggestion is best.
LOL. I totally forgot about that. Some demos were posted here: http://forums.parallax.com/showthread.php/128921-Big-Spin-is-it-still-a-pipedream?p=976896&viewfull=1#post976896
@Dave, Having an object loader that works is great.
This works!
Precompile parts of your spin program and save the binary files on an SD card and then load them in as needed. The code could also be stored in Flash or any external ram.
I'm working through the process of splitting a typical object into two parts - the pasm part which can be preloaded and moved into a cog, and then the resident driver part. I'll write it up when I get it finished. Every object that has cog pasm code could be rewritten in this way to save 2k of hub ram each time.