I need to program the nrf51 controller directly from PC. How to connect nRF51822 controller from PC through UART/SWD pins to program.
I need to program the nrf51 controller directly from PC. How to connect nRF51822 controller from PC through UART/SWD pins to program.
Thanks for the help. But the problem turned out to be the difficulty of working with a production device that I only have half the information for. In order to flash the device, I have to turn it on which runs the current program immediately. When I flash, the flashing happens somewhere in the middle of that program running. Who knows where? This caused the saved data (in particular bonding info) to get corrupted. Restarts basically did not get pass reloading bonding. I removed all the code related to bonding (so I connect unencrypted) and it worked. So I did not erase the Softdevice and I did not fry my chip with my clunky soldering of the SWD interface.
I have learned to give a lot more respect to those hardware engineers that can solder micro wires to micro pins.