parallaxinc / PropLoader

Parallax Propeller loader supporting both serial and wifi downloads
MIT License
27 stars 13 forks source link

Ambiguous Error #16

Open dchokola opened 8 years ago

dchokola commented 8 years ago

I just went through building all the latest prop tools (GCC, proploader, SimpleIDE, OpenSpin, etc.) from git and I get this error when running proploader.

The "roflcopter" board type is identical to "EEPROM.cfg" only with XTAL2+PLL8X (10 MHz crystal). I do not have an EEPROM installed at this time and I'm only trying to run this program in RAM. I get the error below:

dan@ender:/gunter/dev/SimpleIDE/My Projects$ proploader -r -b roflcopter -p /dev/ttyUSB1 cmm/Welcome.elf Loading 'cmm/Welcome.elf' Loading second-stage loader Load complete error: load failed: -1

I rebuilt proploader with -g and tried to gain some insight from GDB. I noticed that the failure happens at serialloader.cpp:321 when receiveDataExactTimeout returns -1.

I was able to program this same board earlier today with an older version of proploader.

dchokola commented 8 years ago

I was able to confirm that this works as expected with propeller-load.

$ propeller-load -Dreset=dtr -I /opt/parallax/propeller-load/ -b ROFLCOPTER cmm/Welcome.elf -r -p /dev/ttyUSB1 Propeller Version 1 on /dev/ttyUSB1 Loading cmm/Welcome.elf to hub memory 8136 bytes sent
Verifying RAM ... OK

dbetz commented 8 years ago

This is likely because propgcc defaults to the standard 80mhz clock settings and proploader doesn't patch those settings to match the settings required for your board. Please continue to use propeller-load for the time being. The proploader program has not yet been released and will be used with a new SimpleIDE.