pbp and linux


Results 1 to 32 of 32

Thread: pbp and linux

Threaded View

  1. #32
    Join Date
    Dec 2012
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Re: pbp and linux

    ok, went through and fine tuned everything with pickit2 part, just change it to this and it should work perfectly.

    #!/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
    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.

    here's the updated JDM part too:
    #!/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
    also, here's the new and easier version of compile pbp code command.
    #!/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
    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.
    sorry about the mixup, had to reinstall linux on here a few days ago, so had to work out all of the little bugs
    Last edited by Chirpy; - 17th December 2012 at 22:44.

Similar Threads

  1. Replies: 1
    Last Post: - 30th October 2012, 09:28
  2. Replies: 5
    Last Post: - 16th October 2012, 20:31
  3. Linux with PBP
    By sayzer in forum PBP Wish List
    Replies: 0
    Last Post: - 8th August 2006, 21:27
  4. LINUX IDE and PBP
    By mslaney in forum General
    Replies: 0
    Last Post: - 5th January 2005, 20:43
  5. Linux
    By mackrackit in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 5th February 2004, 21:56

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts