CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

CCS Bootloader using Software Uart

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ntgcp_08



Joined: 21 Feb 2008
Posts: 24

View user's profile Send private message

CCS Bootloader using Software Uart
PostPosted: Tue Sep 23, 2008 7:05 pm     Reply with quote

I've searched for hours trying to find the answer... is it possible to use CCS's loader.c with a software UART?

I've used ex_bootloader.c, bootloader.h, and loader.c with a hardware uart and it works great. If I add FORCE_SW to the #use RS232 statement it doesn't work. Why?

I found the following topic but I have not been able to try it. Why would taking out the XON and XOFF make it work?
http://www.ccsinfo.com/forum/viewtopic.php?t=27980&highlight=software+uart+bootloader

I'm using 18F6722 but I've already used the two hardware Uarts, so I have to run my bootloader with a software Uart. I'm running the PIC at 4Mhz. I've tried setting up the software Uart at 19200, 9600, 4800, and 2400 and none of the baud rates work.

Is there a way to modify loader.c to work with a software Uart?
Guest








PostPosted: Wed Sep 24, 2008 1:40 pm     Reply with quote

Are you sure that the software UART and variables are in 'protected code'? Or are they perhaps being overwritten when you try to overwrite program memory?

Also perhaps you are sending the characters too fast with no inter-character delay time. The software UART is slow as code has to be executed and you are only running at 4 MHz clock...

My thoughts, HTH - Steve H.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group