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

ble_app_interactive code for nRF52840 Dongle

Hi i am working on nRF52840 Dongle , I could not find ble_app_interactive application for nrf52840 dongle,

i am trying to implement the same code with some modification as below:

changed Project->options->c/c++ compiler->Preprocessor

Defines:

BOARD_PCA_10059

NRF52840_XXAA

S140

but i am getting an error saying: Duplicate definition for UARTE0_UART0_IRQHANDLER

Please suggest if there is already ble_app_interactive example code exist for nRF52840 Dongle???

Parents
  • Hi.

    How did you try to implement it?

    Did you follow this tutorial?

    I did a successfull implementation by following that tutorial.

    These are the steps I did:

    1.  Make a copy of the folder pca10056 in examples\ble_central_and_peripheral\experimental\ble_app_interactive

    2. Renaming that folder pca10059

    3. Chaning the preprocessor define BOARD_PCA10056 to BOARD_PCA10059

    4. Open the file components\boards\pca10059.h

    5. Adding the defines needed for configuring UART for CLI

    #define RX_PIN_NUMBER  NRF_GPIO_PIN_MAP(1,10)
    #define TX_PIN_NUMBER  NRF_GPIO_PIN_MAP(1,13)
    #define CTS_PIN_NUMBER NRF_GPIO_PIN_MAP(1,15)
    #define RTS_PIN_NUMBER NRF_GPIO_PIN_MAP(0,2)
    #define HWFC           true
    

    Then I compiled the project without any errors:

    Try this.

    Best regards,

    Andreas

  • I am using IAR to compile the code and generate hex file.

    I am using nrf connect for desktop to dump code into Dongle. I am getting following error:

    please suggest what to do?

    Thanks

  • Hi.

    I do not have IAR myself, but looking at your screenshot it appears that you have been successful in updating the firmware on the Dongle, as you can read "DFU for Application completed successfully!". Also note that you don't have to use Segger Embedded Studio, the important thing is that the preprocessor define is changed for the project, and that you add the missing defines to the pca10059.h file.

    The error you got on the screenshot is because when the writing process completes, the device resets and – unless the application uses the DFU Trigger Library – the Dongle will no longer show up in the nRF Connect application, as it is no longer in the bootloader mode. And this error will occur.

    Best regards,

    Andreas

Reply
  • Hi.

    I do not have IAR myself, but looking at your screenshot it appears that you have been successful in updating the firmware on the Dongle, as you can read "DFU for Application completed successfully!". Also note that you don't have to use Segger Embedded Studio, the important thing is that the preprocessor define is changed for the project, and that you add the missing defines to the pca10059.h file.

    The error you got on the screenshot is because when the writing process completes, the device resets and – unless the application uses the DFU Trigger Library – the Dongle will no longer show up in the nRF Connect application, as it is no longer in the bootloader mode. And this error will occur.

    Best regards,

    Andreas

Children
Related