1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Junebug help??

Discussion in 'Microcontrollers' started by MrDEB, Apr 8, 2009.

  1. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    error??

    what is a bas and sfp file.
    I don't see any asm files??
    I copied and pasted but get errors
    what formatting do I need to add?
    why are some letters in bold black and others in green etc.
    I think the bold = instructions?
    the green are subroutines?
     

    Attached Files:

  2. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    168
    Location:
    Toronto, Canada
    Ahh I see now. You're using the Swordfish BASIC IDE. You should be using MPLAB (and running the Wizard as described in the Junebug manual)
    As awesome as the Swordfish IDE is it is only meant for BASIC programs.
    MPLAB is an IDE for .ASM (MPASM) & .C (C18, ccs, HiTech, etc...)
    Swordfish is an IDE & compiler for .BAS files
    PICKit2 has the Logic tool & Uart Tool. It is best for loading .HEX files
    PK2CMD.EXE is the DOS command line program.

    Close Swordfish and open MPLAB and run the Wizard. The add BLINKY.ASM as a Source file.
     
    Last edited: Apr 9, 2009
  3. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    168
    Location:
    Toronto, Canada
    Here's a zip file containing BLINKY.HEX
    You can use the PICKit2 2.6x software to load and program (there's a button in the bottom right that does this in one step).
     

    Attached Files:

  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. futz

    futz Active Member

    Joined:
    Sep 15, 2007
    Messages:
    2,043
    Likes:
    24
    Location:
    Vancouver, B.C.

    Hi Bill. The typos in the two above quotes could possibly be confusing. Both words should be "an", not "and". :D
     
  6. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    168
    Location:
    Toronto, Canada
    Fixed. Thanks futz
     
  7. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,807
    Likes:
    135
    Location:
    morristown,tn
    futz He has been reading my posts and it rubbed off on him. lol
    barbebeaan it's taking over.
     
    Last edited: Apr 9, 2009
  8. mvs sarma

    mvs sarma Well-Known Member

    Joined:
    Oct 29, 2006
    Messages:
    3,512
    Likes:
    76
    Location:
    Hyderabad, India.
    Bill, Is it possible to integrate the swordfish Basic compiler into MPLAB? One could compile and get the Hex file to program the chip from MPLAB using JUNEBUG?
     
  9. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    Egads now Im lost again

    loaded mplab again
    loaded? the blinky asm file but now what
    using the swordfish thingy is easier I think but then this is all new
    need to locate step by step directions on the mplab I guess
    unless theres a short cut??
     
  10. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,807
    Likes:
    135
    Location:
    morristown,tn
    You can if you have the right
    it don't work with mplab 8.20 on windows xp home I didn't try on pro. or vista I could try but I like swordfish ide better it's easier for me to read the text in it. Here a link if you want to try.Swordfish Wiki | SwordfishUser / Using Swordfish with MPLAB browse
     
    Last edited: Apr 10, 2009
  11. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,807
    Likes:
    135
    Location:
    morristown,tn
    You can program with swordfish if you have this set right
     

    Attached Files:

    Last edited: Apr 10, 2009
  12. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    I is gonna try that be80be

    I am using mplab8.2 on win xp -maybe thats why I am having trouble doing anything in mplab
    gonna go to swardfish and try your edit suggestion.
    just need to figure out what a blind hex is??
     
  13. futz

    futz Active Member

    Joined:
    Sep 15, 2007
    Messages:
    2,043
    Likes:
    24
    Location:
    Vancouver, B.C.
    Never heard of a blind hex. Just googled for it and came up with nothing. Where did you hear of that?
     
  14. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    see be80be 's post

    I am trying to get swordfish into mplab as be80be did???
     
  15. 3v0

    3v0 Coop Build Coordinator Forum Supporter

    Joined:
    Jul 14, 2006
    Messages:
    9,404
    Likes:
    227
    Location:
    OKLAHOMA USA
    From this dialog box and it is 'bind' not 'blind'
    [​IMG]
    The thread has morphed..
    3v0
     
  16. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    BIND not blind I missed that

    now where to download mplab 7.6
    as I only found 8.20
    I assume the morphed post was from within mplab not swordfish??
     
  17. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    168
    Location:
    Toronto, Canada
    You want 8.20
    Just choose absolute if it asks when compiling BLINKY.ASM

    I've had little success with integrating Swordfish & MPLAB. Besides the Swordfish IDE is terrific for BASIC programs.
     
  18. mvs sarma

    mvs sarma Well-Known Member

    Joined:
    Oct 29, 2006
    Messages:
    3,512
    Likes:
    76
    Location:
    Hyderabad, India.
    the item is "bind hex" and not BLIND HEX
    Ps:Oh already clarified by 3v0
     
    Last edited: Apr 10, 2009
  19. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,807
    Likes:
    135
    Location:
    morristown,tn
    Like I said swordfish doesn't like mplab if it is a newer the 7.6 you don't want 7.6 Just use swordfish it can program your pick swordfish uses command line to build the HEX what i showed you is where you put the command Bill has it in his junebug manual .
     
    Last edited: Apr 10, 2009
  20. 3v0

    3v0 Coop Build Coordinator Forum Supporter

    Joined:
    Jul 14, 2006
    Messages:
    9,404
    Likes:
    227
    Location:
    OKLAHOMA USA
    This is one of my gripes with the state of affairs. Microchip has been slow getting MPLAB up to speed. That has encouraged language vendors to create their own IDE's but they are not willing to make them work with microchp ICD (CCS will sell you their version) or make sure their compiler plays nice with MPLAB.

    3v0
     
  21. MrDEB

    MrDEB Active Member

    Joined:
    Apr 16, 2007
    Messages:
    4,364
    Likes:
    22
    to be80be = a line by line

    explaniation on setting up mplab with swordfish would for sure help alot of would be pic programmers.
    Blueroom mentioned mplab asking for absolute when trying to get the blinky.asm file working????
    I need to get some woodworking projects done for my scout pack. get back at this tonight.
    hopfully figure out whats going on.
    I thought I had it but then the blinky file won't work.
    bas, asm, sfp etc files ???? drive one to drink--lol
     

Share This Page