2023-05-03 05:43 AM
I have about 40 devices with identical hardware (STM32G071K). All devices will have the same firmware, but i need to distinguish them by custom unique "ID" (numbers from 1 to 40) - which will serve as address at RS485 network. How to do that ?
On STM32F0 it can be done using "user bytes" in option bytes by CubeProgrammer. But STM32G0 have not this feature. How to simply write number somewhere into flash ?
2023-05-03 06:12 AM - edited 2023-11-20 06:36 AM
?
JW
2023-05-03 07:21 AM
Thanks. I finaly changed linker script and reserved last flash sector. Then using STM32_Programmer_CLI.exe i can write 32bit value to selected fixed address.
2023-05-04 05:17 PM
Note that each processor has a unique serial number which may be accessed. You could also access that. If you need a correspondence, then that might be a lookup table. You do not program, nor need to program, that serial number.