This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problems flashing hex file to nRF51

I just got a nRF51 and am having trouble getting started with it. I created a very simple program using the mbed compiler and produced a hex file which I now wish to flash to the nRF51. I fire up nRFGo Studio, select nRF51 Bootloader in the Device Manager window, select my hex file, select the COM port which is labelled Segger and hit Program. I get messages in the Log as follows:

Progress 0 Transmission timeout Ack out of sequence or not ack returned.

Or at least that's what I used to get. Now I'm not seeing the COM port for Segger.

Could you help me get started please?

Thank you

Parents
  • Hello,

    Which board do you have? Please look at the white label and reply back with the PCA number.

    If it is the PCA10024 then you cannot use the nRFgo studio or any other J-link type programing utilities. You will need to take your hex file and drag and drop it onto the drive that comes up when you plug in the board.

    Note, if you use MDK-ARM to make your hex file and you wish to include the softdevice (Stack) then you will need to merge them prior to dropping and dragging to the Nordic Mkit board. One utility that can do that is Mergehex.exe.

    JT

  • Dragging/dropping my hex file I got an error saying there is not enough space. To my surprise the file is 238KB! All it contains in terms of application code is:

    #include "mbed.h"
    
    #define LED1                     P0_21
    DigitalOut myled(LED1);
    
    int main() {
        while(1) {
            myled = 1;
            wait(0.2);
            myled = 0;
            wait(0.2);
        }
    }
    

    I'm using the mbed compiler which is also completely new to me.

Reply Children
No Data
Related