Problem downloading to Propeller
bb369
Posts: 9
Hi:
I am having problems downloading code to the Propeller ram or eeprom when installed. I also get an error when using the Identify Hardware option under the Run toolbar of the Propeller Tool. I get the error message that says:
No Propeller Chip found on any serial port
Unable to open com4
I get this same error message trying to download to ram or eeprom. Comm4 is the port assigned by the USB-RS232 installed device driver.
I am using the following setup:
1) Windows 7
2) HyperTerminal or the Parallax Serial Terminal GUI application for RS232 communication - 9600 baud, 1 stop, no parity, hardware protocol
3) USB to RS232 converter driver for a Comm4 connection.
4) The board is a customer designed board which has a functioning eeprom. I am re-writing the code because the previous programmer left and took all source code. So, I am working with known good hardware and rewriting the code. But I have no Parallax product experience.
In the second situation, I have an existing eeprom installed in the board and I use the supplied Parallax serial terminal GUI application. Using this app I can communicate to the board. However, when I substitute the TerraTerm application there is no communication. But hyperterminal works. So I know the comm 4 port works, the cable works and hyperterminal or the parallax serial terminal gui program works.
So there are several confusing points:
1) How does the Propeller Development Tool communicate over the serial link to the Propeller on my board? Does it use my comm port application (such as the Parallax Serial Terminal GUI) or does it have its own rs232 comm program?
2) When I install a functioning eeprom in the board, why does the Propeller serial terminal GUI app talk to the Propeller on my board but terraterm will not? Is there a timing problem due to the fact that the Propeller using software for the rs232 protocol and not hardware or something else? Also, hyperterminal will communicate to the board.
3) Is there some piece of code I am missing in my application? My application consists of my code plus the supplied Parallax Serial Terminal.spin code for handling the rs232 work. But my application code should be independent of downloading code to the Propeller ram correct?
Thank you.
I am having problems downloading code to the Propeller ram or eeprom when installed. I also get an error when using the Identify Hardware option under the Run toolbar of the Propeller Tool. I get the error message that says:
No Propeller Chip found on any serial port
Unable to open com4
I get this same error message trying to download to ram or eeprom. Comm4 is the port assigned by the USB-RS232 installed device driver.
I am using the following setup:
1) Windows 7
2) HyperTerminal or the Parallax Serial Terminal GUI application for RS232 communication - 9600 baud, 1 stop, no parity, hardware protocol
3) USB to RS232 converter driver for a Comm4 connection.
4) The board is a customer designed board which has a functioning eeprom. I am re-writing the code because the previous programmer left and took all source code. So, I am working with known good hardware and rewriting the code. But I have no Parallax product experience.
In the second situation, I have an existing eeprom installed in the board and I use the supplied Parallax serial terminal GUI application. Using this app I can communicate to the board. However, when I substitute the TerraTerm application there is no communication. But hyperterminal works. So I know the comm 4 port works, the cable works and hyperterminal or the parallax serial terminal gui program works.
So there are several confusing points:
1) How does the Propeller Development Tool communicate over the serial link to the Propeller on my board? Does it use my comm port application (such as the Parallax Serial Terminal GUI) or does it have its own rs232 comm program?
2) When I install a functioning eeprom in the board, why does the Propeller serial terminal GUI app talk to the Propeller on my board but terraterm will not? Is there a timing problem due to the fact that the Propeller using software for the rs232 protocol and not hardware or something else? Also, hyperterminal will communicate to the board.
3) Is there some piece of code I am missing in my application? My application consists of my code plus the supplied Parallax Serial Terminal.spin code for handling the rs232 work. But my application code should be independent of downloading code to the Propeller ram correct?
Thank you.
Comments
I am having problems downloading code to the Propeller ram or eeprom when installed. I also get an error when using the Identify Hardware option under the Run toolbar of the Propeller Tool. I get the error message that says:
Unable to open com4
I get this same error message trying to download to ram or eeprom. Comm4 is the port assigned by the USB-RS232 installed device driver.
I am using the following setup:
1) Windows 7
2) HyperTerminal or the Parallax Serial Terminal GUI application for RS232 communication - 9600 baud, 1 stop, no parity, hardware protocol
3) USB to RS232 converter driver for a Comm4 connection.
4) The board is a customer designed board which has a functioning eeprom. I am re-writing the code because the previous programmer left and took all source code. So, I am working with known good hardware and rewriting the code. But I have no Parallax product experience.
In the second situation, I have an existing eeprom installed in the board and I use the supplied Parallax serial terminal GUI application. Using this app I can communicate to the board. However, when I substitute the TerraTerm application there is no communication. But hyperterminal works. So I know the comm 4 port works, the cable works and hyperterminal or the parallax serial terminal gui program works.
So there are several confusing points:
1) How does the Propeller Development Tool communicate over the serial link to the Propeller on my board? Does it use my comm port application (such as the Parallax Serial Terminal GUI) or does it have its own rs232 comm program?
2) When I install a functioning eeprom in the board, why does the Propeller serial terminal GUI app talk to the Propeller on my board but terraterm will not? Is there a timing problem due to the fact that the Propeller using software for the rs232 protocol and not hardware or something else? Also, hyperterminal will communicate to the board.
3) Is there some piece of code I am missing in my application? My application consists of my code plus the supplied Parallax Serial Terminal.spin code for handling the rs232 work. But my application code should be independent of downloading code to the Propeller ram correct?
Thank you.
You want to make sure you don't have any sort of terminal connected to the com port the Propeller is on when you attempt to program using the Propeller Tool.
Some USB to serial devices will use the RTS line rather than the DTR line to toggle the reset line. This can be changed from within the Propeller Tool.
It may be possible your custom board doesn't have the reset line connected to either the RTS or DTR lines. Do you have the board's schematics?
Edit: I have no idea why terraterm won't communicate with the board when the other two terminal programs will. And yes to #3. The serial communication from the application code should be independent of downloading code to the Propeller RAM (though it can interfere with a program being able to load).
Does your board have a reset button? Sometimes it helps to press reset right before attempting to program a board with the Propeller Tool. Apparently the buffer on the PC can block the communication between Prop Tool and Propeller.
I do have the schematics and the hardware person connected the DTR signal to the Propeller reset pin. However, the signals go through a switch and they have the DTR disconnected from the reset line. I have tried using it with the signals connected as well as disconnected but the code still does not download.
I have done alot of hardware design and used many UARTs and USARTs and used many microcontrollers and have never seen a microcontroller being reset with an RS232 control signal. So I was stumped when looking at the Parallax recommended RS232 design to see the reset connected to DTR. Why would they do this?
I think the single post rule is a good one since it can get very confusing trying to help someone when you don't see what others have posted because they responded to the other thread.
Some USB to serial converters don't handle DTR properly. They can be used for generic serial data, but not for programming. The default Windows serial drivers don't handle DTR properly either. You have to use the USB to serial adapter chip's driver from the manufacturer. All of Parallax's USB to serial converters use a chip from FTDI and the current driver is on FTDI's website.
The Propeller Tool has its own terminal program based on the Parallax Serial Terminal (as far as I know). I can't answer your question about Teraterm vs HyperTerminal. I normally use a Mac or Linux and have no problems with a variety of terminal programs. I can also run the Propeller Tool on the Mac using Parallels Desktop and Windows XP and it works fine.
What USB to serial adapter are you using? How do you have things connected? What serial driver do you have installed under Windows 7?
I think I only get that message if the com is in use or the adapter isn't plugged in. It should be able to find the com port whether or not it can communicate with the Propeller.
Where do I find the PropPlug schematic?
Does Parallax make a converter cable and windows driver? I looked at the website but did not find a converter product. Or do I buy the FTDI product on their website?
tks
While I have three Prop Plugs (and a Prop Clip) I also like the inexpensive USB to serial device you can find on ebay.
So the problem could be the driver.