cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H745 built in DFU bootloader serial number does not match CubeMX generated USB DFU device serial?

Beni1
Associate II

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

1 REPLY 1
jondoe0608
Associate

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.