STM32f427 SWD reset issue
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-21 5:51 AM
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 0x10900x0800019A 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
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-21 6:43 AM
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..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-08-03 4:05 AM
Posted on August 03, 2015 at 13:05
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-08-03 4:10 AM
Posted on August 03, 2015 at 13:10I have the same problemon board I have a STM32F417VG with JTAG connector which is connected to J-link and keil uvision 5.14the code compiled successfully and even load to ARM flash. but in debug mode, debugger stopped at BLX R0 linewhat should I do??
