Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Torben W. Hansen

#1
OK - and thanks for your assistance.

As far as I remember the JIT-module expects the commandfile in the specified format.
I guess I have to go back and re-study the project.

Kind regards
Torben W. Hansen
#2
Yes the JIT module is a standalone excuteable, but what about the interface below:

  FILE *commandfile;
  FILE *datafile;
  FILE *userfile;
  char datafilepath[2000];
  char userfilepath[2000];

Do you mean that I could make commandfile with a text editor and call the JIT module with the commandfilepath ?

Kind regards
Torben W. Hansen
#3
Dear Andy,

Thanks for your fast reply.

Probably you remember I modified the Simple Serial Number JIT-module example to work with LPC2378 in february 2009. This JIT example is working with the Flash Magic GUI version.

As I understand you recommend to make a batch job using FM.EXE twice, downloading in two steps - first the application and second the data produced by the JIT-module.

In this case I have rewrite the JIT-module to a stand-alone version right ?

Kind regards
Torben W. Hansen



#4
Hi

The GUI-version of Flash Magic supports JIT-modules specified in the menu: Option->Advanced Options->Just In Time Code tab. Here one can type in the JIT-Module path and Options.

How can JIT-modules be called when using the command line version (FM.EXE) of Flash Magic ?

With thanks in forward...
Kind regards
Torben W. Hansen



#5
Dear Andy,


Thanks for your information!

Have nice weekend...

Kind regards
Torben W. Hansen
#6
Thanks!

It was an excellent answer.

Can I find information of the data and user files in the command file and in which folder is the command file located ?

Kind regard
Torben W. Hansen
#7
LPC2xxx / Simple Serial Numbering JIT module for LPC2378
February 05, 2009, 04:41:21 AM
Hi,

I have rewritten the "JIT Examples/Simple Serial Number"  C-code, which follows the FlashMagic tool, in order to work with the ARM based LPC2378 cpu. The original C-code was limitted to program the serial number in a 16bit flash address range (0x0000...0xFFFF) for the 8051 family. It is now possible to program a "Just In Time serial number" into the full 32bit flash address range (0x00000000...0x0007FFFF), which requires use of INTEL HEX record types 4 and/or 5. The C-code is still working for 16bit address ranges as 8051s.

The modified C-code works perfectly, but I do not fully understand some few parts of the original code. I have studied the Flash Magic User manual and found only a little about JIT modules.

In the original C-code file pointers and arrays below are defined:

  FILE *commandfile;
  FILE *datafile;
  FILE *userfile;
  char datafilepath[2000];
  char userfilepath[2000];

In the User manual for FlashMagic on page 50/51 under the section "7.5 Just In Time Code" following is written:

executablename
commandfilepath
datafilepath
userfilepath
option

My questions are:

1) Can somebody explain the connection between these terms and the C-variables ?

2) I can't find any .hex file generated by the serial numbering JIT module.
    Is the serial number hex information placed in a file or generated by FlashMagic on the fly ?

If it is of interest for this forum I can upload the modified Serial number JIT module including source code to this web site...

Kind Regards
Torben W. Hansen