easyHID question


Closed Thread
Results 1 to 40 of 49

Hybrid View

  1. #1

    Default

    Quote Originally Posted by keymuu View Post
    ... compile DT's USBDemo.pbp ... The files in DT's USDemo.zip should work ...
    Steve (mister_E) and Darrel, I'm sorry that I mixed you two, sorry
    It should have been Steve's USBDemo not DT's, one should not hurry too much...

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    Open USBDemo.PBP, look at the top of it.
    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
    about now?

    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.

  3. #3

    Default

    Quote Originally Posted by mister_e View Post
    Open USBDemo.PBP, look at the top of it.

    about now?
    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...

    That would be great if you could tell us wich MPASM version you're using.
    Downloaded it yesterday, it is 5.20

    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
    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...

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    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
    Code:
    __CONFIG _CONFIG1H, _FOSC_XTPLL_XT_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
    MPASM 5.20+ PBP 2.50 and it still throw you some errors?

    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.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6

    Default

    Quote Originally Posted by mister_e View Post
    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.

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    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.

  8. #8

    Default

    Quote Originally Posted by mister_e View Post
    ... i would never suspect it

    Let's make sure i understand... you have exactly this line
    Code:
    __CONFIG _CONFIG1H, _FOSC_XTPLL_XT_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
    MPASM 5.20+ PBP 2.50 and it still throw you some errors?
    As I wrote... Yes Sir! And to be exact, PBP 2.50b !! Confusing ??? ...

    If so, if you're using MicrocodeStudio, are you sure that you have manually pointed MPASM to c:\program files\microchip\MPASM suite ?
    I believe so, please take a look at the attachment.

    More confusing...
    Attached Images Attached Images  

  9. #9
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    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.

  10. #10
    skimask's Avatar
    skimask Guest

    Cool

    Quote Originally Posted by mister_e View Post
    Assuming your PBP 2.50b is in the usual c:\pbp folder and MicroCode point to it... I'm out of ressources....
    Maybe the original CD from MeLabs was corrupted!

Similar Threads

  1. USB and EasyHID Problems
    By Rob in forum USB
    Replies: 8
    Last Post: - 6th January 2007, 18:19
  2. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 06:49
  3. HIDMakerFS versus EasyHID
    By Demon in forum USB
    Replies: 4
    Last Post: - 15th August 2006, 08:01
  4. EasyHID VB help with multiple HID's
    By pfinfrock in forum USB
    Replies: 1
    Last Post: - 6th October 2005, 19:16
  5. Replies: 0
    Last Post: - 5th September 2005, 09:09

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts