x893 / CMSIS-DAP

STM32 port for CMSIS-DAP with additional serial (CDC) support
http://akb77.com/g/stm32/cmsis-dap-adapter/
477 stars 249 forks source link

ST-LinkV2 nRESET pin #8

Closed siorpaes closed 8 years ago

siorpaes commented 8 years ago

Hello,

I tried CMSIS-DAP on ST-LinkV2 dongle using Keil but found some issues with nRESET signal: the target could not reset nor I could use the "attach under reset" debugger option. The logic analyzer could not see any activity on this signal either. I checked where the nRESET pin is connected on this board and sorted out that it is hooked to PB6 (Pin 42), and not PB0 as reported in the code.

I changed to correct pin and now it's working like a charm. Is the dongle I have yet a different hardware version ? Or is there actually a minor bug in the code ?

Thanks for your attention

Regards,

David S.

x893 commented 8 years ago

Hello, I have various version of dongle - so may be make a mistake. I'll review and fix

Thanks David

siorpaes commented 8 years ago

All right, thanks! let me know if you need any further information, esp on the dongle's hardware

x893 commented 8 years ago

I check ST-Link V2 schematic (from NUCLEO board) and see PB0 for T_NRST signal. PB6 used for SWM_RST (for SWIM protocol)

siorpaes commented 8 years ago

Yes, you are correct: the schematic of Nucleo and Discovery boards do have NRST routed to PB0. However, the RST signal of the ST-LinkV2 dongle I have is connected to PB6. I triple checked continuity with multimeter. Could you verify on yours ?

st-linkv2

x893 commented 8 years ago

I havn't V2 version but you can make new configuration STLINKV2 and make changes for nRST. Later send pull request. I can do this myself but later. :)