cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f427 SWD reset issue

evgen
Associate
Posted on May 21, 2014 at 14:51

On the board is STM32F427ZGT6 with SWD connection used alog with ULINK2 and KEIL 5.1 uVision.

The SWD connection is not recognized withot SWJ checked on, since at reset 32F427 switches to JTAG communication. 

The test program was compiled and successfully programmed in FLASH.  When entering debug mode the stop must be issued, since the processor hangs in strange location.

After manually setting R15 (PC) to 0x0800019c and starting , the code is running.

Why reset button in keil uVision 5.1 is not reseting the target, only stops the target? 

The same code works with Discovery evaluation board without issue.

                 NMI_Handler:

0x08000198 1090      DCW           0x1090

0x0800019A 2000      DCW           0x2000

   175:                  LDR     R0, =SystemInit 

0x0800019C 4808      LDR           r0,[pc,#32]  ; @0x080001C0

   176:                  BLX     R0 

0x0800019E 4780      BLX           r0

   177:                  LDR     R0, =__main 

0x080001A0 4808      LDR           r0,[pc,#32]  ; @0x080001C4

   178:                  BX      R0 

   179:                  ENDP 

3 REPLIES 3
Posted on May 21, 2014 at 15:43

The same code works with Discovery evaluation board without issue.

Perhaps because it's different? Like it has NRST attached, and is feed an 8 MHz clock signal? Assume no one knows anything about your board design.

If the code you expect is not running, check things like the BOOTx pins. If you want to debug the start up code, uncheck ''run to main'' and step through it.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
arshia1989
Associate
Posted on August 03, 2015 at 13:05

arshia1989
Associate
Posted on August 03, 2015 at 13:10

I have the same problem

on board I have  a STM32F417VG with JTAG connector which is connected to J-link and keil uvision 5.14

the code compiled successfully and even load to ARM flash. but in debug mode, debugger stopped at BLX     R0 line

what should I do??