Skip to main content
Associate
December 12, 2024
Solved

My PC with windows does not detecting STM32MP157 in DFU mode

  • December 12, 2024
  • 2 replies
  • 3693 views

Hi everyone,

I've designed a custom board using the STM32MP157. Rather than using an ST-Link, I'm planning to flash the code using DFU mode. To do this, I've installed STM32CubeProgrammer on my PC and connected the USB cable to the board. However, CubeProgrammer isn't detecting the STM32MP157, even though I've configured the BOOT pins for DFU mode.

I'm wondering if I'm missing something. Can anyone guide on this issue?

Best answer by PatrickF

Hi,

all the voltage in STPMIC1 will be automatically handled by Linux with correct Device Tree (including overclocking voltage frequency to 1.35V/800MHz when required by the processing).

Btw, I did not see any DDR memory on your schematics. STM32MP15 is barely not usable with external DDR memory (where the Flash code is loaded during boot).

Regards.

2 replies

Tesla DeLorean
Guru
December 12, 2024

Does it work on an EVAL/DK1 board?

Does Windows recognize anything being attached?

Check viability of the USB Device implementation on your board, and any clocks the STM32MP157 needs for USB functionality.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
ebilal83Author
Associate
December 13, 2024

Thank you for your reply. I haven't used the EVAL/DK1 board. Instead, I've designed my custom board based on the standard schematic provided by STMicroelectronics for the EVAL board, making modifications as needed.

Here are the specific connections:

Micro USB                                          Connector STM32MP157 Pin
USB_NP11 (Y16)
USB_PP12 (W16)
USB_detectOTG_VBUS
Export to Sheets

The USB_detect signal is a 4V signal derived from VBUS, which becomes active when a USB cable is connected. USBFS and USBHS pins receive 3.3V signals.

The board utilizes a 32.768 kHz basic oscillator connected to P2 and P1. Additionally, a 24 MHz oscillator is connected to T2 and T1 pins. Should this 24 MHz oscillator be enabled for USB-based coding in DFU mode?

I'm encountering some difficulties and would appreciate your guidance.

 

PatrickF
Technical Moderator
December 13, 2024

Hi,

DFU is not working on OTG_FS pins, you should use OTG_HS ones.

PatrickF_0-1734076566362.png

 

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
ebilal83Author
Associate
December 13, 2024

I have activated both FS and HS pins by connecting it with 3.3V. The High Oscillator also working,  HSEIN and HSEOUT is 25Mhz. I checked it on an oscilloscope.