To adapt to the mass production process, we use the exported bin file for programming. After programming, the program runs normally, but the parameters cannot be modified. The modified parameters are present during power supply but revert to the original default values after power-off.
For example, the default circuit board serial number stored in the chip is 2220352. After modification via the host computer software, it changes to 2220451. When the circuit board is powered on, the host computer software reads the serial number as 2220451. However, after power-off and restart, the data reverts to 2220352.
At this point, we have confirmed that the issue lies in the programming of the chip, but the exact cause is unclear. I would like to ask: Is this because the D flash partition was not initially configured for the chip? If this is the problem, how should we resolve it during mass production? Should we configure the partition for the chip before programming, and then burn the bin program? Can the chip be erased before burning the bin program?