Problem creating hex file for PIC18F4550.

Discussion in 'Embedded Systems and Microcontrollers' started by Navneetdante, Feb 24, 2016.

  1. Navneetdante

    Thread Starter New Member

    Feb 24, 2016
    4
    2
    Please help me creating hex file for PIC18F4550. I am rigging up a circuit for voice input output using pic microcontroller.
    I need it for my final year project. Please help me out guys. i am Posting the c code.
    If possible please create the hex file.
    thank you.
     
  2. Papabravo

    Expert

    Feb 24, 2006
    10,137
    1,786
    Ummm. You need the C18 compiler, or equivalent, to compile your source file into a .HEX file that you can use to program an actual part. I think it might be a free download from the Microchip website.
     
  3. mcgyvr

    AAC Fanatic!

    Oct 15, 2009
    4,769
    969
    I just talked to your instructor and they said we should not help you and that your grade will be marked down some just because you asked someone to do this for you..
     
  4. Navneetdante

    Thread Starter New Member

    Feb 24, 2016
    4
    2
    i tried using the compiler but not happening. its showing errors
     
  5. Navneetdante

    Thread Starter New Member

    Feb 24, 2016
    4
    2
    please help me guys. its my final year project.
     
  6. Papabravo

    Expert

    Feb 24, 2006
    10,137
    1,786
    What errors is it showing? Can you cut and paste the error messages?
     
  7. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    Once you get this to build and program your pic and the LCD doesn't respond go back to the data sheet for the LCD and see how long the delay after power on to the time you can use it is, then add that delay to your code.
     
  8. Papabravo

    Expert

    Feb 24, 2006
    10,137
    1,786
    It is not clear that he has a clean compile yet. Can't do anything without first getting a clean compile. Only way to do that is to understand the error messages, and if the error messages are in English, and English is not your first language it could be a problem.

    Are there compilers with error messages in Kannad, Telugu, Tamil, and Hindi? I would be surprised if there were.
     
  9. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,648
    761
    The code is not yours, is it?

    Have you tried to understand what it does?

    Error codes? Which ones?
     
  10. JohnInTX

    Moderator

    Jun 26, 2012
    2,341
    1,024
    It looks like the project is from the EngineersGarage.
    First step is to tell us what compiler you are using and what the error messages say. A better step is to try to design and code the project yourself maybe using the article as a starting point. As others have pointed out, there are likely problems in the code itself.
    Good luck.

    EDIT: It looks like the original code was written in HiTech C. The source will compile with XC8 after a few syntax cleanups. Compile it, review each error and fix it. It took me about 5 minutes. Since its your senior project, I'll leave the rest to you.
     
    Last edited: Feb 24, 2016
  11. Papabravo

    Expert

    Feb 24, 2006
    10,137
    1,786
    It seems the TS/OP is not thrilled with our responses so far. No reply for 6 whole hours.
     
  12. JohnInTX

    Moderator

    Jun 26, 2012
    2,341
    1,024
    Don't forget the 12 hour time difference. But yeah, we will see.
     
  13. Papabravo

    Expert

    Feb 24, 2006
    10,137
    1,786
    Posting times are not expressed in local time -- are they?
     
  14. JohnInTX

    Moderator

    Jun 26, 2012
    2,341
    1,024
    I think they are if your location is known.
     
  15. dannyf

    Well-Known Member

    Sep 13, 2015
    1,779
    360
    Looks to be written for C18. Minimum changes to get it to compile on other compilers.
     
  16. Papabravo

    Expert

    Feb 24, 2006
    10,137
    1,786
    Yes, I agree that all times on postings are in the time zone of the viewer, if his location is known. It is NOT the case that my postings are in EST, and the TS/OPs postings are in Bangalore time. All the times I see are EST so I can estimate how long it has bee since the TS/OP made his last post.
     
  17. Navneetdante

    Thread Starter New Member

    Feb 24, 2016
    4
    2
    i solved it guys. yea i ws using cx8 compilerthe prob was wd the #include<timers.h> it should be time.h
     
    JohnInTX and ErnieM like this.
Loading...