SEARCH
TOOLBOX
LANGUAGES
Register    Login    Forum    Search    FAQ

Board index » Electronics Projects » PIC18F USB development




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Problem Facing while Using Microhip USB Framework
 Post Posted: Thu Mar 29, 2012 3:36 am 
Offline

Joined: Sat Feb 25, 2012 7:42 am
Posts: 7
I had downloaded the Microhip USB Framework, now its very complicated to understand.
What i did is, Make a circuit Similar to PICDEMFS Board.

And put the Precompiled Hex file in the PIC18F4550 and run there application, everything works fine..

and i just follow the tutorial given on your site and the tutorial given on this site

http://roboticsguy.com/tutorials/microc ... -framework

But for HID-Simple-Demo

okay

I build my Project it builds successfully, but when i put the hex code it doesn't work..
Don't know why..

I again put the precompiled hex file it works...
Then i though may be there is some problem in by build process,

So then i open the project directory given by microchip framework..
They don't put there hex codes there they just copy the hex file to Someother location..

Now what i did, open the Microchip Framework Project for USB-HID-Demo and Build it,
Then a hex file is generated and after that i put that in my controller, that also doesn't work

Why this is happening, i had just opened the files supplied the file provided my microchip and build it,
I don;t know what is going on PLS Help me...

Thanks in advance


Top 
 Profile  
 
 Post subject: Re: Problem Facing while Using Microhip USB Framework
 Post Posted: Thu Mar 29, 2012 5:14 am 
Offline

Joined: Thu Apr 01, 2010 6:23 am
Posts: 892
Precompiled examples are usually targeted towards a pre-made demo board. The crystal speed (of the targetted demo board) is hardcoded into the hex file. You will probably find that you own project does not have the correct fuse settings for the crystal. That would be the most obvious error.

It is hard to say, beyond that, what is the problem without knowing more about what you are compiling and for what board.


Top 
 Profile  
 
 Post subject: Re: Problem Facing while Using Microhip USB Framework
 Post Posted: Thu May 03, 2012 2:10 pm 
Offline

Joined: Sat Feb 25, 2012 7:42 am
Posts: 7
Quote:
Precompiled examples are usually targeted towards a pre-made demo board. The crystal speed (of the targetted demo board) is hardcoded into the hex file. You will probably find that you own project does not have the correct fuse settings for the crystal. That would be the most obvious error.

It is hard to say, beyond that, what is the problem without knowing more about what you are compiling and for what board.


Thanks for Your Reply and Sorry For Late Reply...

First of all i want to tell that, i am not using this code for Physical Hardware, i am using it for Proteus Simulation.
So when i put the Pre-Compiled Hex File it WORKS.. thats fine..

As u know that these hex files are available in separate folder... in Microchip Application Libraries.

But When i open the Project and Build That one.. i mean to say that i haven't changed anything and just building the project provided by the Microchip Application Libraries.
The hex file generated in that folder and when i put that file in proteus controller it do nothing..

I don't know why this happens..

Can anyone help me..
Pls...


Top 
 Profile  
 
 Post subject: Re: Problem Facing while Using Microhip USB Framework
 Post Posted: Thu May 03, 2012 2:13 pm 
Offline

Joined: Sat Feb 25, 2012 7:42 am
Posts: 7
One more thing i want to tell...

I am using MPLAB C18 Compiler in Lite Mode.. not the purchased one...(Optimized One)


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 4 posts ] 

Board index » Electronics Projects » PIC18F USB development


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
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:  
cron
Translated by MaĆ«l Soucaze © 2009 phpBB.fr