sammielove45 / propgcc

Automatically exported from code.google.com/p/propgcc
1 stars 1 forks source link

Using propeller-load -l or -z to upload to a non-C3 shared SPI system does not work #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use a non-C3 board with shared SPI (i.e. a board that uses the sdspi-clr, 
sdspi-inc, sdspi-sel, sdspi-msk, and/or sdspi-addr configuration parameters_
2. Try to upload an XMM or XMMC program using propeller-load with the -l or -z 
parameter.

What is the expected output? What do you see instead?

The file should transfer up OK.  Instead, you see:

Propeller Version 1 on COM6
Loading the serial helper to hub memory
9528 bytes sent
Verifying RAM ... OK
Loading 'main.pex' to SD card
<10 second delay>
Timeout waiting for ACK/NAK
error: SendPacket DATA failed

error: load failed

Additional information:

This bug was caused by an incomplete implementation of the FSRW-based file 
driver used by serial helper.  Specifically, the version of FSRW was hacked to 
understand the C3 based solely on the 4 "main pins": DO/CLK/DI/CS; it does not 
understand the extended parameters used by the rest of PropGCC (in the library, 
drivers, and cache system).

The fix is to add the missing code to handle the full set of parameters.

Original issue reported on code.google.com by tjstefan...@charter.net on 1 Apr 2012 at 4:02

GoogleCodeExporter commented 9 years ago
Fixed in revision ab4e6680d671

Original comment by tjstefan...@charter.net on 1 Apr 2012 at 4:10