Difference between revisions of "Programming nRF51822 with STlink on Windows"
Line 1: | Line 1: | ||
− | [[User:Sandeep|Sandeep]] ([[User talk:Sandeep|talk]]) | + | [[User:Sandeep|Sandeep]] ([[User talk:Sandeep|talk]]) and |
− | [[User:Vaibhav Katkar|Vaibhav Katkar]] ([[User talk:Vaibhav Katkar|talk]]) | + | [[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. | ||
− | + | ==Configuring Open OCD== | |
− | + | ==Connecting STlink with nRF51822== | |
+ | ===Reassigning WinUSB for stlink=== | ||
− | + | ==Using Open OCD== | |
+ | ===Open OCD as debugger=== | ||
+ | ===Open OCD as programmer/flasher=== | ||
− | + | ==References== | |
− | |||
− | [[File: | + | [[File:k.png|600x600px]] |
− | [[File: | + | [[File:a.png|600x600px]] |
− | [[File: | + | [[File:b.png|600x600px]] |
− | [[File:i.png| | + | [[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.