cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot access memory

slaviuspan
Associate II
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.
2 REPLIES 2
JG Kim
Associate
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
Lead
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 ?