We've released PIC32UBL for Mac OS X.
Please check github repository.
This gui application is to write a HEX file with PIC32 HID Bootloader(AN1388)
on Mac OS X.
The pic32prog is the most famous programming utility on Mac and linux
but it cannot write a file of odd bytes. Additionaly its source codes are
a little complexity to understand and modify because this utility supports
a number of writer, JTAG and boot loader.
So I ported Microchip PIC32UBL's codes for USB HID bootloader to Mac with
Java and Max6.
We used javahidapi library to communicate with an USB HID device on Java
and made the mxj object for Max6.
If you are PIC32 and AN1388 user, please check this utility in your
environment!
Also, Java source codes are released based on GNU GPL v3 and Max
patch is released based on Creative Commons Attribution-ShareAlike
3.0 Unported.
Last 5 posts in Controller
- <!--:ja-->Chalkboard Electronicsのタッチスクリーンの輝度を強制的に最大値にする<!--:--><!--:en-->How to raise the brightness to max value of Chalkboard Electronics Touch Screen<!--:-->
- <!--:ja-->Banana Piでタッチスクリーンを使う<!--:--><!--:en-->How to use a touchscreen on Banana Pi<!--:-->
- <!--:ja-->Banana Piでのカーネル再構築<!--:--><!--:en-->Re-compile of Kernel on Banana Pi<!--:-->
- <!--:ja-->Banana Piで解像度1366x768のモニタを使う場合<!--:--><!--:en-->How to use the screen resolution 1366x768<!--:-->
- <!--:ja-->Banana Pi(Bananian)へのPd-extendedのインストール<!--:--><!--:en-->How to install Pd-extended to Bananian on Banana Pi<!--:-->
This max bootloader programmer looks great, but it doesn’t work for me. Tried on OS X 10.6.8 and 10.9.5 with various revisions of Max 6.1.
I’m Attempting to use it with a custom board. The patch connects, erases and version checks our board fine, but freezes Max immediately on clicking Program until i unplug the board, at which point i get these messages in the max window:
java.io.IOException:
at HIDDevice.write(Native Method)
at hid.writeToDevice(hid.java:282)
Exception in thread “Thread-7” java.lang.NoClassDefFoundError: HIDDeviceInfo
Caused by: java.lang.ClassNotFoundException: HIDDeviceInfo
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
A standalone from your git repo’s history also exhibits the same behavior.
Also confusing is the many copies of libhidapi-jni.jnilib in the repo, some in mac subfolders, some not. Some of them are different when binary diff’d, some are the same. Which one should I put in /Library/Java/Extensions? I found one that doesn’t give errors in the max window when the patch is launched or when connecting to the board, so I assume that is the one to use, but it’s a bit confusing. Also in the Max_Demo_Patches/HID_Demo/mac folder are two copies that appear to be 32bit and 64bit versions…
Thanks for you work on this – its exactly what i was looking for since our end user software is already written in Max, but alas it doesn’t quite work.