Open USBDemo.PBP, look at the top of it.
about now?Code:' ' Pic Configuration ' ================= asm __CONFIG _CONFIG1L, _PLLDIV_1_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L ; ; ; USB clock source comes from the 96 MHz PLL divided by 2 ; ; [OSC1/OSC2 Src: /1][96 MHz PLL Src: /2] ; No prescale (4 MHz oscillator input drives PLL directly) __CONFIG _CONFIG1H, _FOSC_XTPLL_XT_1H & _FCMEN_OFF_1H & _IESO_OFF_1H ; ; ; Oscillator Switchover mode disabled ; ; Fail-Safe Clock Monitor disabled ; XT oscillator, PLL enabled, XT used by USB __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_ON_2L & _BORV_2_2L & _VREGEN_ON_2L __CONFIG _CONFIG2H, _WDT_OFF_2H __CONFIG _CONFIG3H, _MCLRE_ON_3H & _LPT1OSC_OFF_3H & _PBADEN_OFF_3H & _CCP2MX_ON_3H __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _ICPRT_OFF_4L & _XINST_OFF_4L & _DEBUG_OFF_4L endasm
That would be great if you could tell us wich MPASM version you're using.
All config fuses can be found in the MPASM Suite folder.
The default installation path is C:\Program Files\Microchip\MPASM Suite
First USBDemo was for the 18F4550 if you're using something else, you'll need to change some files... or go at the following
http://www.picbasic.co.uk/forum/show...8&postcount=99
HTH
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
It look equal, it is like this:
__CONFIG _CONFIG1H, _FOSC_XTPLL_XT_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
; ; ; Oscillator Switchover mode disabled
; ; Fail-Safe Clock Monitor disabled
; XT oscillator, PLL enabled, XT used by USB
and is exactly eqal....
By the way, why do you suspect your own code?
I have not changed anything within it and that is why I'm confused here...
Downloaded it yesterday, it is 5.20That would be great if you could tell us wich MPASM version you're using.
I'm using 18F4550, so hopefully there is no need to mess up things more in my mind, too many things to think over already...All config fuses can be found in the MPASM Suite folder.
The default installation path is C:\Program Files\Microchip\MPASM Suite
First USBDemo was for the 18F4550 if you're using something else, you'll need to change some files... or go at the following
http://www.picbasic.co.uk/forum/show...8&postcount=99
HTH![]()
By the way, why do you suspect your own code?well after ~2 years i've posted that one, i would never suspect it
Let's make sure i understand... you have exactly this line
MPASM 5.20+ PBP 2.50 and it still throw you some errors?Code:__CONFIG _CONFIG1H, _FOSC_XTPLL_XT_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
If so, if you're using MicrocodeStudio, are you sure that you have manually pointed MPASM to c:\program files\microchip\MPASM suite ?
Last edited by mister_e; - 29th October 2008 at 18:01.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
for error 118, look at this...
http://www.picbasic.co.uk/forum/show...75&postcount=5
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
That link suggest that one should comment those lines that produce the "overwriting previous address content" the 118 error from corresponding .INC file, that is in this case C:\PBP\18F4550.INC.
I can find only one line (line 20) that is equal in that file:
__CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
The strange thing here is, that when compiling USBDemo.pbp again it blames again also on the same commented line in USBDemo.asm !!
I would have expected that line to disappear from the the generated 118-error list...
Is it somewhere else also
I have tried to look for it but can only find one in C:\Program Files\Microchip\MPASM Suite, but the content is quit different looking there.
comment ALL CONFIG lines in your c:\pbp\xyz.INC file
Code:;**************************************************************** NOLIST ifdef PM_USED LIST "Error: PM does not support this device. Use MPASM." NOLIST else LIST LIST p = 18F4550, r = dec, w = -311, w = -230, f = inhx32 INCLUDE "P18F4550.INC" ; MPASM Header ;__CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L ;__CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H ;__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H ;__CONFIG _CONFIG3H, _PBADEN_OFF_3H ;__CONFIG _CONFIG4L, _LVP_OFF_4L & _ICPRT_OFF_4L & _XINST_OFF_4L NOLIST endif LIST EEPROM_START EQU 0F00000h BLOCK_SIZE EQU 32
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
As I wrote... Yes Sir! And to be exact, PBP 2.50b !! Confusing ??? ...
I believe so, please take a look at the attachment.If so, if you're using MicrocodeStudio, are you sure that you have manually pointed MPASM to c:\program files\microchip\MPASM suite ?
More confusing...![]()
Holly crap... anyways, try to remove ALL MPLAB version, then re-install the latest version of it.
Assuming your PBP 2.50b is in the usual c:\pbp folder and MicroCode point to it... I'm out of ressources....
Last edited by mister_e; - 29th October 2008 at 18:45.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks