SD / SPI flash memory / EEPROM Questions about the solutions
AS
Posts: 149
in Propeller 1
In the SD card I can have various programs to launch, is useful for example a workshop or in a demonstration I can change the program only pressing a button, and see in a LCD what is running or to change a mode, if I have big programs is better change the program. ok!
For example if I want to change 3 programs from the SD card, each program need have the possibility to change for other program! Other solutions?
With a ".spin" program I can launch a "C" (http://learn.parallax.com/node/370) but how can I launch from "C"?
(https://github.com/parallaxinc/PropWare/tree/develop/Examples/Spin2Cpp)
I can make a ".cpp" file from a spin!! I will test it soon! :thumb:
Other Questions:
When I use a SPI flash memory I can have programs largest than 64kb of the EEPROM? ok! just to have sure!
With the SPI flash memory I really need the EEPROM? Sorry my ignorance!
I can manage files in a SPI flash memory like in a SD card? Or SPI flash memory is only to help the EEPROM?
Thanks!
For example if I want to change 3 programs from the SD card, each program need have the possibility to change for other program! Other solutions?
With a ".spin" program I can launch a "C" (http://learn.parallax.com/node/370) but how can I launch from "C"?
(https://github.com/parallaxinc/PropWare/tree/develop/Examples/Spin2Cpp)
I can make a ".cpp" file from a spin!! I will test it soon! :thumb:
Other Questions:
When I use a SPI flash memory I can have programs largest than 64kb of the EEPROM? ok! just to have sure!
With the SPI flash memory I really need the EEPROM? Sorry my ignorance!
I can manage files in a SPI flash memory like in a SD card? Or SPI flash memory is only to help the EEPROM?
Thanks!
Comments
You still need an EEPROM if you want to boot up automatically on reset. Otherwise, you have to download code over a serial connection every time you reset the Propeller.
But if the program is bigger than the EEPROM? some program is in the SPI flash chip?
The flash chip can save files? or is just to suport EEPROM?
At this moment I don´t need but I think need in the future the SPI flash chip.
And is interesting understand how I can manage the programs through the "memories"
ok! I need have one, test it and make questions after
Thanks!
I agree with you ofcourse!
Is more easy have everything in only 1 program, but in that case the program is larger. If the 64kb aren´t enough, ok, I can use a SPI flash memory, but when I turn off the Propeller, the SPI memory can save information like the EEPROM? where is saved the excess of the program that is not in the EEPROM?
I see this great tutorial about it (http://www.instructables.com/id/How-to-Design-with-Discrete-SPI-Flash-Memory/)
Thanks a lot!
I think is not a good idea use the same SPI flash to the program and other files! We can have memory conflicts? with my knowledge, for sure!!
The SPI flash cache driver is dedicated to the program. 1mb is a lot! I can have everything in the same program like David Zemon said. great! I don´t think I need manage files of programs with 1mb.
And I can have a SD or other SPI memory to save files, at this moment I don´t see a reason to prefer the SPI memory to save other files, I think the SD is good for that!
Understand these details is important for me, know before start doing anything more complex.
Really thanks!
At the moment I don´t have here any SPI flash memory to test
If I have here the board C3, the SPI flash memory is connected like this (ftp://ftp.propeller-chip.com/PropC3/Designs/Schematics/prop_c3_rev_a_flash.png)
Table 2.11 — FLASH SPI signals. (https://www.parallax.com/sites/default/files/downloads/32209-Unleashing-Propeller-C3v1.0.pdf)
Signal Name, Propeller IO(Pin), Description | Notes
SPI_MOSI, P9 (10), SPI master out slave in
SPI_MISO, P10 (11), SPI master in slave out
SPI_SCK, P11 (12), SPI clock
SPI_SS3n, NA (internal), Selects 1MB FLASH memory
To upload the program I need write something like:
The memory model can be <lmm> or <cmm>? only to understand!
Where I can set the PIN´s of SPI flash memory of the board? I was looking to the file c3.cfg.
Thanks!
I will try.
Thanks a lot
this would equate to the following if you're still using PropWare
I like the way cmake works, and I can use your code or not in the same program (this is great), and for Fuzzy this is working 100%. And I´m learning a lot with the links you sent me!
thank you!