Go to Post My contention is that there is not a whit of difference between noting that a change like that has to be made, and making the change. - Kris Verdeyen [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2008, 07:06
visent visent is offline
Registered User
no team
 
Join Date: Feb 2008
Location: Spain
Posts: 1
visent is an unknown quantity at this point
Getting the .hex code file only for a given function

Hello everybody,

I would like to comment some issue I am trying to get. I'm using MPLAB, C30 and a dsPIC30F6015.

Right now I have a main program set at lowest address (between 0x100 and lets say 0x1000). Then I have two different functions allocated at 0x2000 (named lets say F1) and 0x3000 (named lets say F2) respectively. The main loop of the program calls F1 or F2 trhough a function pointer. If I want the main loop to execute F2, I send a serial message and I change the function pointer.

Up to here all is perfect. The think that I want to do is to change the code itself of F1 or F2 through CAN. I have some experience with that: I have got successfully to change all the code of some program in an online way. In order to do that I divide the program space in two parts, so when the dspic is executing one program I can donwload other program in the other part of the program memory.

In order to download the program I read the .hex file generated by MPLAB.

Now I want to donwload only F1 or F2. I could look for the part of theses functions manually in the .hex file and download it, but the question is (at last):

Is there any way to obtain the .hex part file of the function I want to donwload? The point is to avoid looking for (manually or automatically) within the .hex file.

Thanks in advance for your comments and ideas.

Best wishes.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
There is no tool to process the file with the given suffix. paulcd2000 Programming 4 31-10-2007 21:06
"Error.MCP" file after HEX file trans iwdu15 Programming 1 24-01-2007 20:05
Hex code loader for the robot! paulcd2000 Programming 4 22-10-2006 01:58
.hex file too large for 2004 controller? AL_E Programming 6 21-01-2006 22:54
How do we convert a modified user routines file into a valid .HEX file HuskieRobotics Programming 13 28-02-2004 12:12


All times are GMT -5. The time now is 12:27.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi