Can we see the code that gave the errors?
Can we see the code that gave the errors?
Dave
Always wear safety glasses while programming.
The code is not ready, not tested, except for i/o-extender, eeprom and rtc, the "big picture" is just written but not tested except for compilation:
The attached code compiles without errors with PBP,
but not with PBPL (gives those errors in #3)...
Really hoping it reveals something![]()
To be honest I have not played with USB yet, so I may be full of it as usual... but I may have found a solution.
Read Steve's note on this post.
http://www.picbasic.co.uk/forum/show...8&postcount=99
Dave
Always wear safety glasses while programming.
I'm using PIC 18F4550
You say that you may have found solution... Are you referring to the 18F4550.BAL? If so then the solution is not there, because I have that file in C:\PBP directory. If you are pointing to something else, please let me know what you are pointing at! Thank you anyway for trying to help me on this matter...
You can see the code that can be compiled without errors with PBP but not with PBPL...
...So, do you have any other suggestions, how to proceed from here...?
You can't put these lines in your program.
They are in that .bal file Dave was talking about.Code:BANKA $0000, $005F BANK0 $0060, $00FF BANK1 $0100, $01FF BANK2 $0200, $02FF BANK3 $0300, $03FF BANK4 $0400, $04FF BANK5 $0500, $05FF BANK6 $0600, $06FF BANK7 $0700, $07FF
And you need the .bal in the USB18 folder, not the one in the PBP folder.
<br>
DT
Thanks Darrel!
I'm confused, I have the same file in both places and when comparing them, they are equal. I do not know how there could be a difference between a file that is in two places, they should be equal, shouldn't they?
If they aren't equal, which one is more valid, or 100% valid?
Maybe I have overwritten one? Could this be possible?????
The problem here is not yet solved, but thank you all for your help so far.
I will take a brake and will be back again after 8 days, in the meanwhile I shall .... don't be envious ... perhaps I tell you afterwords what I did during those 8 days...![]()
It's very likely that you've overwritten one.
Here's what they should look like...
<table border=1><tr><td>PBP folder</td><td>USB18 folderCode:'**************************************************************** '* 18F4550.BAL * '* * '* By : Leonard Zerman, Jeff Schmoyer * '* Notice : Copyright (c) 2007 microEngineering Labs, Inc. * '* All Rights Reserved * '* Date : 06/29/07 * '* Version : 2.50 * '* Notes : Long * '**************************************************************** BANKA $0000, $005F BANK0 $0060, $00FF BANK1 $0100, $01FF BANK2 $0200, $02FF BANK3 $0300, $03FF BANK4 $0400, $04FF BANK5 $0500, $05FF BANK6 $0600, $06FF BANK7 $0700, $07FF 'EEPROM $F00000, $F000FF LIBRARY "PBPPI18L" 'LIBRARY "PBPUS18L" include "PIC18EXT.BAS" PORTL VAR PORTB PORTH VAR PORTC TRISL VAR TRISB TRISH VAR TRISC include "PBPPI18L.RAM" '*-----------------------* EOF 18F4550.BAL *--------------------*</td></tr></table>Code:'**************************************************************** '* 18F4550.BAL * '* * '* By : Leonard Zerman, Jeff Schmoyer * '* Notice : Copyright (c) 2007 microEngineering Labs, Inc. * '* All Rights Reserved * '* Date : 05/09/07 * '* Version : 2.50 * '* Notes : * '**************************************************************** BANKA $0000, $005F BANK0 $0060, $00FF BANK1 $0100, $01FF BANK2 $0200, $02FF BANK3 $0300, $03FF 'BANK4 $0400, $04FF 'BANK5 $0500, $05FF 'BANK6 $0600, $06FF 'BANK7 $0700, $07FF 'EEPROM $F00000, $F000FF 'LIBRARY "PBPPI18L" LIBRARY "PBPUS18L" include "PIC18EXT.BAS" PORTL VAR PORTB PORTH VAR PORTC TRISL VAR TRISB TRISH VAR TRISC include "PBPPI18L.RAM" '*-----------------------* EOF 18F4550.BAL *--------------------*
They are both 100% valid.If they aren't equal, which one is more valid, or 100% valid?
One is used for USB, the other is used for NON USB programs.
<br>
DT
Bookmarks