+ Reply to Thread
Results 1 to 7 of 7

Thread: how to convert C code to HEX file

  1. #1
    Newbie fysl is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    4

    how to convert C code to HEX file

    hi there, i wanna ask if anybody know what software used to convert C codes to HEX file and how to do it....Please help me though..i'm new in these thing..Plus its urgent thou..

  2. #2
    dcs
    dcs is offline
    Guru dcs is just really nice dcs is just really nice dcs is just really nice dcs is just really nice
    Join Date
    Mar 2008
    Posts
    767

    Re: how to convert C code to HEX file

    Take a breath in all the urgency and try to ask a better question, please. I might assume you are asking about a compiler, or possibly about a week one assignment. That leaves a bit of a gap.

  3. #3
    Newbie fysl is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    4

    Re: how to convert C code to HEX file

    ok..see here...i 've been writing a C language codes to burn into my pic project..
    to burn this program, i found a software called PICKit2...
    but to do so, i have to use HEX files only...
    so,i'm trying to find a compiler/program that can help change from C codes to HEX files(my friends say there a program to change from C to HEX..)..
    that is my problem....could you help me with this??

  4. #4
    Code Warrior Termana is a name known to all Termana is a name known to all Termana is a name known to all Termana is a name known to all Termana is a name known to all Termana is a name known to all Termana's Avatar
    Join Date
    Oct 2008
    Posts
    4,055
    Blog Entries
    6

    Re: how to convert C code to HEX file

    By HEX do you by chance mean you want the C code turned into assembly?

  5. #5
    Newbie fysl is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    4

    Re: how to convert C code to HEX file

    just to let u know.. i've already found the answer for my problem...
    thanks 4 every1 try to help me..
    thanks guys..

  6. #6
    dcs
    dcs is offline
    Guru dcs is just really nice dcs is just really nice dcs is just really nice dcs is just really nice
    Join Date
    Mar 2008
    Posts
    767

    Re: how to convert C code to HEX file

    Quote Originally Posted by fysl View Post
    ok..see here...i 've been writing a C language codes to burn into my pic project..
    to burn this program, i found a software called PICKit2...
    but to do so, i have to use HEX files only...
    so,i'm trying to find a compiler/program that can help change from C codes to HEX files(my friends say there a program to change from C to HEX..)..
    that is my problem....could you help me with this??
    Much clearer -- you had me at PIC.
    Quote Originally Posted by fysl View Post
    just to let u know.. i've already found the answer for my problem...
    thanks 4 every1 try to help me..
    thanks guys..
    Considering folks who may be curious or later on search and find this thread, perhaps you could be so kind as to mention the hex translator used for the PIC system to translate the linked executable into a downloadable hex file used for programming the device.

  7. #7
    Newbie fysl is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    4

    Re: how to convert C code to HEX file

    Quote Originally Posted by dcs View Post
    Considering folks who may be curious or later on search and find this thread, perhaps you could be so kind as to mention the hex translator used for the PIC system to translate the linked executable into a downloadable hex file used for programming the device.
    sure..
    Quote Originally Posted by futz View Post

    Anyway, what you're looking for is a C compiler. I recommend SourceBoost BoostC. The demo is only code size/RAM limited - works for all supported PICs. And when you hit the limits of the demo, a full license for the compiler is only about $75! Compare with C18's price of ~$500 and PICC's price of ~$1000. It's a no brainer! Better yet, BoostC comes with both 16F (supports some 12F also) and 18F compilers.
    Quote Originally Posted by futz View Post
    Anyway, to program a chip you install the compiler, being sure that it gets integrated into MPLAB properly. Then start MPLAB and run the Project Wizard. Make a new project for your chip and select the compiler you just installed as the toolsuite. Add the necessary files to the project to suit your compiler (BoostC wants the appropriate lib file added) and also add the source file (put both the source and any associated header files in the project dir first).

    Select your programmer (assuming it's MPLAB compatible) and compile. Then program the chip. If your programmer is not MPLAB compatible you may have to run a different program to program the chip. The hex file will be in the project directory you created before compiling.
    So that what i must do..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Visual Studio 2008: C# Reading Files
    By Jordan in forum CSharp Tutorials
    Replies: 8
    Last Post: 06-20-2008, 10:54 AM
  2. Convert matlab code to C/C++ on Linux
    By Kank in forum C and C++
    Replies: 2
    Last Post: 10-11-2007, 02:09 AM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts