Connect with Facebook Lost Password?


Go Back   CodeCall Programming Forum > Software Development > C and C++

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-25-2008, 01:01 AM
Newbie
 
Join Date: Oct 2008
Posts: 4
Rep Power: 0
fysl is an unknown quantity at this point
Default 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..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-25-2008, 01:38 AM
dcs dcs is offline
Programming Expert
 
Join Date: Mar 2008
Posts: 371
Rep Power: 9
dcs has a spectacular aura aboutdcs has a spectacular aura aboutdcs has a spectacular aura about
Default 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-25-2008, 02:38 AM
Newbie
 
Join Date: Oct 2008
Posts: 4
Rep Power: 0
fysl is an unknown quantity at this point
Default 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??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-25-2008, 05:32 AM
Termana's Avatar   
Guru
 
Join Date: Oct 2008
Posts: 3,565
Blog Entries: 5
Rep Power: 29
Termana is just really niceTermana is just really niceTermana is just really niceTermana is just really nice
Default Re: how to convert C code to HEX file

By HEX do you by chance mean you want the C code turned into assembly?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-25-2008, 06:12 AM
Newbie
 
Join Date: Oct 2008
Posts: 4
Rep Power: 0
fysl is an unknown quantity at this point
Default 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..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-25-2008, 10:38 AM
dcs dcs is offline
Programming Expert
 
Join Date: Mar 2008
Posts: 371
Rep Power: 9
dcs has a spectacular aura aboutdcs has a spectacular aura aboutdcs has a spectacular aura about
Default 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-25-2008, 07:39 PM
Newbie
 
Join Date: Oct 2008
Posts: 4
Rep Power: 0
fysl is an unknown quantity at this point
Default 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..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio 2008: C# Reading Files Jordan CSharp Tutorials 8 06-20-2008 10:54 AM
Convert matlab code to C/C++ on Linux Kank C and C++ 2 10-11-2007 02:09 AM


All times are GMT -5. The time now is 09:16 PM.

Freelance Jobs

XML/XSL: Need code for Book with Chapers using XML
Create an XML file for a book of your creation, and a basic CSS file that will format it to display ...
Earn: $40.00


C++/C: Simple firework cue sequencer
What I require is a rework of a simple cue sequencer. I have a piece of hardware (an Arduino boar...
Earn: $50.00


HTML/XHTML: Menu Rework - ASCIIBin
I'm placing this in the HTML/XHTML section of the Freelance site but you are not limited to HTML. Wh...
Earn: $20.00



CodeCall Goal

Goal #1: 1,000 Blogs
Goal #2: 1,000 Wiki Pages
Goal #3: 300,000 Posts
Goal #4: 20,000 Threads
Done: 30%, 23%, 55%, 75%

Ads