2/27/2023 0 Comments Microchip applicaiton libraryPerhaps as a long-term Arduino user, you want to explore a new processor performance option with your existing Arduino code base. Your own reasons for using this approach will depend on your personal needs and background. It uses the Microchip Technology MPLAB X IDE and MPLAB XC32 C Compiler and the Microchip Technology Microstick II programmer/debugger. Here’s an approach that enables Arduino code to be configured for execution with the Microchip Technology PIC32MX250F128B small-outline 32-bit microcontroller. It provides an open-source hardware (OSH) environment based on a simple microcontroller board, as well as an open-source (OS) development environment for writing software for the board. The highlighted project below is for the PIC18F14K50.The Arduino single-board computer is a de facto standard tool for developing microcomputer applications within the hobbyist and educational communities. I recommend downloading this library again you may have an incomplete or older library. * HID_NUM_OF_DSC is defined in usbcfg.h */īrowsing the example projects, there are many many HID projects, all which build just fine with the C18 compiler. "6.2.1 HID Descriptor" of the HID class definition specification However, usb_function_hid.h details another structure that I assume is a replacement: //USB HID Descriptor header as detailed in section There is no longer any mention of HIDDescriptor1 in any of the source. I downloaded and installed the Microchip Application Libraries. Or else it is somewhere else in the source that you downloaded, and you need to link that in as well. It seems that you have to define HIDDescriptor1 in your own code. So when you compile usb_function_hid.c, it will compile fine until you try to link it. In the header file, you have HIDDescriptor1 defined externally. I think either it's designed for another version of the compiler, I'm missing some external dependency, or I'm missing some compiler/linker switches.Īny ideas on what I need to do to get this to build? The HIDDescriptor1 symbol appears in 2 places in the code: PasteBin line 173 of the C file and PasteBin line 356 of the header file. I'm getting the following error when I build:Įxecuting: "C:\Program Files\Microchip\mplabc18\v3.40\bin\mplink.exe" /p18F14K50 /l"C:\MCC18\lib" /k"C:\MCC18\bin\LKR" "usb_function_hid.o" "usb_device.o" "enumeration.o" "usb_descriptors.o" /u_CRUNTIME /u_DEBUG /z_MPLAB_BUILD=1 /z_MPLAB_DEBUG=1 /o"C:\LPCUSBDK_Labs\Lab1_files\output\Project Lab 1.cof" /M"C:\LPCUSBDK_Labs\Lab1_files\output\Project Lab 1.map" /WĬopyright (c) 1998-2011 Microchip Technology Inc.Įrror - could not find definition of symbol 'HIDDescriptor1' in file './usb_function_hid.o'. Here is my C file and here is my header file. I'm using some standard files from Microchip's website. I'm using a PIC18F14K50 with MPLAB 8.43 and the Microchip C18 compiler. I'm trying to compile some code for basic USB HID functionality.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |