View unanswered posts | View active topics It is currently Thu Apr 24, 2014 12:44 pm






Reply to topic  [ 3 posts ] 
Using the UART 
Author Message
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Using the UART
I've been trying to use the UART port for the past two days, and it's driving me crazy. Setting the baud rate to anything other than 200K stops the program from downloading. If you try it without re-downloading the firmware, you get this error:
Attachment:
RBCDownloadError1.jpg
RBCDownloadError1.jpg [ 33.18 KiB | Viewed 2014 times ]

If you try to download the program after re-downloading the firmware (which works fine), you get the error:
Attachment:
RBCDownloadError2.jpg
RBCDownloadError2.jpg [ 25.29 KiB | Viewed 2014 times ]


I've been trying to communicate with the Cortex, and nothing I try works. UART communication between two Cortexes works. If I set the baud rate as 200k on the cortex as well, I get either -1('y'), or random letters.

_________________
sudo rm -rf /


Sat May 19, 2012 7:51 pm
Profile
Rookie

Joined: Mon May 14, 2012 3:24 pm
Posts: 43
Post Re: Using the UART
Did you follow Timothy's advice in this post viewtopic.php?f=62&t=4534

The UART port is what RobotC uses for dowloading and debugging. This is how the Arduino is wired. Timothy suggested putting in a delay before setting the port speed. When you need to redownload the code hit the Arduino's reset button.


Sat May 19, 2012 9:17 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: Using the UART
Well, don't I look stupid. I must have glossed over that bit about waiting before setting the baud rate. I knew about ROBOTC uses the same port for downloading, but since the firmware was downloading fine, I thought the user set baud rate wouldn't affect the program download. I'll try using the delay. Thanks.

_________________
sudo rm -rf /


Sat May 19, 2012 10:17 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.