Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguous Error #16

Open
dchokola opened this issue Aug 13, 2016 · 2 comments
Open

Ambiguous Error #16

dchokola opened this issue Aug 13, 2016 · 2 comments

Comments

@dchokola
Copy link

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
Copy link
Author

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
Copy link
Collaborator

dbetz commented Aug 13, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants