Propeller Memory Card - SimpleIDE, GCC?
idbruce
Posts: 6,197
I am was very surprised to find very little information about the Propeller Memory Card being used with SimpleIDE and GCC. Are they incompatible?
http://forums.parallax.com/showthread.php/150469-Some-questions-regarding-the-Propeller-memory-card-by-Parallax
Will my Propeller based 3D printer controller be able to use the Propeller Memory Card if I use SimpleIDE and PropGCC?
http://forums.parallax.com/showthread.php/150469-Some-questions-regarding-the-Propeller-memory-card-by-Parallax
Will my Propeller based 3D printer controller be able to use the Propeller Memory Card if I use SimpleIDE and PropGCC?

Comments
Thanks for responding.
I purchased the PMC, with the hope that I would have a wide variety of options. At the moment, I am not exactly certain what my needs are, except that I will definitely need functionality from this board. The only thing that I know for sure, is that the SD card will be holding GCODE data, which I will be parsing, for machine operation.
EDIT: I also know that my Teacup port is a none starter without PMC support.
I do not see PMC in the board type list. I don't know if you read anything about the controller, but it is constructed from a Propeller Proto Board and has the following pin assignments.
# pmc.cfg # for the QuickStart board with a Human Interface Board and a Propeller Memory Card clkfreq: 80000000 clkmode: XTAL1+PLL16X baudrate: 115200 rxpin: 31 txpin: 30 sd-driver: sd_driver.dat sdspi-do: 0 sdspi-clk: 7 sdspi-di: 1 sdspi-cs: 4 # cache geometry - 128 * 64 = 8192 byte cache index-width: 7 # 2^7 = 128 cache lines offset-width: 6 # 2^6 = 64 byte cache lines cache-geometry: ({index-width} << 8) | {offset-width} xmem-driver: winbond_sqi_flash_sram_xmem.dat xmem-param1: (0 << 24) | (7 << 16) | (5 << 8) | 6 xmem-param2: (4 << 24) | 1 [flash] xmem-driver: winbond_sqi_flash_xmem.dat xmem-param1: (0 << 24) | (7 << 8) | 0x01 xmem-param2: 5 << 24 [sram] xmem-driver: sqi_sram_xmem.dat xmem-param1: (0 << 24) | (7 << 8) | 0x01 xmem-param2: 6 << 24However, this is for the drivers that are part of the default branch of propgcc. It doesn't look like the pin assignments match yours so you would have to edit this file to work with your board.Not really sure what I am looking at, but I think I may be able to figure it out.
When you say "default branch of propgcc", what is it and where can I find it?
C:\Program Files\SimpleIDE\propeller-gcc\propeller-elf\include\sys\sd.h
https://code.google.com/p/propgcc/source/checkout
However, you currently have to build it yourself. :-(
I see that propgcc supports spin2cpp and I now wonder whether the SPI Memory Driver from the PMC sample can be converted. The SPI Memory Driver contains PASM. Will the PASM also convert?
Hmmmm... Hopefully it will.
I must admit that I am surprised, that Parallax has not supplied a c driver for the PMC.
I meant to say - except that I will definitely need -full- functionality from this board.
dgately
Not sure how soon I will get to that, but I will let you know.
@David
Yea, I am sure I could get the SD card to work, but as for the SRAM and flash, I would assume that read and write functions would be sufficient. I really don't know what is all possible with the PMC and the different memory types.