I seem to be talking to myself here, but that's okay.
I just wanted to say that I got it working. I don't know how. But, I ran the original USBDEMO.exe, and then everything started working with my modified version.
Crazy, I know!
-Sterling
I seem to be talking to myself here, but that's okay.
I just wanted to say that I got it working. I don't know how. But, I ran the original USBDEMO.exe, and then everything started working with my modified version.
Crazy, I know!
-Sterling
Here I go again:
The problem was that VB buffer(1) comes into the device as buffer[2]
Thanks for the inspiration Steve. My upgrade is complete, PBP2.47,EasyPic 4, PicFlash 7.03, a new laptop to stuff it all in and some 18f4550 samples.
Thanks to Uncle Sam for a quick tax return also.
Had some trouble with the USB stuff at first but this post solved my problems.
http://www.picbasic.co.uk/forum/show...4&postcount=32
Not sure what to do with the $20 I got left. Dinner at Denny's with my wife maybe?
Then again I could use another USB cable...
Thanks again Steve.
Dear all
I am a newbie who's tying to do his first steps with UBS programming under PIC. My environment is PBP 2.47, Microcode Studio 3.0.0.0 and MPASM 5.03.
I am using microsontroller PIC 18F2450.
The issue is: when trying to compile and assemble the source file USBDemo.PBP from Steeve I get the following error messages:
ERROR: Macro USBINIT? not found in macro file.
ERROR: Macro USBSERVICE? not found in macro file.
ERROR: Macro USBIN?CBBL not found in macro file.
ERROR: Macro USBOUT?CBBL not found in macro file.
I did make any change to the original files as posted on this forum.
Could any one be of help to me?
My file locations are as follows:
MPASM D:\Program Files\PBP\MPASM
PBP D:\Program Files\PBP
When loading the USBDemo.HEX file in my microcontroller (18F4450 and 18F2450) it works fine with the PC application from Steeve.
In advance many thanks for your help.
As far as I know, PBP doesn't support USB on the 2450/4450. Yes, those chips are USB chips. Yes, PBP does support those chips, just not using the USB, at the website doesn't specifically say it supports them that way. The only chips I see that PBP directly supports with USB are the PIC18F2455, 2550, 4455, and 4550, and the 16C745, 765.
Hi skimask.
First, many thanks for your help.
Second, I know from Melabs, that they support 2450/4450 in the USB modes.
My issue again is: I was not trying to use any other PIC, but 4550. I am not that far in the process. What I was trying to do is just to compile the USBDemo.PBP for the 4550 in my environment.
And this doesn't compile because of some missing macros.
Any suggestion?
Thx
Last edited by Momboz; - 5th April 2007 at 17:03.
shouldn't be a problem IF ALL files i've provided are located in the same folder unless i miss something obvious.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
O.K. the original code was for a 4550. You need to rebuild the project in EasyHid for a 2550. There's a load of needed files.
I've uploaded the 2455 and 2550 stuff here. let me know what happen now. The 2550 have been tested... but i don't have any handy 2455.
I've also uploaded the schematic, if some need it.
NOTE: If your going to use LONG variables, you MUST copy the PIC18Xxxxx.BAL file in your source directory as well, unless you'll receive some compilation errors.
The .BAL file is located in \PBP\USB18 directory.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
OK i received those 2455 today, the files i sent work as suppose to.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi.
Momboz..
Iam getting exactly same errors dear,
ERROR: Macro USBINIT? not found in macro file.
ERROR: Macro USBSERVICE? not found in macro file.
ERROR: Macro USBIN?CBBL not found in macro file.
ERROR: Macro USBOUT?CBBL not found in macro file.
How did you solve this problem?
Plz Help me...
Regards...
Which PIC are you using?
You probably need a modified .bas file for that chip.
If you are using a 2455, 2550 or 4550 then Steve has already provided the files. (see post 99)
You may also need to modify the PBPUSB18.LIB file if your PBP installation is not in the default c:\PBP folder. As was the case with Momboz.
<br>
DT
Hi,
Thanks for your reply.
Errors for both 2550 and 4550;(using steve's files)
there are 2 folders in c:\PBP, one is MCSP-3.0 2ND one is PBP247,
Now different errors when iam trying to compile Steve's file from C:\PBP.
No errors from the sample folder files(pbp247)i tried with its own compiller and mpasm..
Regards,
plaese find attached image..
Bookmarks