cancel
Showing results for 
Search instead for 
Did you mean: 

How to solve "Failed to read memory" error in ST-LINK Utility

kazu_robot
Associate II

Hello.

I want to write a program on M3 HiBot TITech Tiny Controller.

This board uses STM32F205 VCT7.

I connected ST-Link / v2 and the board by JTAG to write the program.

1 (JTAG on the board) → 1 (TVCC: ST-Link / v2)

3 → 5 (TDI)

4 → 7 (TMS)

5 → 9 (TCK)

6 → 13 (TDO)

7 → 15 (STM32 RESET)

8 → 18 (GND)

I performed "Target"-> "Connect" of ST-LINK Utility, but an error like an image occurred.

I tried looking for similar errors but it did not solve them.

Please give me a solution.

0690X000008AnUNQA0.png

1 ACCEPTED SOLUTION

Accepted Solutions

Are the power supply pins VDD, VDDA of MCU at 3.3v? Are there capacitors connected to VCAPx? Is VRef pin voltage connected to Vdd or Vdda (above 1.8v)?

View solution in original post

7 REPLIES 7

Hi.

Try to decrease the JTAG frequency from Menu->Target->Settings or /and try to change the Reset Mode from HW to SW.

Check also at Menu-> Target->Option Bytes if Read Out Protection is enabled.

As third option, reconnect device with SWD port to STLink (SWCLK,SWDIO,GND).

if stlink insists to stop reading at 0x080002fc flash address, indicates a HW error.

Thank you for your reply.

I tried JTAG frequency with all patterns. (Reset mode tried with both HW and SW.)

However, the same error screen as the previous one has occurred in all the results.

[Option Byte] → [Read Out protection] was set to [Level 1].

I tried to change to [Level 0] but an error occurred. (I think that's because Connect has not been completed.)

It was possible to connect ST-Link and NUCLEO-F446RE with SWD.

So I connected the SWD port of M3 HiBot TITech Tiny Controller to ST-Link, but it was not recognized. (Nothing was displayed in [Settings] → [STM32 Target Information].)

1 (SWD on the board) → 1 (TVCC: ST-Link / v2)

2 → 7 (SWIO)

3 → 9 (SWCLK)

4 to 18 (GND)

In the case of JTAG, STM32F2xx was displayed in [Target] of [Settings] → [STM32 Target Information].

Sorry, do you know anything?

"So I connected the SWD port of M3 HiBot TITech Tiny Controller to ST-Link, but it was not recognized"

This not make sense, SWD should work except RDP is 2.

OK. Try not to read so much bytes but change it to eg 16 as below.

After change the RDP or just full erase chip.0690X000008AqDFQA0.jpg

Thank you, I tried.

However, when I try to change RDP, I get such an error.

0690X000008AqbqQAC.png

I found a person in the same situation as me.

https://stackoverflow.com/questions/44626010/read-out-protection-enabled-without-any-action-and-cant-be-disabled

The same thing happens with this video in this article.

https://giphy.com/gifs/3ohzdRZHrSVNO1qgBa

Seeing the answers, I doubted that the pins were not well connected.

So I checked using a tester, but there was no problem.

During the check, there was a rare occasion when RDP could be changed. (When I turned off the board, I got the same error as the first one.)

Unfortunately, there is no repeatability.

Are the power supply pins VDD, VDDA of MCU at 3.3v? Are there capacitors connected to VCAPx? Is VRef pin voltage connected to Vdd or Vdda (above 1.8v)?

The voltage of each VDD and VDDA was measured by a tester.

The MCU is STM32F205 VCT7.

11, 19, 50 pins (VDD) → very small voltage (can not be measured)

Pin 22 (VDDA), Pin 28 (VDD) → 2.0 V

75, 100 pins (VDD) → 3.3 V

I consulted the company that made this board on this matter.

Thank you for your polite response. I am very grateful.

BMino.1
Associate II

You mentioned that you then consulted the company that made the board, did you find out the cause?

I have exactly the same problem with the board I made (using STM32L476).

If anyone knows the result after that, I would appreciate your advice.