cancel
Showing results for 
Search instead for 
Did you mean: 

STM32C011 "Can not read memory"

torasn
Associate

I designed simple board around STM32C011J6 MCU (SO8 package). I'm using fresh-from-packaging parts, ordered from Element14 (Farnell). When I try to connect to MCU (via SWD, using ST-LINK/V2 ISOL), I get "Can not read memory! Disable Read Out Protection and retry" error:

13:05:51 : Connected via SWD.
13:05:51 : SWD Frequency = 0,9 MHz.  [I've tried frequencies between 400kHz to 4MHz, same result]
13:05:51 : Connection mode : Connect Under Reset.
13:05:51 : Device ID:0x443
13:05:51 : Device family :Unknown device
13:05:51 : Can not read memory! Disable Read Out Protection and retry.

Chip Erase doesn't work either, which suggests RDP2 (if indeed enabled). 

Is there some issue I concerning board layout/setup have managed to miss (SWDCLK for instance is used to control a FET in main application, but that should not interfere here; SWDIO and NRST are not shared), or has someone delivered me bogus parts (as I suspect)?

I am not seeing any activity on any of the MCU pins when disconnected from STLink, all pins (except gnd) measure as high.

3 REPLIES 3
Andrew Neil
Super User

Welcome to the forum.

Please see How to write your question to maximize your chances to find a solution for best results.

In particular, as this is a custom board, you need to post your schematic.

A good, clear photo of the board may also help.

 

What tool (including version) do you use when trying to connect to the board?

Does it see a correct target voltage?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Pavel A.
Super User

Device family :Unknown device

Your software does not seem to know the STM32C0 series.

 


@Pavel A. wrote:

Your software does not seem to know the STM32C0 series.


@torasn are you, perhaps, using the old ST-Link Utility ?

That was obsolete before the C0 series was introduced - so not surprising it doesn't recognise it!

The current tool is STM32CubeProgrammer:

https://www.st.com/en/development-tools/stm32cubeprog.html

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.