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

The Buttonless DFU Template Application is not working on a custom board

Hi,

I am currently working on a custom product that uses module BMD-300 from u-blox, which has nrf52382 chip in it. My application works fine and now I want to integrate the Secure DFU function into it. I programmed the board with the DFU test image sd_s132_bootloader_buttonless_with_setting_page_dfu_secure_ble_debug_without_bonds.hex but I could not see it advertising when I scan for devices on nrf Connect. Does anyone know what problem could cause it to not advertising? I am using sdk v15.0.0.

Thank you in advance.

Parents Reply Children
  • I have no problem importing the IAR project into SES and rebuild it. Could you please tell me what was the problem when you compiled it? I attached the makefile I exported from the SES ( I zipped it because the browser doesn't accept .mak file)

    Ctrl_2000M.zip

  • Vu said:
    Is it because you don't have IAR or are there compiling errors?

    There were compiler errors. 

     

    Is this based on an example from the SDK? If so, which one? Perhaps If so, perhaps I can just add in the custom files that you are using to compile it elsewhere. I am not sure what exactly to do with the .mak file.

    I tried importing the project to segger, but I got about the same error:

    What version of IAR do you use? Perhaps I can try to reinstall it with the same version.

    I tried to just take your main.c file and the others files in your 2000M folder and compile it in ble_app_uart. Some hickups regarding UART and UAURTE with your sdk_config.h.

    Note that I copied your project into a clean SDK. Can you try the same? Are you able to compile without any changes outside the project folder? If so, where does e.g. nrf_uarte_error_mask_t point to? Where is this defined?

  • I use IAR Embedded Workbench - Arm 8.30.1 and sdk version 15.0.0

    The only thing I need to change if I use a clean SDK is to change "#define BUTTONS_NUMBER 0" to "#define BUTTONS_NUMBER 1" in file 2790_003A.h

    I don't use uart and uarte in my project so I don't have them enabled in my sdk_config.h

  • Edvin said:
    nrf_uarte_error_mask_t point to? Where is this defined?

     I am struggling with this one. Where is this defined? What file?

    in nrf_drv_uart.h, is NRF_DRV_UART_WITH_UARTE or NRF_DRV_UART_WITH_UART defined? Because in my project, with the sdk_config.h that you use, none of them are.

    In your sdk_config.h:

    UARTE_PRESENT 1
    NRFX_UARTE_ENABLED 0
    UART_PRESENT is defined
    NRFX_UART_ENABLED 0

    This makes neither of the checks:

    #if defined(UARTE_PRESENT) && NRFX_CHECK(NRFX_UARTE_ENABLED)
        #define NRF_DRV_UART_WITH_UARTE
    #endif
    #if defined(UART_PRESENT) && NRFX_CHECK(NRFX_UART_ENABLED)
        #define NRF_DRV_UART_WITH_UART
    #endif

    return true, so NRF_DRV_UART_WITH_UART nor NRF_DRV_UART_WITH_UARTE is defined.

    Best regards,

    Edvin

  • I am confused, I don't use uart and uarte in my project so I don't have them enabled in my sdk_config.h. Could you take out all the uart and uarte related file from the project and try again (also comment out the include "nrf_uart.h" and "nrf_uarte.h" in main.c)?

    Thank you,

    Vu

Related