How to write custom "ID" to flash (by programmer, not by MCU firmware) ?
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 ?
