2014-05-21 05:51 AM
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: ENDP2014-05-21 06:43 AM
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.2015-08-03 04:05 AM
2015-08-03 04:10 AM