What have I done now?


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    59


    Did you find this post helpful? Yes | No

    Default Hex file samples

    Here is a working and non working hex file samples from the same code. Rename file extension to .hex

    There is a noticable difference in size of the files. Also, I noticed that on the drop down on the IDC Compile button I've got a couple choices listed:
    Picbasic Pro 2.50
    Picbasic Pro 2.50B
    Picbasic Pro 2.50L

    Originally I had two listed, 2.50 and 2.50L and the 2.50L was checked. So I tried checking the 2.50 just to see what would happen and then the 2.50B appeared. I don't know what the differences in these are but thought I'd throw it out there.
    Attached Files Attached Files

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


    Did you find this post helpful? Yes | No

    Default

    For what it is worth, The config bits are the same between the two. I have not had time to look any farther yet.
    Dave
    Always wear safety glasses while programming.

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    The notworking file has 17176 bytes, the working file has 5590 bytes.
    Are you sure about compiling the same program? Doesn't look like it to me...
    If the 17176 file was compiled with PBPL, that might make sense since PBPL uses all 32 bit math whereas PBP doesn't.

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


    Did you find this post helpful? Yes | No

    Question

    Hi, Hylan

    any chance you post here your source code ???

    just us to try to reproduce the probem ...

    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

  5. #5
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    967


    Did you find this post helpful? Yes | No

    Default

    I am a bit confused between your first post and the subsequent one. You indicate that the setup is 2 years old and a 2 week old compile works. IIRC, PBP2.50 is of recent vintage. Is it possible you compiled the working file with another version of PBP prior to 2.50? Is that version still available with you so you can backtrack and rule out the compiler change causing this issue? I would like to look at the listing to see if there's something broken here. If you feel insecure posting your code on the forum, you can PM it to me. Cant promise much, but I am willing to help

    PS: after loading both files, I can say that you haven't embedded the configuration into your source code. So, you are possibly setting the oscillator wrong. HS instead of XT or otherwise
    Last edited by Jerson; - 18th December 2008 at 18:03. Reason: PS added

  6. #6
    Join Date
    Sep 2007
    Posts
    59


    Did you find this post helpful? Yes | No

    Default

    Okay, so I looked and it's been less than 2 years. Maybe 2 dog years! I have been using the same version 2.50 the whole time and the same pic 18f6520.
    I did look and the use PBPL box was checked in response to Skimask's post. I assembled and compiled with it checked and unchecked and got the same result (nothing).
    Attached is the source code.
    Is there anything with the path setting under the environmental variables that needs to be set? What all should be in there?
    The only thing I have in there now is a pointer to the MPASM, nothing else.
    Thank you,
    Hylan
    Last edited by Hylan; - 18th December 2008 at 21:55.

  7. #7
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi Hylan,
    I compiled the source code you posted and got exactly what you posted as working and could not duplicate the nonworking code regardless of how I set my assembler or compiler options. Perhaps your mpasm got corrupted somehow, Maybe a fresh download is in order.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  8. #8
    Join Date
    Sep 2007
    Posts
    59


    Did you find this post helpful? Yes | No

    Default

    Joe,
    I appreciate it! Can you tell me your settings under your Compile and Program Options?
    And any other settings that might be impacting this.
    I will unload and reload MPASM and see what happens.
    Once I reload MPASM are there any setting changes I need to make there?
    Thank you,
    Hylan

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