Hi, I have done the following:
- Built a custom board with a brand new 128Kb nRF51822. On the board I only have the 16MHz xtal.
- Routed out SWD IO/CLK and connected to an nRF51 DK external debug-out P20, with VDD/VSS connection as well.
- I created a blinky_led HEX file from mBED to blink IO pin19 of the chip.
- I used nRFgo or nrfjprog to load the HEX file, since external debugging of nrf51-dk does not support mbed. It goes through saying "programming successful".
However the LED connected on pin11 does not blink. I tried to load the softdevice first and then load the mbed HEX, but it says mbed HEX has info in the softdevice region and they conflict. I have two questions:
- Does the fact that the burning process goes through fine mean that the custom PCB is built correctly? I was able to write, read, and erase the memory space. I'd assume if the PCB is faulty I won't be able to program the chip at all?
- How do I get the pin11 to work? any hint? Does the HEX generated from mbed work on generic PCB with nrf51822?
Thanks!
###########Edit########### I have uploaded the mbed hex file - it's just a turn-on pin11, without any BLE stuff. I have tried the blinky from SDK using GCC and it works. Could it be because of the 128kb version that I need extra settings in mbed when compiling the HEX?blinky.hex