Jump to content


Photo

Problem with USB build example


  • Please log in to reply
3 replies to this topic

#1 david_uwi

david_uwi

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 22 January 2015 - 03:26 PM

I follwoed your instructions to activate usb communication between a pic18F4550.

I get the following error "A language-plugin exception occurred and was logged".

Now I have searched the internet and the solutions are amny and varied (one even involves editing the registry!).

Well none of them work does anybody have a suggestion.


  • 0

#2 Nathan House

Nathan House

    Administrator

  • Administrators
  • 122 posts
  • LocationLynchburg, VA

Posted 22 January 2015 - 03:55 PM

That sounds like an MPLAB issue. Are you using MPLAB 8 and C18?

 

I would try posting on the official MPLAB forum here, as they can probably help with this better than I can: http://www.microchip.../forums/f3.aspx

 

Good luck!


  • 0

#3 david_uwi

david_uwi

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 23 January 2015 - 02:13 PM

I have got the first problem solved. It was a file in thw wrong directory so the error message was misleading.

Anyway I've now got to the end "installing the framework" and I still get erros and warnings. Any ideas?

 

 

C:\pic18 demo\Firmware\main.c:455:Error [1105] symbol 'USB_BUS_SENSE' has not been defined
C:\pic18 demo\Firmware\main.c:702:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:705:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:813:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:814:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:816:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:820:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:828:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:828:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:832:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:832:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:836:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:836:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:840:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:840:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:846:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:847:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:854:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:855:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:857:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:861:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:986:Error [1105] symbol 'sw2' has not been defined
C:\pic18 demo\Firmware\main.c:995:Error [1105] symbol 'sw2' has not been defined
Halting build on first failure as requested.
----------------------------------------------------------------------
Release build of project `C:\pic18 demo\Firmware\USB Device - CDC - Basic Demo -  C18 - PICDEM FSUSB.mcp' failed.
Language tool versions: mpasmwin.exe v5.54, mplink.exe v5.00, mcc18.exe v3.47, mplib.exe v5.00
Fri Jan 23 10:10:46 2015
----------------------------------------------------------------------
BUILD FAILED
 


  • 0

#4 Nathan House

Nathan House

    Administrator

  • Administrators
  • 122 posts
  • LocationLynchburg, VA

Posted 29 January 2015 - 01:18 AM

Hi,

 

Sorry for not replying sooner!

 

I'm afraid I'm really not sure what is causing those errors, and I don't currently have MPLAB installed and so I can't try to help you debug it. I would recommend posting on the Microchip forum, where someone will probably be able to help you. At some point in the next few months I'm hoping to rewrite the USB tutorial and also write a bunch of other tutorials for the new compiler.

 

Sorry I can't be of more help right now, and best of luck!


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users