Gadget Gangster QuickPlayer Extreme and PropGCC XMMC
mindrobots
Posts: 6,506
I got my QuickPlayer Extreme with the SD module and teh Winbond 8Mbit flash installed.
I built a .cfg like this:
I can load a program with XMMC memory model. Just a tiny blink program. and it runs fine.
SimpleIDE output:
notice, the loader doesn't tell me it patched my led_pin value but it did.
LMM also works (why wouldn't it?)
here you can see that the patch was made.
I haven't been able to get the SD to work yet for file I/O. I assumed the pins were the same as the GG PP-USB but the documentation on the GG site isn't complete for the new board.
More testing as time allows. I also have SRAM chips to play with.
I built a .cfg like this:
# [qsbig] clkfreq: 80000000 clkmode: XTAL1+PLL16X baudrate: 115200 rxpin: 31 txpin: 30 tvpin: 12 # only used if TV_DEBUG is defined cache-driver: spi_flash_cache.dat cache-size: 8K cache-param1: 0x11121021 # 0xooiiccpp - oo=mosi ii=miso cc=sck pp=cs-protocol cache-param2: 0x13000000 # 0xssxxxxxx - ss=cs led-pin: 16 sd-driver: sd_driver.dat sdspi-do: 0 sdspi-clk: 1 sdspi-di: 2 sdspi-cs: 3
I can load a program with XMMC memory model. Just a tiny blink program. and it runs fine.
SimpleIDE output:
Project Directory: C:/Users/rapost/Documents/SimpleIDE/blinky2/ propeller-elf-gcc.exe -o a.out -Os -mxmmc -I . -fno-exceptions pin.c pin.h blinky2.c propeller-elf-objdump -h a.out Done. Build Succeeded! propeller-load.exe -I C:/propgcc/propeller-load/ -b QSBIG -p COM16 a.out -e -rLoading the serial helper to hub memory 9528 bytes sent Verifying RAM ... Loading cache driver 'spi_flash_cache.dat' 1464 bytes sent Loading program image to flash Loading the flash loader to EEPROM via hub memory 4628 bytes sent Verifying RAM ... OK Programming EEPROM ... OK Verifying EEPROM ... 1056 bytes sent
notice, the loader doesn't tell me it patched my led_pin value but it did.
LMM also works (why wouldn't it?)
Project Directory: C:/Users/rapost/Documents/SimpleIDE/blinky2/ propeller-elf-gcc.exe -o a.out -Os -mlmm -I . -fno-exceptions pin.c pin.h blinky2.c propeller-elf-objdump -h a.out Done. Build Succeeded! propeller-load.exe -I C:/propgcc/propeller-load/ -b QSBIG -p COM16 a.out -e -rLoading a.out to EEPROM via hub memory 2968 bytes sent Verifying RAM ... OK Programming EEPROM ... OK Verifying EEPROM ... Patching __cfg_led_pin with 00000010 OK
here you can see that the patch was made.
I haven't been able to get the SD to work yet for file I/O. I assumed the pins were the same as the GG PP-USB but the documentation on the GG site isn't complete for the new board.
More testing as time allows. I also have SRAM chips to play with.
Comments
Are you using the optional microSD connection points on the Extreme? If so, it appears you have your code right.
do = 0
clk = 1
di = 2
cs = 3
OBC
Instill need to test more... Pilot error and I are old friends!!
It was exciting to see the flash drivers load the code...at least it appeared to load.
I'm assuming you are using this part?
http://parts.digikey.com/1/parts/1817540-spi-flash-8mbit-8-dip-w25q80bvdaig.html
OBC
So, no luck with the SD card? Does the board have pull ups?
Where are the details on this board?
The gg page schematic.pdf seems to be missing pages. Nice pictures of software though.
From what I gathered from the page and what Jeff confirmed, my *.cfg file above should be accurate as far as addresses. The addresses for the 8 pin dip are called out in the text description of the board. I think the rest of my file is ok but I could be missing something.
I'll get some more testing done as soon as I can....maybe tomorrow morning.
Thanks!
Since you've already verified that xmmc will work with a flash chip I'll work on getting a SPI SRAM cache driver working.
The *.cfg above has all the correct addressing.
I had hammered my SD card while I was playing so once I reformatted it, I was able to read/write files to it.
If you are using sd_cache, I assume that prevents you from using the SD card for file I/O. To use sd_cache and SD file I/O, would you need 2 SD cards on your board? (dual floppies! )
I may have trashed my corrupted my SD card during testing by trying the sd_cache.
Congratulations!
Hmmm, big memory, SD, stereo output, TV out, and a pair of Wii nunchucks.........there's got to be a project or two in there somewhere there!!!!
The low cost is nice....which the optional SD allows.
I really like the kit format of the quickstart modules. I still enjoy putting a kit together.