Badly written examples

I'm currently in the middle of writing the host side of a USB bootloader for the Microchip F8xJxx series processors.

This weeks lesson:
1- Don't try to convert online example code to do what you need, you'll invariable end up with an unmaintainable mess.... The clever people who can work out how to get the basic USB calls working are rarely the best at writing nicely structured libraries!

I've decided its much easier in the long run to take the time to understand the calls fully and implement them from scratch

I currently have working libraries for WinUsb, HID and Microchip based drivers (all implemented in C#). The full ones belong to Quarch but I'm happy to put up snippets if you're having trouble with any particular parts. Just leave a request in the comments.

Andy

Comments

Popular posts from this blog

JTAG Progromming on a PIC

Using Plink.exe from C# (accessing a linux PC)

Evohome problems on Danfoss RAS-C2 valves