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

PIC to PC data send problem, via Bluetooth module
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Fri Jan 04, 2013 9:33 pm     Reply with quote

Hi,

I think all you've done is match the delay definition in your main application to the fuses specified in the bootloader code. Although it now works, you haven't really "solved" the problem, you've just put a bandaid on it. The problem is that you now have some mis-matched code in your main application that might cause confusion later on, and will fail if you try to run the application as stand-alone.

John
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Sat Jan 05, 2013 2:41 am     Reply with quote

iceman999 wrote:
Hello guys.

Weirdest thing happened. When i did't know what to do anymore, i just tried to change some parameters, such as

Code:
#use delay(clock=20000000)


to

Code:
#use delay(clock=48000000)


and WTF?, this works! First my LED started flashing at the right frequency and than i tried to send data, which worked as well... I'm happy as hell!

Thanks for all replys!

Regards


As I said:
"I'd guess your bootloader has the fuse selected as HS_PLL, which then means the CPU _will_ probably be running at 48MHz, whatever your fuses say. "
iceman999



Joined: 13 Dec 2012
Posts: 15

View user's profile Send private message

PostPosted: Sat Jan 05, 2013 3:38 am     Reply with quote

Ok, i get it, but for now i'm just happy that something works. I find out that i'm not allowed to change bootloader code, because then programing part won't work. For now i will stick to this "bandaid", cause mainly my part on PIC is done for this project...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
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