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

Topics - Torben W. Hansen

#1
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



#2
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