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

Blinky Code Uploading Error

Hello Nordic Team,

    I followed the tutorial as you say(https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/nrf52840-dongle-programming-tutorial). But when I tried to upload Hax file (Already already provided in - C:\Nordic_semi\nRF5_SDK_15.3.0_59ac345\examples\peripheral\blinky\hex\blinky_pca10059_mbr.hex) . The device comes out from DFU mode ( and random RGB LEDs start blinking). See the attachments. Kindly guide me.

1.    Before Uploading the code -

                           

                      

2.    After Pressing write button -

                                       

3.   Device response (showing randomly led glow)-  

                                                                        

                                                             Waiting for your quick response.

                                                                      

Parents
  • Hello, 

    Not sure what your question is, but if you are concerned about the warnings in nRF Connect Programmer, these are correct. 
    As described in the tutorial:
    "When upgrade completes the device will reset and the dongle will no longer show up in nRF Connect unless the application used DFU Trigger Library is used, as it is no longer in DFU mode."

    Kind regards,
    Øyvind

  • Basically, I am unable to program dongle with blinky Hax. See the attached video.

  • No, you have programmed the Blinky example for the Dongle. This is correct behavior on the Dongle (RGB cycling colors).

Reply Children
  • Hello,

          I wrote the below code and upload in nrf dongle - 

    #include <stdbool.h>
    #include <stdint.h>
    #include "nrf_delay.h"
    #include "boards.h"

    /**
    * @brief Function for application main entry.
    */
    int main(void)
    {
    /* Configure board. */
    bsp_board_init(BSP_INIT_LEDS);

    /* Toggle LEDs. */
    while (true)
    {
    bsp_board_led_on(BSP_BOARD_LED_2);
    nrf_delay_ms(2000);

    bsp_board_led_off(BSP_BOARD_LED_2);
    nrf_delay_ms(2000);

    }
    }

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    According to this code LED 2 should on for 2 sec and the turn off for 2 sec (going on). But still, I am getting the same (RGB cycling colors) pattern.

  • It's Working. I forget to clear previous Hax file. 

Related