Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 3 months ago.
flashing a raw nrf51822 with the RedBearLab MK20 board
I've designed a custom board around the MDBT40, an NRF51822 powered module. This is the same module the BLE Nano uses, so I based my schematic on the Nano, and am using the RedBearLab MK20 USB board to program it. I've connected my custom board to the MK20 as follows:
GND to GND
VDD to VDD, through a 3.3v regulator
SWCLK to DCLK with a 12kOhm pulldown resistor on the line
SWDIO to DIO
My custom board is giving the MDBT40 power as confirmed by the LED and a multimeter. However, I am unable to flash the bootloader to the chip. Dragging the RedBearLab provided bootloader.hex to the MBED drive results in "can't complete the operation because some of the data in 'bootloader.hex' can't be read or written". Connecting the same 4 pins using the same cable on an authentic RedBearLab BLE Nano results in a successful flash. Is there a step I've missed? Do I require a different programmer to initialize the chip?