Skip to main content
Visitor II
October 2, 2025
Solved

STM32C011 "Can not read memory"

  • October 2, 2025
  • 3 replies
  • 223 views

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.

    This topic has been closed for replies.
    Best answer by torasn

    Thanks, now I feel silly. Haven't had any issues with old ST-Link, since even new STM32H7 parts work nicely with it. Tried cubeProgrammer and it connects fine, so guess I have to just get used to modern bloated-and-slow-as-molasses tools for now...

    3 replies

    Super User
    October 2, 2025

    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?

    Super User
    October 2, 2025

    Device family :Unknown device

    Your software does not seem to know the STM32C0 series.

     

    Super User
    October 2, 2025

    @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

    torasnAuthorAnswer
    Visitor II
    October 2, 2025

    Thanks, now I feel silly. Haven't had any issues with old ST-Link, since even new STM32H7 parts work nicely with it. Tried cubeProgrammer and it connects fine, so guess I have to just get used to modern bloated-and-slow-as-molasses tools for now...