STM32F072 DFU not working (incorrect serial number read)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-09 6:34 AM - edited ‎2023-11-13 5:27 AM
I have a custom board that I need update by USB. I have a jumper that allows setting the following:
- nboot bit set to 1
- BOOT_0 pin set to 1.
Then I power on the board and I can see the stm32 bootloader device on my windows machine.
First I get a similar behaviour as https://community.st.com/t5/stm32cubeprogrammer-mcus/problem-with-dfu-and-stm32f072b-discovery-board-cubeprogrammer/td-p/254296 . However, after accepting the disable request from the STMCUbeProgrammer (even though it was never enabled) i get the error (Device is under Read Out Protection)
The device is not in read out protection. I have not enabled or modified any option bytes and the device has had all its flash erased before the procedure. I can see that it is not correctly recognizing the Target information (Board, device, type, etc).
My schematic is as follows (I have tried with and without R31)
- USB_DM = PA_11
- USB_DP = PA_12
Any ideas what may be causing this behaviour?
- Labels:
-
STM32F0 Series
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-09 1:25 PM
Dear @RMoli.3 ,
try to remove the R31 resistor - pull up / power off and on again and check if the same behavior ?
Cheers,
STOne-32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-09 2:19 PM
STM32F0672 ?? What part?
There are some F0 series parts that don't have a Unique ID burned in them.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-13 5:06 AM
Dear @STOne-32 I have tried with and witout the R31 pull up and the behaviour is the same
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-13 5:19 AM - edited ‎2023-11-13 5:25 AM
Dear @Tesla DeLorean the device I am using is STM32F072CBT6
As far as I am concerned from AN2606 does have a DFU bootloader if HSE is enabled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-30 12:24 AM
Use USB2.0 hub if you connected for USB3.0 ports.
