Increasing memory on propeller- question
Rforbes
Posts: 281
Hey everyone,
Is there a way to access the entire eeprom so that it can be used for spin code when the eeprom is 64kb? I'm working with a spinneret, and I'm really pushing the limit on the lower 32kb. I'm mainly just asking this out of curiosity sake.... it seems some of you might have run into this problem before? Sorry if this question has been answered a bazillion times, I did a quick search and didn't really find a straight forward answer.
Thanks in advance,
Robert
Is there a way to access the entire eeprom so that it can be used for spin code when the eeprom is 64kb? I'm working with a spinneret, and I'm really pushing the limit on the lower 32kb. I'm mainly just asking this out of curiosity sake.... it seems some of you might have run into this problem before? Sorry if this question has been answered a bazillion times, I did a quick search and didn't really find a straight forward answer.
Thanks in advance,
Robert
Comments
Propforth has some ways to use additonal EEPROM as a primitive file system storage, you can maybe get some ideas from that and adapt it to you r purpose?
You could also you the SD as storage for scripts. Propforth lets us call (and forget) scripts right off the SD, so we can have programs of pretty much unlimited size, as long as its less than 32k at a time. You can also storage and serve HTML files.
If you like any of those idead, you can copy them in spin, etc.
Today SPIN is a 16 bit language. That is, you get access to 32KB of hub RAM and 32KB of ROM. There are alternatives for a "single program" bigger than 32KB beyond SPIN, but they are generally slower and require special hardware. If you can break you problem up into several smaller programs, you can use one of the SD Card loaders to load one SPIN program at a time based on the what you need.
If you don't mind a performance hit, then it's worth looking at some alternatives. SD Card can be used with propeller-gcc for larger C programs, although that is slower than other hardware solutions because of the way SD Cards work. No one has produced a hardware solution specifically for the Spinneret yet. Something is on the way though.
I'm sure my code could be minimized, and I'm working on that. It's to a point where I have 410 longs free, and I still need to write several more methods for my application.
I'll get there, bit by bit! Uhhh... wow, no pun intended. But sort of.... heh.