|
|
View previous topic :: View next topic |
Author |
Message |
ezflyr
Joined: 25 Oct 2010 Posts: 1019 Location: Tewksbury, MA
|
|
Posted: Fri Jan 04, 2013 9:33 pm |
|
|
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
|
|
Posted: Sat Jan 05, 2013 2:41 am |
|
|
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
|
|
Posted: Sat Jan 05, 2013 3:38 am |
|
|
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... |
|
|
|
|
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
|