The Godfather talking
You think I am funny guy huh?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 10, 2016, 09:42:14 09:42


Login with username, password and session length


Pages: [1]
Print
Author Topic: need help with picbasic sample programs. They wont compile.  (Read 2894 times)
0 Members and 1 Guest are viewing this topic.
FriendOfGhost
Junior Member
**
Offline Offline

Posts: 42

Thank You
-Given: 7
-Receive: 55


« on: April 24, 2012, 08:51:25 20:51 »

dear friends,

I downloaded picbasic 3.0.5 from sonsivri and everything is fine. except I cannot run usb samples. there's a folder "C:\PBP3\EXAMPLES\LABXUSB-18F4550" and under that folder there's a "USBMOUSE.pbp" file. it loads but consistently I get "symbol not previously defined (usbdeviceinit)" error. I remarked every code and same error raises even with the single "USBInit" statement. I googled so many documents and I guess its about include files. but there's no include file in original sample. also this picpasic pro is clen installation on clean windows xp.

can you help me please ? why original installation samples wont work. what should I change in order to compile this simple program ? it doesnt need to run, I just need to compile it..

Define OSC 20
    USBInit
aaa:
       USBService                    ' Must service USB regularly
'       USBOut 1, buffer, 4, endgame  ' Send buffer to endpoint 1
   Goto aaa      ' Do it forever
 
  End 


Logged
bbarney
Moderator
Hero Member
*****
Offline Offline

Posts: 2403

Thank You
-Given: 405
-Receive: 544


Uhm? where did pickit put my mute button


« Reply #1 on: April 25, 2012, 01:34:18 01:34 »

Quote
' Name        : USBMOUSE.pbp
' Compiler    : PICBASIC PRO Compiler 2.6
' Assembler   : MPASM
' Target PIC  : PIC18F4550 or similar type
' Hardware    : LAB-XUSB Experimenter Board
' Oscillator  : 20MHz external
' Keywords    : USBSERVICE, USBINIT, USBIN, USBOUT
' Description : PICBASIC PRO USB sample program for PIC18F4550 to
' move mouse cursor.
' Compilation of this program requires that specific support files be
' available in the source directory
.  You may also need to modify the
' file USBDESC.ASM so that the proper descriptor files are included. For
' detailed information, see the file PBP\USB18\USB.TXT.
Logged

Ever wonder why Kamikaze pilot's wore helmet's ?
FriendOfGhost
Junior Member
**
Offline Offline

Posts: 42

Thank You
-Given: 7
-Receive: 55


« Reply #2 on: April 25, 2012, 08:52:35 08:52 »

yeap, thanks... but not only mentioned files also some other files needed to be copy to pbp3 folder from pbp3\pic18. I found but I had real pain. thanks..
Logged
bbarney
Moderator
Hero Member
*****
Offline Offline

Posts: 2403

Thank You
-Given: 405
-Receive: 544


Uhm? where did pickit put my mute button


« Reply #3 on: April 25, 2012, 10:54:38 22:54 »

The best thing to do is search for all the readme's in the directories because there scattered all through them
and of course read them  Grin and don't forget the forum at PBP http://www.picbasic.co.uk/forum/forum.php lot's to learn from there
Logged

Ever wonder why Kamikaze pilot's wore helmet's ?
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC