cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot program STM32WB09TEF7TR Microcontroller using STM32cubeIDE

KKIM.6
Senior II

Hi,  I'm developing my custom board using STM32WB09TEF7TR Microcontroller but have a problem during Programming using STM32cubeIDE.

 

I can access the memory of this microcontroller using STM32CubeProgrammer through SWD protocol.

However, once I try to import my code to the microcontroller using STM32CubeIDE, the importing fails with error message below.

-----------------------------------------------------------------------

Break at address "0x100017d0" with no debug information available, or outside of program code.

 

Log output file: C:\Users\GGKIM\AppData\Local\Temp\STM32CubeProgrammer_a31344.log

ST-LINK SN : 0037002F3532510631333430

ST-LINK FW : V3J15M7B5S1

Board : STLINK-V3SET

Voltage : 3.30V

Error: ST-LINK error (DEV_TARGET_RESET_ERR)

2nd connect tentative with frequency (8MHz)

ST-LINK SN : 0037002F3532510631333430

ST-LINK FW : V3J15M7B5S1

Board : STLINK-V3SET

Voltage : 3.30V

Error: ST-LINK error (DEV_TARGET_RESET_ERR)

Encountered Error when opening C:\ST\STM32CubeIDE_1.17.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.0.202409170845\tools\bin\STM32_Programmer_CLI.exe

Error in STM32CubeProgrammer

Shutting down...

Exit.

----------------------------------------------------

 

Do you have any idea why it happened?

I also checked the option byte of this microcontroller. There is only one option byte, RDP. it was FF which means that anybody can do programing.

 

In addition, I want to try to import my code using the STM32cubeProgrammer by making a bin file from IDE. However, I don't know the starting address.

Does anybody know the starting address for manually importing a code using cubeProgrammer?

 

FYI, I can see the memory address from 0x10040000 to 0x100BF800, which means 0x100017d0 is outside of memory.

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

This is the same behavior mentioned on the previous link. The RSTN pin should be linked to the NRST pin of your ST-LINK.

Best Regards.

STTwo-32

 

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.

View solution in original post

8 REPLIES 8
STTwo-32
ST Employee

Hello @KKIM.6 

This seams to be the same behavior in this post. I think that can solve your issue.

 

Best Regards.

STTwo-32

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.

Thanks for your reply. 

I saw the previous post that mentioned soldering the SB30 pin of the developer board.

 

However, I'm using ST-LINK V3SET to debug my circuit board.

So, I don't know what pin has the same function as SB30.

 

Do you have any idea on it?

STTwo-32
ST Employee

Could you please share the schematics of your board and the connection with your ST-LINK.

Best Regards.

STTwo-32

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.

This is all I can share. Unfortunately, I'm not suing RST (B5) pin of this microcontroller.

KKIM6_0-1736523432937.png

KKIM6_1-1736523518167.png

 

This is the same behavior mentioned on the previous link. The RSTN pin should be linked to the NRST pin of your ST-LINK.

Best Regards.

STTwo-32

 

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.

I can try but I cannot understand because it wasn't mandatory when I used the STM32WB55 microcontroller. 

Thanks. Now IDE is working now by connecting NRST to RST.


@KKIM.6 wrote:

 I cannot understand because it wasn't mandatory when I used the STM32WB55 microcontroller. 


Indeed, NRST isn't generally needed, but there are cases where it is necessary - particularly where the application goes to sleep and/or disables the debug pins.

This is why it's always good to include access to NRST in your debug/programming connection.