"ERROR: Propeller not found on COM3"
Alhilalm
Posts: 4
Hello,
I am using (P8X32A-D40) microcontroller and TTL-232 USB Cable to program the microcontroller, but every time I run the software, I get this error message and could not figure out how to solve it. Can you please help with that?? I am using SimpleIDE software.
SimpleIDE Version 1.1.2
C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/
C:/Users/moham/Documents/SimpleIDE/ Updated on: 2020-03-13
propeller-elf-gcc.exe -v GCC 4.6.1 (propellergcc_v1_0_0_2408)
propeller-elf-gcc.exe -I . -L . -I C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools -L C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools/cmm/ -I C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext -L C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext/cmm/ -I C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c -L C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c/cmm/ -I C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/Sensor/libping -L C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/Sensor/libping/cmm/ -o cmm/distance.elf -Os -mcmm -m32bit-doubles -fno-exceptions -std=c99 distance.c -lm -lsimpletools -lsimpletext -lsimplei2c -lping -lm -lsimpletools -lsimpletext -lsimplei2c -lm -lsimpletools -lsimpletext -lm -lsimpletools -lm
propeller-load -s cmm/distance.elf
propeller-elf-objdump -h cmm/distance.elf
Done. Build Succeeded!
proploader.exe -r -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/propeller-load/ -b activityboard -p COM3 cmm/distance.elf
Opening file 'cmm/distance.elf'
ERROR: Propeller not found on COM3
ERROR: Download failed: -1
Opening file 'cmm/distance.elf'
ERROR: Propeller not found on COM3
ERROR: Download failed: -1
I am using (P8X32A-D40) microcontroller and TTL-232 USB Cable to program the microcontroller, but every time I run the software, I get this error message and could not figure out how to solve it. Can you please help with that?? I am using SimpleIDE software.
SimpleIDE Version 1.1.2
C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/
C:/Users/moham/Documents/SimpleIDE/ Updated on: 2020-03-13
propeller-elf-gcc.exe -v GCC 4.6.1 (propellergcc_v1_0_0_2408)
propeller-elf-gcc.exe -I . -L . -I C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools -L C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools/cmm/ -I C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext -L C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext/cmm/ -I C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c -L C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c/cmm/ -I C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/Sensor/libping -L C:/Users/moham/Documents/SimpleIDE/Learn/Simple Libraries/Sensor/libping/cmm/ -o cmm/distance.elf -Os -mcmm -m32bit-doubles -fno-exceptions -std=c99 distance.c -lm -lsimpletools -lsimpletext -lsimplei2c -lping -lm -lsimpletools -lsimpletext -lsimplei2c -lm -lsimpletools -lsimpletext -lm -lsimpletools -lm
propeller-load -s cmm/distance.elf
propeller-elf-objdump -h cmm/distance.elf
Done. Build Succeeded!
proploader.exe -r -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/propeller-load/ -b activityboard -p COM3 cmm/distance.elf
Opening file 'cmm/distance.elf'
ERROR: Propeller not found on COM3
ERROR: Download failed: -1
Opening file 'cmm/distance.elf'
ERROR: Propeller not found on COM3
ERROR: Download failed: -1
Comments
The problem is that the C code is hard coded somewhere to only use a crystal and run at 80Mhz.
If you install a 5Mhz crystal everything works just fine.
I tried RCFAST, RCSLOW and checked the clock config and it shows crystal at 80Mhz. Sample code here:
If you where to use SPIN then I think everything works just fine without a crystal but I don't do spin so can tell you if that works. Also the prop loader program tries to download a small program that intern load the actual program. This also causes a problem since the loader program wants to run at 80Mhz. There is an option "loader=rom" that suppose to not use the fast loader program but your still faced with the fact that the C code wants a crystal and 80Mhz.
Mike
One between pins 9 and 12.
The other between 29 and 32.
Value can be 100nF to 220nF range. Maybe up to 1uF in a pinch, if the capacitor is physically small.
Edit: Also would be better to add one more cap close to the EEPROM, between VCC and VSS. Use all the same value is fine.
Also I tried the "loader=rom" option and that doesn't seem to work. No error just causes the loader to display the help screen.
Mike
And some RS232C signals usually are negative logic. PropPlug is configured DTR as positive logic at factory.
(Edit:)
"/RST" line of PropPlug is NOT "RTS" line of RS232C.
So, connecting directly RTS to RESET may hardly function.
Please refer to "Prop Plug Documentation" link below:
https://www.parallax.com/sites/default/files/downloads/32201-Prop-Plug-Documentation-v1.3.pdf
(Edit:)
Maybe your USB-TTL cable outputs 5V logic level, so do not connect it to Propeller without series resister of 4.7k.
Sorry, the spec sheet says it outputs 3V logic at TxD. I think RTS may be still 5V logic.
(Edit:)
I drew a schematic: This assumes RTS to be positive logic.
I did some experiments using SimpleIDE and propeller-load.
SimpleIDE version is "1.12".
The board type is GENERIC.
Reset method is specified by "-D reset=..." command line option with propeller-load, [Reset Signal] option at [SimpleIDE Properties/General] panel with SimpleIDE.
1. Prop's RESET is connected to DTR, and reset method is set to "DTR":
Downloading goes fine with both SimpleIDE and propeller-load.
2. Prop's RESET is connected to DTR, and reset method is set to "RTS":
Downloading goes fine only with SimpleIDE. propeller-load fails every time.
3. Prop's RESET is connected to RTS, and reset method is set to "DTR":
Downloading fails with both SimpleIDE and propeller-load.
4. Prop's RESET is connected to RTS, and reset method is set to "RTS":
Downloading goes fine with both SimpleIDE and propeller-load first time, but only SimpleIDE fails every time after that.