2022-05-17 02:25 AM
I wanted to program custom stm32l496retg MCU Board from stm32l496zg nucleo board .i used sw4stm32 IDE to program the MCU custom Board.Removed two jumpers of CN4.But getting Wrong device detected
Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-04-12-08:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
padded zone erase set to 1
adapter speed: 480 kHz
adapter_nsrst_delay: 100
Info : clock speed 480 kHz
Info : STLINK v2.1 JTAG v39 API v2 M27 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.227207
Error: init mode failed (unable to connect to the target)
in procedure 'program'
in procedure 'init' called at file "embedded:startup.tcl", line 495
in procedure 'ocd_bouncer'
** OpenOCD init failed **
shutdown command invoked
Solved! Go to Solution.
2022-05-17 03:54 AM
OP said "Wrong device detected".
If it's detecting nothing at all, check connections.
Is the Target properly powered?
You said "custom stm32l496retg MCU Board" - is the board known to be working?
Have you tried with a standalone ST-Link (or other debug probe)?
2022-05-17 02:48 AM
https://community.st.com/s/question/0D53W00001XwfP5SAJ/st-link-v2-issue - see my reply of 11 May 2022 @ 11:09
#SW4STM32 #NRND
2022-05-17 03:05 AM
We also tried to program custom board by ST-Link-Utility tool.but wrong device detected message occurs and failed to program the custom board.
2022-05-17 03:13 AM
Always good to mention full information in the opening post!
So what device is it detecting?
Perhaps it's still detecting the stm32l496zg on the nucleo board ... ?
2022-05-17 03:37 AM
No device is detecting .Ref attached image .We also removed the jumpers cn4 on nucleo board to program custom board and as per shown image also change the connect under reset mode and make swd frequency to 480 KHz
2022-05-17 03:54 AM
OP said "Wrong device detected".
If it's detecting nothing at all, check connections.
Is the Target properly powered?
You said "custom stm32l496retg MCU Board" - is the board known to be working?
Have you tried with a standalone ST-Link (or other debug probe)?
2022-05-18 12:31 AM
Its working Now.It was Hardware problem
2022-05-18 01:24 AM
Good to hear - please mark the solution:
(I got a Notification saying a 'Best Answer' had been given, but it doesn't seem to be showing on the forum?)
EDIT: Done now. :thumbs_up: