cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP135 Bare Metal Project Debug Issues

robbie-galfrin
Associate

Hi, 
Purchased the STM32MP135F-DK.
Opened in STM32CubeIDE a Bare-Metal Project for this specific DK, with default IOC configurations, and only added a simple UART message in main to test.

Project Build went fine, But unable to debug.

The hardware setup:

Power USB-C cable connected.

ST Micro USB cable connected, and ST-LINK debugger is detected.

Boot Toggle Switches configured to Forced USB boot for programming (All 0s)

No SD card inserted.

ST-LINK debugger updated to latest version using the upgrade utility.

 

Things I tired:
1. 

In debug configuration, tried selecting Debug Probe ST-LINK GDB Server
Those are the debug configurations:

robbiegalfrin_1-1704121617572.png
I get the following message:
"Failed to start GDB server. Error in initializing ST-LINK device. Reason: (4) No device found on target."

robbiegalfrin_0-1704121547325.png

Tried in ST-LINK GDB Server mode to change the Reset Behaviour, modify the frequency, didnt help.

Tried Debug Probe ST-LINK(OpenOCD) with the following configuration:

robbiegalfrin_2-1704121747997.png

I get the following text:

robbiegalfrin_3-1704121876191.png

Also tried using STM32CubeProgrammer and attempted connecting to the DK, with various configurations, I only get "Error: Cannot identify the device"

robbiegalfrin_4-1704122102688.png

I tried all the above on two different Dev Boards, identical results.

How can I run a bare- metal project on this development kit? 
Please help me with this.

 

3 REPLIES 3
Erwan SZYMANSKI
ST Employee

Hello @robbie-galfrin ,
Did you follow this wiki article : https://wiki.st.com/stm32mpu/wiki/STM32CubeMP13_Package_-_Getting_started ? 

Kind regards,
Erwan.

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.
robbie-galfrin
Associate

Hi, I havent before but have now.

I have switched to engineering mode boot pin configuration on the board. 
Besides this I have performed all steps in the Getting Started page. 

I still get the following error:

robbiegalfrin_0-1711177690818.png

I would very much appreciate any assistance.

Best Regards,
Robbie.

Hello @robbie-galfrin ,
You tell me in your first message that all boot pins are at 0. But it should not. It should be in engineering mode, with boot pin number 3 toggled. It is precised in the first chapter of the article I mentioned in my message. Can you test again the steps of the article with using this boot mode ? 

Kind regards,
Erwan.

 

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.