sandeepmistry / arduino-nRF5

Arduino Core for Nordic Semiconductor nRF5 based boards
Other
872 stars 278 forks source link

added ST-Link/V2-1 aka ST-Link On-Board as stlinkob #500

Open so2akt opened 1 year ago

so2akt commented 1 year ago

added ST-Link/V2-1 on Programmers menu, below ST-Link V2

so2akt commented 1 year ago

sorry for immediately mis-closed... please check added feature!

carlosperate commented 1 year ago

What boards have this st-link on board? Doesn't the "normal" stlink profile work?

so2akt commented 1 year ago

Thank you for your reply! This ST-Link, ST-Link/V2-1 is on STM32 Nucleo (except for NUCLEO-32) and DISCOVERY series. I use NUCLEO-L053R8 with SWD connection. In addition, the "normal" stlink profile does not work because ST-Link/V2-1 has different PID as follows:

debugger VID PID OpenOCD config file note
ST-Link/V2 0x0483 0x3748 stlink-v2.cfg NORMAL stlink
ST-Link/V2-1 0x0483 0x374B stlink-v2-1.cfg on-board on NUCLEO and DISCOVERY

This spec is mentioned this stack overflow article, and STM 32 Nucleo-64 boards User Manual, section 6.2.