summary history branches tags files
commit:f2b792d07cd008bf3951bc52045b1faa3f72f536
author:mrmekon
committer:mrmekon
date:Thu Nov 8 15:48:38 2012 -0500
parents:98b052ad255e3a2bec9aa49c4e24d2eade8a4561
Added notes to readme
diff --git a/README.md b/README.md
line changes: +22/-1
index 8e08d30..c6d17bb
--- a/README.md
+++ b/README.md
@@ -1,4 +1,25 @@
 picdb
 =====
 
-Command-line debugger for Microchip PIC processors 
\ No newline at end of file
+Command-line debugger for Microchip PIC processors
+
+
+Reverse engineering notes
+=====
+
+Get public methods from classes in a jar:
+$ i=debugger; javap -classpath com-microchip-mplab-open-hid.jar -s $(jar -tf com-microchip-mplab-open-hid.jar |grep class |sed 's/.class//g') |less
+
+Save all public methods into text files:
+$ for i in `ls *.jar`;do echo $i; javap -classpath $i -s $(jar -tf $i |grep class |sed 's/.class//g') > ~/pic_classes/$i.txt; done
+
+Microchip's terrible command-line interface:
+$ /Applications/microchip/mplabx/mplab_ide.app/Contents/Resources/mplab_ide/bin/mdb.sh
+
+Edit mdb.sh to launch with:
+$jvm -javaagent:/Users/trevor/Downloads/intrace-agent.jar ...
+
+Trace java method calls with InTrace.app
+
+Examples and some documentation available in PIC SDK.  Must register here:
+http://www.opensource4pic.org/