ok, went through and fine tuned everything with pickit2 part, just change it to this and it should work perfectly.
I just wrote some code to my robot a few mins using this and the pickit2, so I know it works fine now. found out I needed to include the device file path and PIC to -PPIC$pic part.#!/bin/sh
pic="16f628a"
wine c:/pbp/pbpw -e -s -ac:/Program Files/Microchip/MPASM Suite/MPASMWIN -p$pic $GEDIT_CURRENT_DOCUMENT_NAME
var=$GEDIT_CURRENT_DOCUMENT_NAME
var2=${var%???}
outasm=$var2"ASM"
wine c:/Program\ Files/Microchip/MPASM\ Suite/mpasmwin /q /e /l $outasm
outhex=${var2}"HEX"
pk2cmd -B/usr/share/pk2/ -PPIC$pic -F$outhex -M -R
here's the updated JDM part too:
also, here's the new and easier version of compile pbp code command.#!/bin/sh
comport="/dev/ttyS0"
pic="16f628a"
wine c:/pbp/pbpw -e -s -ac:/Program Files/Microchip/MPASM Suite/MPASMWIN -p$pic $GEDIT_CURRENT_DOCUMENT_NAME
var=$GEDIT_CURRENT_DOCUMENT_NAME
var2=${var%???}
outasm=$var2"ASM"
wine c:/Program\ Files/Microchip/MPASM\ Suite/mpasmwin /q /e /l $outasm
outhex=${var2}"HEX"
picprog --erase --burn --input $outhex --device pic$pic --p $comport
in both of these, just change the 16f628a in the quotation marks at the top to change the chip, it's as simple as that now.#!/bin/sh
pic="16f628a"
wine c:/pbp/pbpw -e -s -ac:/Program Files/Microchip/MPASM Suite/MPASMWIN -p$pic $GEDIT_CURRENT_DOCUMENT_NAME
var=$GEDIT_CURRENT_DOCUMENT_NAME
var2=${var%???}
outasm=$var2"ASM"
wine c:/Program\ Files/Microchip/MPASM\ Suite/mpasmwin /q /e /l $outasm
sorry about the mixup, had to reinstall linux on here a few days ago, so had to work out all of the little bugs![]()
Bookmarks