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

Buttonless DFU with SES

Hi,

I am using nRF52832 with sdk15.3 SES

I need to use DFU.

Buttonless DFU

need to program the controller without the wire connection.

Can you explain how DFU works and any tutorial or steps to follow to work with SES.

and need some examples to work on it.

Parents
  • Hello, Sunil!

    Take a look at this tutorial and its comments. It should cover what you're asking for! :) 


    Best regards
    Carl Richard

  • Hi,

    Thank you,

    I will check the tutorial

  • You can either write export <path_to_executable> in your terminal or follow the instructions for editing environment variables(including PATH) found(for example) here.

    Good luck!

  • OK, Thank you i'll check this.

  • If I use nrfutil.exe

    where I need to install Python2.7 additional?

  • My Query is have i Windows 10. I have download the nrfutil.exe from here.

    While i run the exe file, within a few seconds the exe file closed.

    During this i have not installed any version of Python.

    After that I have installed Python 2.7.12

    but running the CMD and enter python it when to store to install Python 3.7

    I am not understanding.

    Is that DFU secure bootloader need

    Ubuntu / Linux OS support?

  • Hi,

    I used DFU example on Windows 10 with python 2.7 some time before and it worked well.

    Is that DFU secure bootloader need Ubuntu / Linux OS support?

    I don't think it should be an issue and should work well with Windows 10.

    If you don't use python for any other purpose, uninstall python 3 and keep only python 2.7 as it is mentioned in prerequisites to use python 2.7.

    After installing python 2.7 and nrfutil, try running the example and if it doesn't work please add the logs generated so that we may know what the issue is.

    Regards

Reply
  • Hi,

    I used DFU example on Windows 10 with python 2.7 some time before and it worked well.

    Is that DFU secure bootloader need Ubuntu / Linux OS support?

    I don't think it should be an issue and should work well with Windows 10.

    If you don't use python for any other purpose, uninstall python 3 and keep only python 2.7 as it is mentioned in prerequisites to use python 2.7.

    After installing python 2.7 and nrfutil, try running the example and if it doesn't work please add the logs generated so that we may know what the issue is.

    Regards

Children
  • Hi,

    I got Python2.7 in windows 10.

    The thing While installing Python2.7. need to check this

    link of the page is here.

    after this in cmd prompt

    i have run the cmds like

    python

    python -V

    pip

    pip list

    python -m pip install --upgrade pip

    pip install -U setuptools

    pip install nrfutil

    what is this description shows. is it works only upto JAN2020?

    Is this right?

    what is the next step to get into DFU

  • It's right that Python 2.7 will deprecate next January. My guess is that Nordic is already working on updating their software(including nrfutil) before that time arrives Slight smile 

    As for the next step I recommend that you continue following the guide I linked earlier, specifically the instructions in github repo.

    Good luck!

  • Hi,

    I am not able to make

    micro_ecc_lib_nrf52.a

    how to create this..

  • Hi,

    I have created the micro_ecc_lib_nrf52.a

    using minGW

    Can you tell me. the step i followed is ok or not ?

    1. Downloaded and Install GNU Arm Embedded Toolchain latest version : here

    2. changed the GNU_INSTALL_ROOT and GNU_VERSION

       like this

    3. Download and and unzip the micro-ecc folder

    in

    4. Execute msys.bat file from C:\MinGW\msys\1.0

    5. moved to my folder ,in my case

    cd /f/1.nRF52/nRF5_SDK_current/external/micro-ecc/nrf52hf_armgcc/armgcc/ 

    make

    the file has created

    Now I build the secure folder example my case

    F:\1.nRF52\nRF5_SDK_current\examples\dfu\secure_bootloader\pca10040_ble\ses

  • and now its throw me an error

    C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.18/gcc/arm-none-eabi/bin/ld: cannot open linker script file nrf_common.ld: No such file or directory