2020-06-17 04:33 AM
Hi!
What is the serial number generation algorithm for the built in bootloader for STM32H745 controller?
In F4 and F7 this was working:
deviceserial[0] += deviceserial[2];
IntToChar(deviceserial[0], (uint8_t*)&str[0], 8);
IntToChar(deviceserial[1], (uint8_t*)&str[8], 4);
But for H7 I get different one from the built in DFU:
Example:
UID0: 0x00200032
UID1: 0x3438510E
UID2: 0x31373439
Built in ID: 200364500000
Generated ID: 3157346B3438
Probably can take a look the built in code of the disassembly but might be quicker asking here?
Thanks,
Benjamin
2024-04-10 07:26 PM
Sorry for the very late reply, but for those having the same question, the DFU bootloader is actually pulling these values from 0x5C001000 instead of 0x1FF1E800 which was suggested in the STM32H745 reference manual.
Was pulling my hair out the whole day today trying to figure this out. Was finally able to track it down while going through the cube's source code.