Problem Loading program with Simple IDE
Bobby1066
Posts: 34
Hi I don't know what is wrong.
Have hard wired a DIL prop on a bread board with 10MHz Crystal.
Propeller IDE Complies, Loads and runs Program OK.
Simple IDE Compiles then fails to load.
Both work on Quickstart board with 5MHz crystal.
Have tried using Hydra board type.
Have tried creating my own cfg file and editing the boards.txt file.
Still no joy.
Have triple checked my board wiring. (But shouldn't be an issue as loads and runs with Propeller IDE).
Driving me mad.
Any help grateful.
Thank you
Have hard wired a DIL prop on a bread board with 10MHz Crystal.
Propeller IDE Complies, Loads and runs Program OK.
Simple IDE Compiles then fails to load.
Both work on Quickstart board with 5MHz crystal.
Have tried using Hydra board type.
Have tried creating my own cfg file and editing the boards.txt file.
Still no joy.
Have triple checked my board wiring. (But shouldn't be an issue as loads and runs with Propeller IDE).
Driving me mad.
Any help grateful.
Thank you
Comments
I am not at a computer that has SimpleIDE on it so I can't tell you what file needs to be edited. (You can add a new set of board parameters to that file). I don't recall how I found out about it, but I think that the SimpleIDE instruction manual may have that info.
Can you change to a 5MHz crystal just to confirm that everything else with your board works? If it does then try to add a board with a10 MHz crystal to the board file.
Hope this helps
Tom
also the Hydra uses a 10MHz crystal tried this also.
As already stated board works when using Propeller IDE to load program. (SPIN & PASM IDE)
by the way program being loaded is C and loading PASM into separate COG
Bob
It appeared to be a loader problem to me also but as a newbie to this wasn't sure.
Next thought was to use loader in command line.
Compiled C program running PASM in another cog.
But wouldn't load
Will continue playing
Waiting in anticipation for your reply.
Bob
In your board cfg file is the baud set to 115200?
Can you load a C program that does not load PASM into a cog?
Can you post your code?
Tom
Error returned.
proploader.exe -r -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/propeller-load/ -b activityboard -p COM3 cmm/Hello Message.elf
Opening file 'cmm/Hello Message.elf'
ERROR: Download failed: -1
Opening file 'cmm/Hello Message.elf'
ERROR: Download failed: -1
Copy of bob.cfg
# bob.cfg
clkfreq: 80000000
clkmode: XTAL1+PLL8X
baudrate: 115200
rxpin: 31
txpin: 30
tvpin: 12 # only used if TV_DEBUG is defined
cache-driver: eeprom_cache.dat
cache-size: 8K
cache-param1: 0
cache-param2: 0
eeprom-first: TRUE
Both TX and RX LEDs strobe
Bob
PS on a steep learning curve
Must re-iterate all programs tried appear to work OK with Quickstart board with 5Mhz crystal
No problem when SPIN programs loaded via PropellerIDE. if clock PLL set incorrect loads but don't run. As expected
By inference Simple IDE should load it even if clock settings are wrong but likewise it should fail to run.
proploader.exe -r -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/propeller-load/ -b activityboard -p COM3 cmm/Hello Message.elf
It would appear if I am correct that the loading of the program into the prop is unaffected by any of the settings in the cfg file or
baud rate settings.
The prop uses its internal clock and has an internally set communication protocol. So the code should load whatever. The coded configuration only becomes active after the prop has restarted after down load. It is not affected by crystal frequency.
If this is correct then it is definitely a loader problem.
The oddity is that the ready made "Quickstart" board I have loads and runs fine but the
hard wired DIL prop on a bread board I have wired as per prop Tutorial fails to load from "SimpleIDE" regardless of the code downloaded. (Spin, Pasm, C)
Spin and Pasm load ok from "Propeller IDE".
Thought I would clarify the problem as I see it.
Thank you for all your input.
Bob
But looking at the error messages that I received.
proploader.exe -r -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/propeller-load/ -b activityboard -p COM3 cmm/Hello Message.elf
Opening file 'cmm/Hello Message.elf'
ERROR: Download failed: -1
Opening file 'cmm/Hello Message.elf'
ERROR: Download failed: -1
Are these for both 1st and 2nd stage loaders.
or does it do a retry on failure?
Bob
Just realised why you would need a 2 stage loader,
1t stage to set up the comms to fastest available. 2nd stage to do the actual download thus getting the fastest download speed.
Just a guess but is this what is going on?
Am new to C but am looking at the loader code to try to understand for myself what is happening.
What is bugging me is why does it work ok on the surface mount prop on a board made by propeller but not on the DIL prop on a breadboard,
The configuration files doesn't list all possibile settings, PropLoader uses some additional baud rate settings for the various stage loaders. Try adding these lines to your board configuration file to set all possibile baud rates to 115200.
The only relevant setting however seems fast-loader-baud-rate that is set to 921600 by default.
Hope this helps.
Best regards,
Marco.
At least that way you at least could show the output from the loader with the -b bob option.
A question for David --
While the "bob" board works with Spin, and doesn't with Simple IDE, is there a loading speed difference between the Spin IDEs and Simple IDE that would be affected by breadboard connections vice a PCB?
Tried
baudrate: 115200
loader-baud-rate: 115200
fast-loader-baud-rate: 115200
program-baud-rate: 115200
Without Success.
Thanks for your efforts
Have ordered some 5MHz crystals. But am convinced they will work without problem.
This is only a hobby project so timescale is not an issue.
Just nice to have some assistance getting it sorted.
Bob
Thanks for the file have installed in place of the default loader
ie. switched propeller-load.exe with the file you sent me. Hope that is correct.
and receive the following error messages.
C:/Users/Bobby/Documents/SimpleIDE/ Updated on: 2018-10-23
propeller-elf-gcc.exe -v GCC 4.6.1 (propellergcc_v1_0_0_2408)
openspin.exe -c -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/spin/ -o lmm/Pulse1Hz.dat Pulse1Hz.spin
Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor.
Version 1.00.78 Compiled on May 28 2016 12:06:45
Compiling...
Pulse1Hz.spin
Done.
Program size is 44 bytes
propeller-elf-objcopy -I binary -B propeller -O propeller-elf-gcc --redefine-sym _binary_lmm_Pulse1Hz_dat_start=_binary_Pulse1Hz_dat_start --redefine-sym _binary_lmm_Pulse1Hz_dat_end=_binary_Pulse1Hz_dat_end --redefine-sym _binary_lmm_Pulse1Hz_dat_size=_binary_Pulse1Hz_dat_size lmm/Pulse1Hz.dat lmm/Pulse1Hz_firmware.o
propeller-elf-gcc.exe -I . -L . -I C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools -L C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools/lmm/ -I C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext -L C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext/lmm/ -I C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c -L C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c/lmm/ -o lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf -Os -mlmm -m32bit-doubles -fno-exceptions lmm/Pulse1Hz_firmware.o BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).c -lm -lsimpletools -lsimpletext -lsimplei2c -lm -lsimpletools -lsimpletext -lm -lsimpletools -lm
propeller-load -s lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf
Opening file 'lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf'
Stepping down to 460800 baud
Stepping down to 230400 baud
Stepping down to 115200 baud
Using single-stage downloadDownloading file to port COM3
24812 bytes sent
Verifying RAM
Download successful!
propeller-elf-objdump -h lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf
Done. Build Succeeded!
proploader.exe -r -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/propeller-load/ -b bob -p COM3 lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf
Opening file 'lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf'
ERROR: Download failed: -1
Opening file 'lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf'
ERROR: Download failed: -1
I now have some 5MHz crystals and swapped the 10 for a 5 and the download was successful so board wiring Ok.
SimpleIDE Version 1.1.2
C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/
C:/Users/Bobby/Documents/SimpleIDE/ Updated on: 2018-10-23
propeller-elf-gcc.exe -v GCC 4.6.1 (propellergcc_v1_0_0_2408)
openspin.exe -c -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/spin/ -o lmm/Pulse1Hz.dat Pulse1Hz.spin
Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor.
Version 1.00.78 Compiled on May 28 2016 12:06:45
Compiling...
Pulse1Hz.spin
Done.
Program size is 44 bytes
propeller-elf-objcopy -I binary -B propeller -O propeller-elf-gcc --redefine-sym _binary_lmm_Pulse1Hz_dat_start=_binary_Pulse1Hz_dat_start --redefine-sym _binary_lmm_Pulse1Hz_dat_end=_binary_Pulse1Hz_dat_end --redefine-sym _binary_lmm_Pulse1Hz_dat_size=_binary_Pulse1Hz_dat_size lmm/Pulse1Hz.dat lmm/Pulse1Hz_firmware.o
propeller-elf-gcc.exe -I . -L . -I C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools -L C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools/lmm/ -I C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext -L C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext/lmm/ -I C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c -L C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c/lmm/ -o lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf -Os -mlmm -m32bit-doubles -fno-exceptions lmm/Pulse1Hz_firmware.o BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).c -lm -lsimpletools -lsimpletext -lsimplei2c -lm -lsimpletools -lsimpletext -lm -lsimpletools -lm
propeller-load -s lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf
Opening file 'lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf'Downloading file to port COM3
236 bytes remaining 24812 bytes sent
Verifying RAM
Download successful!
propeller-elf-objdump -h lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf
Done. Build Succeeded!
proploader.exe -r -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/propeller-load/ -b bob -p COM3 lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf
Opening file 'lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf'Downloading file to port COM3
24812 bytes sent
Verifying RAM
Download successful!
Bob
Swapped loader to location you wanted.
Downloads ok but doesn't run.
Project Directory: K:/Bob Project/19-11-2018/
SimpleIDE Version 1.1.2
C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/
C:/Users/Bobby/Documents/SimpleIDE/ Updated on: 2018-10-23
propeller-elf-gcc.exe -v GCC 4.6.1 (propellergcc_v1_0_0_2408)
openspin.exe -c -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/spin/ -o lmm/Pulse1Hz.dat Pulse1Hz.spin
Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor.
Version 1.00.78 Compiled on May 28 2016 12:06:45
Compiling...
Pulse1Hz.spin
Done.
Program size is 44 bytes
propeller-elf-objcopy -I binary -B propeller -O propeller-elf-gcc --redefine-sym _binary_lmm_Pulse1Hz_dat_start=_binary_Pulse1Hz_dat_start --redefine-sym _binary_lmm_Pulse1Hz_dat_end=_binary_Pulse1Hz_dat_end --redefine-sym _binary_lmm_Pulse1Hz_dat_size=_binary_Pulse1Hz_dat_size lmm/Pulse1Hz.dat lmm/Pulse1Hz_firmware.o
propeller-elf-gcc.exe -I . -L . -I C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools -L C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools/lmm/ -I C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext -L C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext/lmm/ -I C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c -L C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c/lmm/ -o lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf -Os -mlmm -m32bit-doubles -fno-exceptions lmm/Pulse1Hz_firmware.o BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).c -lm -lsimpletools -lsimpletext -lsimplei2c -lm -lsimpletools -lsimpletext -lm -lsimpletools -lm
propeller-load -s lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf
propeller-elf-objdump -h lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf
Done. Build Succeeded!
proploader.exe -r -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/propeller-load/ -b bob -p COM3 lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf
Opening file 'lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf'
Using single-stage downloadDownloading file to port COM3
24812 bytes sent
Verifying RAM
Download successful!
Like you say I think its assuming a 5MHz clock
Thanks for the help.
Please keep me posted.
Bob
PS What about another Project Manager tab alongside the compiler and linker.
Worked 1st Time
Brill
Bob
Works ok loading to RAM but when loading to EEPROM the following error occurs.
Project Directory: K:/Bob Project/19-11-2018/
SimpleIDE Version 1.1.2
C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/
C:/Users/Bobby/Documents/SimpleIDE/ Updated on: 2018-10-23
propeller-elf-gcc.exe -v GCC 4.6.1 (propellergcc_v1_0_0_2408)
openspin.exe -c -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/spin/ -o lmm/Pulse1Hz.dat Pulse1Hz.spin
Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor.
Version 1.00.78 Compiled on May 28 2016 12:06:45
Compiling...
Pulse1Hz.spin
Done.
Program size is 44 bytes
propeller-elf-objcopy -I binary -B propeller -O propeller-elf-gcc --redefine-sym _binary_lmm_Pulse1Hz_dat_start=_binary_Pulse1Hz_dat_start --redefine-sym _binary_lmm_Pulse1Hz_dat_end=_binary_Pulse1Hz_dat_end --redefine-sym _binary_lmm_Pulse1Hz_dat_size=_binary_Pulse1Hz_dat_size lmm/Pulse1Hz.dat lmm/Pulse1Hz_firmware.o
propeller-elf-gcc.exe -I . -L . -I C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools -L C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools/lmm/ -I C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext -L C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext/lmm/ -I C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c -L C:/Users/Bobby/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c/lmm/ -o lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf -Os -mlmm -m32bit-doubles -fno-exceptions lmm/Pulse1Hz_firmware.o BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).c -lm -lsimpletools -lsimpletext -lsimplei2c -lm -lsimpletools -lsimpletext -lm -lsimpletools -lm
propeller-load -s lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf
propeller-elf-objdump -h lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf
Done. Build Succeeded!
proploader.exe -e -r -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/propeller-load/ -b bob -p COM3 lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf
Opening file 'lmm/BeatTimeInC_FullyWorking_01-11-2018_08_00 (1).elf'Downloading file to port COM3
24812 bytes sent
Verifying RAM
Programming EEPROM
ERROR: EEPROM checksum failed
ERROR: Download failed
24812 bytes sent
Verifying RAM
Programming EEPROM
ERROR: EEPROM checksum failed
ERROR: Download failed
Bob