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 [ 33.18 KiB | Viewed 3347 times ]

If you try to download the program after re-downloading the firmware (which works fine), you get the error:

Attachment:

RBCDownloadError2.jpg [ 25.29 KiB | Viewed 3347 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.

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

magicode

Moderator

Joined: Tue Sep 14, 2010 9:19 pmPosts: 496

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.

Who is online

Users browsing this forum: No registered users and 1 guest

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