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

    Fullscreen
    1
    2
    3
    4
    5
    #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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    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

  • It means firmware is updated correct me if i am wrong.

    Then how do i overcome this problem? 

    because every time i write to device it shows this error. 

  • Hi.

    Yes, the firmware is updated.

    Rekha said:
    Then how do i overcome this problem? 

     I don't know if I would call it a problem. It happens because of what I said in my previous reply. If you application don't use the DFU Trigger Library, the device will no longer be in bootloader mode and this error will show up.

    Best regards,

    Andreas

  • And i want to read data from terminal via Uart profile. I am unable to do so.

  • Hi.

    Have you connected the correct pins?

    Best regards,

    Andreas

  • yesterday you gave some #defines , i configured for the same and checking.

Reply Children
  • Hi.

    Yes. But those were just arbitrary pin definitions, you still have to connect them to wires and a serial interface in order to make it work.

    I only showed you how to define pins 1.10, 1.13, 1.15 and 0.02 as UART pins, as you can see these "pins" are not connected to anything, you have to solder on wires and connect them to a serial interface which you plug into your PC in order to make the UART work.

    Best regards,

    Andreas

  • Hi here is the link why  i dint connect pins externally: 

    devzone.nordicsemi.com/.../nrf52-dk-and-uart-over-usb