I have a (recent) nRF51-DK & bought a couple of the Waveshare Core51822 breakout boards.
I'm hoping I can program this board with an mbed .hex file using the nRF51-DK (on Mac, not Windows), ideally via drag & drop like a normal mbed .hex upload. Happy to try installing other s/w if I need to, but can't be Windows s/w.
I'd like to use nRF51-DK P20 debug out connection ('in order to program shield mounted targets') (rather than the Debug out P19 header) as it's easier to connect jumper leads to. Docs say 'the Interface MCU will detect the supply voltage on the mounted shield and program/ debug the shield target'.
How should I connect it up?
On the Core51822 I can see pins marked VDD, (2x) GND, SCLK, SDO
On the nRF51-DK P20 there are: GND DETECT, RESET, SWO, SWD CLK, SWD IO, VTG, VDD, VnRF
Very new at this (although long time programming) so somewhat clueless, thanks for any help!
So you can't longer flash with the use of BMP? Furthermore, how did you upload Softdevice to the chip. By flashing Softdevice through BMP and then your mBed code after through BMP? :)
Roger Clark wrote:
David
I bought some of these http://www.wireless-tag.com/index.php/Product/dis/25.html (from AliExpress). They come with some AT based command firmware, and they are read protected, so you need to clear them before you can use them, which I found a bit tricky to do, as JLink didnt seem to be able to communicate with device at all while it was read protected. From what I recall I ended up using my Black Magic Probe to write some values to specific memory locations which forced a total erase of the device (Sorry, I should have written down the link, but at the time I was so relieved to have not bricked the device, I didn't think to document what I'd done)
I then managed to get MBED to to work on that module, by selecting the HRM1017 module for the project, as that module doesn't have the 32kHz crystal either.
Unfortunately I've been so busy with work, that I've not had time to write any more blog entries or do any more YouTube videos.
I have enhanced my Arduino for NRF51822 repo and you can no upload to the Waveshare (http://www.waveshare.com/wiki/Core51822 ) module using JLink as well as Black Magic Probe, but I've not had time to publicise this on my blog etc :-(
BTW. The Wireless-tag modules are OK, but because they don't have the 32kHz crystal it makes them useless for a lot of low power applications, as the power consumption in sleep is much higher than the modules with the 32kHz crystal.
I actually ended up buying a bag of 32kHz crystals and some 12pF capacitors, which I solder onto those boards, so that they can be programmed via the Arduino IDE, but mainly to get the current consumption down.