Propellor detecting EEPROM...
A.C. fishing
Posts: 262
Hello.
Would the Propellor detect Flash Memory as EEPROM, and boot up using it?
thanks,
ACfishing
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Would the Propellor detect Flash Memory as EEPROM, and boot up using it?
thanks,
ACfishing
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·Somebody said...
-Never Underestimate the power of human stupidity.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Since this has came up. I understand how the propeller would load it's information into ram, but how would it be initiated?
I'm a little confused how this would be accomplished.
Keep it as simple as you can.....I'm still a newbie with the prop.
James L
I'm not sure what you're asking. Are you asking about the built-in bootstrap loader in the Propeller's ROM or are you asking about what I suggested, that there could be a program loaded into the Propeller's EEPROM that would load something else from an SD card or SPI flash memory?
I'm sorry......again I didn't state my question clearly. (I'm getting a really bad habit of this.)
If there were a small program in the eeprom to be a "SD card program reader" that recalled a program from an SD card or similar, how would the program be initiated after being loaded into memory.
James L
It would probably be provided as a source file with a string constant near the beginning that would give the name of the SD card file to be loaded. This would be compiled and downloaded to the Propeller's EEPROM. When the Propeller was reset, it would (as usual) load the program in EEPROM to RAM and execute it. This program would load the file with the fixed name off the SD card and start the Spin interpreter on it. That's all.
Chip posted a small assembly program fragment that can be used to start a Spin interpreter on a program loaded into memory beginning at location zero. The Propeller OS uses this for loading from 32K pages in EEPROM. I already have the same kind of thing mostly working for SD cards. I'll post it when it's working well enough.
Mike
That was the tid bit of info I was looking for.
I had not seen the assembly program that can be used to start a Spin interpreter on a program in memory.
But thanks......you hit the nail on the head. That is exactly what I need to revise my current system to do. (I will of course have to learn how to use Chip's assembly program to initiate it.....I haven't started with assembly yet.....just trying to get all my ideas working first.)
Thanks Mike......you are getting up to a case of beer (or whatever you drink). The abyss of knowledge.
James L