santook
Member
In many cases, we need to use serial number fields like MAC in single-chip microcomputer code, and this field is constantly changing, which means that we need to constantly modify the code and recompile.
If we need to burn firmware for 1000 pieces of microcontroller, then this is an extremely tedious task.
I recommend adding a precompiled call to the B4R IDE that calls a default replace operation before the code is compiled, then compiles, and accumulates the data cursor when the code is compiled again.
Add a batch compile function that compiles a set number of HEX files at once, and the name and path of this file can be set by the user.
I believe this will be a very practical function.
The compilation process is like this:
(1) Single compilation
Determine whether serialization is set, call serialization replacement, compile the source code, rename the generated. HEX file according to the serial number, and increase the data cursor by 1.
(2) Continuous compilation
Determine whether serialization is set, call serialization substitution, compile source code, rename the generated. HEX file according to the serial number, increase the data cursor by 1, repeat the above operation.
If we need to burn firmware for 1000 pieces of microcontroller, then this is an extremely tedious task.
I recommend adding a precompiled call to the B4R IDE that calls a default replace operation before the code is compiled, then compiles, and accumulates the data cursor when the code is compiled again.
Add a batch compile function that compiles a set number of HEX files at once, and the name and path of this file can be set by the user.
I believe this will be a very practical function.
The compilation process is like this:
(1) Single compilation
Determine whether serialization is set, call serialization replacement, compile the source code, rename the generated. HEX file according to the serial number, and increase the data cursor by 1.
(2) Continuous compilation
Determine whether serialization is set, call serialization substitution, compile source code, rename the generated. HEX file according to the serial number, increase the data cursor by 1, repeat the above operation.