Step 6: Generate and View the Code
Compiler Choices in HIDmaker FS 2:
Compiler Choices in HIDmaker 32:
When you’re satisfied with all the descriptor tables, their values, and their comments, you’re ready to generate code for both the peripheral and the PC-side programs. Save your work at this point, and click the “Next ” button. HIDmaker FS will check all of your descriptors (including any new values or whole descriptor tables you have added) at this point, and advise you of any errors or changes you need to make.
When all problems have been resolved, HIDmaker FS will present you with programming language choices. On the left column, choose your favorite PICmicro programming language: PicBasic Pro, Assembler, Hi-Tech C, or C18, to let HIDmaker FS generate the firmware for your USB HID -class peripheral. On the right column, choose your favorite Windows programming language: Visual Basic, Delphi, C++ Builder, or the .NET compilers.
View and Print Your Code
HIDmaker FS shows you the code that it has generated, organized by programming language in the Peripheral Side and Host Side groups. Just click on the tabs to view files in either group, and any particular language in that group.
If you like, you can print out the code that HIDmaker FS has generated for you. You can print out:
a single file, or
all the files generated in the programming language that is currently visible , or
all the generated code files.
If you know what features you want to add to the generated code, you can even edit it right inside HIDmaker FS .
You're Ready to Compile!
Use the PIC language compiler that you already own to compile the USB HID peripheral side code that was generated by HIDmaker FS . Program the hex file produced by your compiler into a device, and install that device into your peripheral circuit board.
Similarly, use the PC-side language compiler that you already own to compile the PC-side application code that HIDmaker FS generated.
Now, you’re ready to test.
Next: Step 7: Test Your Code >>