Line 1: Line 1:
[[User:Sandeep|Sandeep]] ([[User talk:Sandeep|talk]]) 17:43, 10 September 2015 (IST)
+
[[User:Sandeep|Sandeep]] ([[User talk:Sandeep|talk]]) and
[[User:Vaibhav Katkar|Vaibhav Katkar]] ([[User talk:Vaibhav Katkar|talk]]) 10:03, 30 September 2015 (IST)
+
[[User:Vaibhav Katkar|Vaibhav Katkar]] ([[User talk:Vaibhav Katkar|talk]]) 17:43, 10 September 2015 (IST)  
 
----
 
----
 
Getting STlink v1 working with openOCD is a pain. The USB driver implementation has flaws. The PC picks different drivers for the same device depending on its mood! Initially I got it working on my computer and to check I asked Vaibhav to try on his computer. He too wanted to use it to debug the LPC1114 MCU that he is working on for a last few weeks. It did not work, even after following the exact same steps. So we debugged and found out what the issue was.
 
Getting STlink v1 working with openOCD is a pain. The USB driver implementation has flaws. The PC picks different drivers for the same device depending on its mood! Initially I got it working on my computer and to check I asked Vaibhav to try on his computer. He too wanted to use it to debug the LPC1114 MCU that he is working on for a last few weeks. It did not work, even after following the exact same steps. So we debugged and found out what the issue was.
  
[[File:k.png|850x600px]]
+
==Configuring Open OCD==
  
[[File:a.png|850x600px]]
+
==Connecting STlink with nRF51822==
 +
===Reassigning WinUSB for stlink===
  
[[File:b.png|850x600px]]
+
==Using Open OCD==
 +
===Open OCD as debugger===
 +
===Open OCD as programmer/flasher===
  
[[File:c.png|650x500px]]
+
==References==
  
[[File:e.png|850x600px]]
 
  
[[File:f.png|850x600px]]
+
[[File:k.png|600x600px]]
  
[[File:g.png|850x600px]]
+
[[File:a.png|600x600px]]
  
[[File:h.png|850x600px]]
+
[[File:b.png|600x600px]]
  
[[File:i.png|850x600px]]
+
[[File:c.png|600x500px]]
 +
 
 +
[[File:e.png|600x600px]]
 +
 
 +
[[File:f.png|600x600px]]
 +
 
 +
[[File:g.png|600x600px]]
 +
 
 +
[[File:h.png|600x600px]]
 +
 
 +
[[File:i.png|600x600px]]

Revision as of 10:18, 30 September 2015

Sandeep (talk) and Vaibhav Katkar (talk) 17:43, 10 September 2015 (IST)


Getting STlink v1 working with openOCD is a pain. The USB driver implementation has flaws. The PC picks different drivers for the same device depending on its mood! Initially I got it working on my computer and to check I asked Vaibhav to try on his computer. He too wanted to use it to debug the LPC1114 MCU that he is working on for a last few weeks. It did not work, even after following the exact same steps. So we debugged and found out what the issue was.

Configuring Open OCD

Connecting STlink with nRF51822

Reassigning WinUSB for stlink

Using Open OCD

Open OCD as debugger

Open OCD as programmer/flasher

References

K.png

A.png

B.png

C.png

E.png

F.png

G.png

H.png

I.png