Skip to main content
slaviuspan
Associate
January 31, 2017
Question

Cannot access memory

  • January 31, 2017
  • 2 replies
  • 1278 views
Posted on January 31, 2017 at 08:59

I try to programm stm32f405RG MCU using stm32f4-discovery as a programmer. I use Keil 5. I connect chips throgh SWD. I can load prodramm on stm32f405, but it doesn't work. I run debug session in Keil and see, that programm doesn't run after SystemClock_Config(). Going step by step I get a lot of 'Cannot access memory' messages in Command window. Approximetly at line 'else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)'. The same program for stm32f4-discovery works properly.405 and 407 have almost the same

characteristics

. I think that problem is in using SWD.
    This topic has been closed for replies.

    2 replies

    JG Kim
    Visitor II
    May 4, 2017
    Posted on May 04, 2017 at 03:08

    Did you solve this problem?

    I have the same problem, too.

    It would be grateful to share the solution.

    AvaTar
    Senior III
    May 4, 2017
    Posted on May 04, 2017 at 09:02

    The same program for stm32f4-discovery works properly.405 and 407 have almost the same

    characteristics

    .

    That is just half of the problem.

    The F407VG on the F4-Discovery has a 8 MHz quartz oscillator attached to pins PH0 and PH1.

    Does your F405 board has the same ?