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

buttonless_dfu don't work with GNU

Hi,


I use SDK 12.3.0 with PCA10040 board, and try running experimental_ble_app_buttonless_dfu.
It works fine when I use Keil to compile, but doesn't when use GNU.
I open log, it show this info below:
--------------------------------------------------------------

SDH:DEBUG:sd_ble_enable: RAM start at 0x20002128
:INFO:running nrf_dfu_settings_init
:INFO:!!!!!!!!!!!!!!! Resetting bootloader settings !!!!!!!!!!!
:INFO:Erasing old settings at: 0x200021b8
:INFO:Erasing: 0x200021b8, num: 1
:INFO:Erase failed: 6
:ERROR:Erasing from flash memory failed.

APP_ERROR:ERROR:Fatal
-----------------------------------------------------------------------

Does any one know how to fix this issue ?

Thanks a lot.

Parents
  • May I ask why you are using sdk 12.3 on a nrf52832 chip? If you use a newer SDK (e.g. SDK 15), you could use Segger Embedded Studio to compile the buttonless dfu example. I would also recommend you to take a look at this blog post for getting started with buttonless DFU. This blog post could also be useful.

    You could also import the sdk 12.3 project from Keil into SES, like shown here.

    Which version of the C compiler are you currently using? You can run this command: 

    arm-none-eabi-gcc --version

  • Thank you for your response.

    I solved this issue, and someone also occurred and solved in this blog called dfu_init-crash.

    We still use nrf51822 in our product, and forward to new generation BLE chip i.e. nrf52832 in future.

    My purpose is that code can easy run in nrf51822  and nrf52832 without too much modification.

    As I know, sdk 12.3 has nrf51422 (PCA10028) and nrf52832 (PCA10040) support, that I can reference and  start quickly.

    If you has any suggestion of my purpose, please let me know.

    below is my armgcc version:

    arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20141119 (releas
    e) [ARM/embedded-4_9-branch revision 218278]
    Copyright (C) 2014 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  • Great to here that you figured it out! Makes sense to use sdk 12.3 if you use both 51 & 52 chips in your products.

Reply Children
No Data
Related