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

Unable to upload program on board after upgrading to SDK15.3

Hi,

We have a working solution on the SDK15.0.0 with a custom board based on nrf52832 s132. I'm using the nrf52dk PCA10040 to program my boards. For this board we use a buttonless version of the bootloader based on the example : examples/dfu/secure_bootloader/pca10040_ble/

Recently we have updated to SDK15.3.0, now the firmware is compiling well on this version. I was able to built the same bootloader version from the example folder. I flash the bootloader into my board, I see the DfuTarg, but when I upload my firmware using the nRF Connect app nothing happens, the board stay in DfuTarg mode.

When I upload the bootloader compiled with the SDK15.0.0 in my board then upload the firmware compiled with the SDK15.3 it's working.

As I have stated here, the flash_placement have changed between the two version, so which one should I use ?

Thanks for your advice

Parents
  • For information, even after changing the flash_placement with the values from the SDK15.0.0, the issue is the same.

    But looking at the main.c for both version, it looks like the main changes are that this section has been removed, could it be the source of the issue ?

        // First of all, set up the battery charger (STNS01)
    
        // Control charger, pin active high.
        nrf_gpio_cfg_output(PW_CEN); // Charger enable pin : P.25
        // A transition from high to low and then back to high restarts the charger when the charge cycle has been stopped
        nrf_gpio_pin_set(PW_CEN);   // High
        nrf_gpio_pin_clear(PW_CEN); // Low
        nrf_gpio_pin_set(PW_CEN);   // High
    
        // Control shutdown, pin active high.
        nrf_gpio_cfg_output(PW_SD); // Shutdown  pin : P.27
        nrf_gpio_pin_clear(PW_SD);  // Clear the pin will make the board to boot.

  • Also remove the logs from the main.c

    Compared the sdk_config files and I have changed mainly NRF_BL_DFU_ENTER_METHOD_BUTTON and set it to 0

    Still no changes

Reply Children
No Data
Related