Hi is talking about ccsinfo compiler
see below about #serialize
#serialize
Syntax:
#SERIALIZE(id=xxx, next="x" | file="filename.txt" " | listfile="filename.txt",
"prompt="text", log="filename.txt") -
#SERIALIZE(dataee=x, binary=x, next="x" | file="filename.txt" |
listfile="filename.txt",
prompt="text", log="filename.txt")
Elements:
id=xxx - Specify a C CONST identifier, may be int8, int16, int32 or char array.
Use in place of id parameter, when storing serial number to EEPROM:
dataee=x - The address x is the start address in the data EEPROM.
binary=x - The integer x is the number of bytes to be written to address specified.
string=x - The integer x is the number of bytes to be written to address specified.
unicode=n - If n is a 0, the string format is normal unicode. For n>0 n indicates the
string
number in a USB descriptor.
Use only one of the next three options:
file="filename.txt" - The file x is used to read the initial serial number from, and this file
is updated by the ICD programmer. It is assumed this is a one line file with the
serial number. The programmer will increment the serial number.
listfile="filename.txt" - The file x is used to read the initial serial number from, and this
file is updated by the ICD programmer. It is assumed this is a file one serial
number per line. The programmer will read the first line then delete that line from
the file.
next="x" - The serial number X is used for the first load, then the hex file is updated to
increment x by one.
Other optional parameters:
prompt="text" - If specified the user will be prompted for a serial number on each load.
If used with one of the above three options then the default value the user may
use is picked according to the above rules.
log=xxx - A file may optionally be specified to keep a log of the date, time, hex file name
and serial number each time the part is programmed. If no id=xxx is specified
then this may be used as a simple log of all loads of the hex file.
Description:
Assists in making serial numbers easier to implement when working with CCS ICD units.
Comments are inserted into the hex file that the ICD software interprets.
Examples:
//Prompt user for serial number to be placed
//at address of serialNumA
//Default serial number = 200int8int8 const serialNumA=100;
//#serialize(id=serialNumA,next="200",prompt="Enter the serial number")
//Adds serial number log in seriallog.txt
//#serialize(id=serialNumA,next="200",prompt="Enter the serial number",
REMARK: It is working with their programmer
Hanks microstick I'll study #serialize
Posted on: October 26, 2019, 03:05:22 15:05 - Automerged
Hi Max
can you specify a little bit more about you need?
Do you change the MAC address in the source code before reprogram the device or you want a kind of automatic change of the MAC address?
In the first case, you can use a variable, the EEprom memory or the flash memory to write the new address.
You can use also a function that returns the MAC address.
In the second case, I don't think that CCS can insert this value for you in the source code.
If you want a sort of automatism you can use, for example. AutoIt to change the MAC address in your source code Before every reprogram.
Is it possible that I did not well understand your need, sorry for my suggestions in this case.
I'm trying to do a source code that it changes every time I program a device