How to specify target in PBP file?


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    953

    Default How to specify target in PBP file?

    Hi

    I code various types of PICs ranging from the 676 to 628 to 917 and 4550. My setup is PsPad(editor)-PBP-PM/MPASM as the case may be.

    The editor has an option to run the PBP compiler with command line options where I specify the processor target with the -p option. While maintaining the programs for the various pics, I invariably compile a project for a different target. What I would like to know is if anyone knows if I can embed the target type into the PBP source file so that I dont have to tell PBP on the command line which target I need to compile for. Is it possible?

    I have looked on the forum for this, but found answers related to Microcode studio and I do not use it.

    Thanks for you attention
    Jerson

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Unless you create a macro, or specific batch file, or external application which parse your code and then create the command line, i don't see any obvious solution. Not familiar with this editor though.

    Out of curiosity, why are you using this editor?
    Last edited by mister_e; - 27th April 2008 at 09:02.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,617


    Did you find this post helpful? Yes | No

    Unhappy no miracle at sight

    Hi, Jerson

    as MPASM needs to be told which processor it must compile for ... before launching PbP ( or MPASM ... ), I do not see how to do that .


    I already tried that with pure asm ... LOL :

    some similar processors can compile the same file without pain ... and conditionnal assembly solve the header files choice and different registers and ports naming.

    I just placed an error message shown by MPASM at compile time to verify if processor selected was the good one ...


    Now, with PbP ... I haven't tried conditionnal assembly yet ( possible ? - inserting asm directives ? ) and Already asked Steve, if he saw a solution to tell MPLAB which processor I want to use.

    Answer was the same as yours ... you must tell MPLAB which processor in use AT FIRST.

    Alain

    PS ... MPLAB 8.10 release is launched ... but still no PBPL integration !!! GRRRRRRRR !!!
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    953


    Did you find this post helpful? Yes | No

    Default

    Out of curiosity, why are you using this editor?
    I use this editor to handle C files, Basic files, ASM files too. Has a good load of features - most important of all - column editing and syntax colouring. See, I code in 8051 C besides PBP. Also, it has a good hex editor built in. All you can need for your editing needs. Give it a try, bet you'll like it too. Its freeware.

    no miracle at sight
    Alain - I wish there will be.

    Still, if there is some way, I'd like to know. Its not stopping me working, but..... I'd like to avoid the compile time errors without pulling out what's left on my head ...

    Thank you for your ideas

    Jerson

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    That's what i thought knowing you work on many different platform and languages. One for all. Seems fair enough for me too

    Well unfortunately i don't have any magic potion for this one... the custom code parser solution is the only one i see.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. PBP List file???
    By MOUNTAIN747 in forum General
    Replies: 2
    Last Post: - 28th February 2010, 19:48
  2. hex file inside PBP program for bootloading slave chips
    By grzes.r in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st December 2009, 10:47
  3. asm.lst file in PBP
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th January 2009, 11:30
  4. The ultimate include file
    By bearpawz in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th January 2007, 19:35
  5. PBP File Extension: .BAS vs .PBP
    By nedtron in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th February 2006, 05:48

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