Why is my propeller not running?
mcuOne
Posts: 16
in Propeller 1
Hello people, I have a problem here, and although somehow my P8X32A propeller can not be programmed. I use the SimpleIDE, as a serial port I use the CP2102 (This contains DTR and RTS). As operating voltage, the chip runs at 3.3V.
On my oscilloscope I see that the RESET pin is pulled to ground. But nevertheless, SimpleIDE tells me that no propeller was found.
On the propeller itself, I have no EEPROM connected, as I understand it, he can also run code in RAM. I tried it with and without 12Mhz Crystal. It does not work at all: /
On my oscilloscope I see that the RESET pin is pulled to ground. But nevertheless, SimpleIDE tells me that no propeller was found.
On the propeller itself, I have no EEPROM connected, as I understand it, he can also run code in RAM. I tried it with and without 12Mhz Crystal. It does not work at all: /
Comments
Just to double check here, the reset pin should be pulled to ground (pulsed as Hal said), momentarily before programming starts. It cannot be held to ground during programming.
Holding reset low effectively holds the Propeller in a disabled state in which it cannot be programmed, or do anything else.
No, the reset pin is not permanently to ground, only if i programming, then the cp2101 pull down the reset pin to ground in pulse.
It is grounded 25ms, is that too long?
Thanks.
Ok, I have the propeller running, with the Propeller Tool. It still does not work with the PropellerIDE and the SimpleIDE. Is there anything to consider in the settings in the SimpleIDE? As I said, I have no EEPROM and Crystal connected.
Not too long.
The reset pulse can be a low as 1uS, and as long as <50mS (as I recall)
There is a window of 100mS from when the reset is triggered in which you need to start uploading code to the Propeller, otherwise it will attempt to boot from EEprom, and if that fails will shutdown.
Ie. send your reset pulse and then start uploading code immediately.
Edit: Found this old post that explains the reset parameters some more: https://forums.parallax.com/discussion/comment/1172416/#Comment_1172416
When this worked how was the RESET pin of the propeller IC connected to the CP2102 module? Was it to the DTR pin or the RTS pin?
The DTR pin is connected to the propeller
It might be worth comparing with your scope the output of the DTR pin when using Propeller Tool and when using PropellerIDE and SimpleIDE.
SimpleIDE: 25,67ms Pull Down
Propeller IDE: 19,34ms Pull Down
So it's a minimal difference, so I do not think that's what it's about.
I tried, does not bring anything.
I have just put a propeller (with bypass capacitors) on a breadboard and connected DTR directly to the propeller RESET. Using PropellerIDE I can blink an LED with or without a 5MHz crystal. The difference between our circuits might be the bypass capacitors.
Sorry I forgot part in fritzing ^ ^ but everything is connected correctly.
Ok, does this work for you also in the SimpleIDE?
Can't remember what we had to change, but maybe it was the "Latency Timer"...
Anyway, I'd reboot and try again...
This is a example program:
And the error Message is:
Opening file 'cmm/Welcome.elf'
ERROR: Download failed: -1
You'd see it listed in the com port drop-down if it did. Near the top right.
Also.. I seem to recall SimpleIDE and PropellerIDE don't always share com-ports well. In case that's relevant for you, try closing all other IDE's when testing SimpleIDE?