STM32F765: Different USB serial number in DFU and APP modes #15948
Unanswered
IlorDash
asked this question in
STM32 / Pyboard
Replies: 1 comment 1 reply
-
Have you tried to hard-code the serial number in your application? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
STM32F765: Different USB serial number in DFU and APP modes
I have several STM32F765, probably bought them in 2020, that I used on my boards. They have a different USB serial number in DFU and APP modes. Serial numbers consistently different in fourth byte: in DFU mode it's greater by 0xA for each MCU.
For example serial number in DFU mode - 356F345D3438:
Serial number in APP mode - 356F34533438:
I also tried to read serial number in REPL:
It's equal to the serial number in APP mode.
I found serial number algorithm description here -
micropython/ports/stm32/usbd_desc.c
Line 132 in 17d8234
So I'm wondering, if these bits can never be altered by the user, could the STM32 bootloader code have changed between MCU revisions, so it calculated the serial number differently?
Beta Was this translation helpful? Give feedback.
All reactions