pbp and linux


Closed Thread
Results 1 to 32 of 32

Thread: pbp and linux

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Re: pbp and linux

    ok, I just tried it with Skin=None and the skins are still there, and it still is the same way. I dont think it's going to run on linux/wine. I think the only alternative is recompiling using freepascal, which I did look into it and it does open up those xe3 files, also it cross compiles to windows/linux/osx x86.
    Last edited by Chirpy; - 10th December 2012 at 03:00.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: pbp and linux

    I just tried FineLine on my openSUSE box and did not have the refreshing problem but the menue bar was invisible.

    Also tried installing PBP3 and did not have any luck due to the activation process. I did not play with it too much though, I am sure that there is a way...

    So I guess we have to decide if it is worth it. I have been running Virtual Box with an XP install for the last year or so to get around issues like these. Works well if your hardware is up to it.

    Linux/Window... different tools for different jobs. But it is frustrating the way the most popular OSs are going with Ubuntu and Unity and Windows with the tiles. I know there are ways around these but...
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Dec 2012
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Re: pbp and linux

    yea, the tiles is what bugs me most. I think I rather just finish up my gedit mods and use that, pretty much every other programming language uses gEdit also in linux, so I might as well just add it in and get it working. makes it easier to do everything up in anyways. I always used gedit to mess with python stuff rather than IDLE because it starts faster and does the same thing more or less, also I end up usually just starting the programs from the command line with python. so gedit works better for me with that.

    also, Ive never used pbp3 because of the new keywords and such, also most of the code out there is still using pbp 2 for everything, so I just stick with my 2.6 version that I have. I know that the old code probably should work with the 3.x but why upgrade when you already have something that works good :P

    atm, as far as I can tell, everything works in gedit for compiling, code highlighting, and all of those features. The compiling and burning using pickit2 works too, Ive used it a few times to upload code to my robot. The only thing that isnt implemented yet is a chip selector, but anyone who programs stuff in linux and have gotten this far should probably be able to get back into external tool's manager, and just change the chip name there, where they added in the scripts. nothing too hard and it is changable, and quite easy at that imo.

    I know the scripts are in the ~/.gnome2/gedit/tools/ so it shouldn't be too hard to just write a program to be called up and modify that value in the code in those scripts.

    little by little, it'll get finished
    Last edited by Chirpy; - 10th December 2012 at 05:23.

  4. #4
    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