Author Topic: STM32F0 Failed to read memory  (Read 2172 times)

0 Members and 1 Guest are viewing this topic.

Offline DubbieTopic starter

  • Supporter
  • ****
  • Posts: 1115
  • Country: nz
STM32F0 Failed to read memory
« on: January 23, 2018, 01:03:26 am »
I just assembled a board with a stm32F0 chip.
I am connecting to it with st-link utility and a st-linkV2 via SWD

It connects fine, but if I try to read past 0x8007FF0 I get an error:  Failed to read memory @08008000!
Trying to write a bin to it fails as well.

Does this mean the chip is damaged or is there something I am overlooking?
I tried erasing the memory, but that didn't make any difference.

Thanks,
R
 

Offline llkiwi2006

  • Regular Contributor
  • *
  • Posts: 105
  • Country: nz
Re: STM32F0 Failed to read memory
« Reply #1 on: January 23, 2018, 01:56:10 am »
0x8000 is 32k of flash. What chip do you have? Are you sure it has more than 32k of flash?
 

Offline DubbieTopic starter

  • Supporter
  • ****
  • Posts: 1115
  • Country: nz
Re: STM32F0 Failed to read memory
« Reply #2 on: January 23, 2018, 02:17:22 am »
Argh! Of course you are right. It only has 32K.   :-[

Why does STLink Utility try to read past 32K if I try to save the memory?

[edit] I am stupid. I never noticed the size field before. If I put 0x8000 in there, it all works properly.

Thanks for the help.
« Last Edit: January 23, 2018, 02:21:43 am by Dubbie »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf