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

Flashing method for nrf52832

Hi,

As I understand I can able to flash nrf52832 using Segger Jlink or using ST Link Debug Interface. That means we use JTAG or SWD interface for flashing the application on nRF52832.

Can I use USB or UART interface for flashing the application on nRF52832 without using JTAG or SWD Interface?

Thanks in Advance!!

Regards,

Deepa

Parents Reply
  • Hi Deepa, 

    Yes, I understand it. We do not have any tool that will simplify this process like DfuseDemo_tool. We still have a bootloader that can take the firmware through UART, but you need to go through all the procedure of packing your binary into a DFU zip package manually. 

    After you build the package you can just send the firmware to the device using one command like below

    nrfutil dfu serial -pkg package.zip -p COM_PORT for UART transport

Children
  • Hi Susheel,

    nrfutil dfu serial -pkg package.zip -p COM_PORT for UART transport

    Using this command, Can I flash to nRf52832 device without JTAG /SWD Interface?

    Can you please share the procedure of packing binary Image into a DFU zip package manually?

    Thanks & Regards,

    Deepa

  • Deepa Gopinath said:
    nrfutil dfu serial -pkg package.zip -p COM_PORT for UART transport

     Yes, It will do it through the serial, Please check the documentation here for the procedure to make the package.zip.

  • Hi Susheel,

    Thanks for the info!! I will check this and get back to you If I face any issues.

    Is it possible to perform a DFU using UART with the latest Nordic SDK(nRF5_SDK_15.1.0_a8c0c4d ) ?

    Regards,

    Deepa

  • Deepa,

    The latest one is SDK15.2 and yes you can do a DFU using serial(UART)

    Please check this thread for more info.

  • Hi Susheel,

    I want to flash blink example application using dfu method. As stated in the link, I have installed the dependent packages.

    To generate the package - I have executed the below command -

    nrfutil pkg generate --application blinky_pca10056.hex blinky_dfu_package.zip

    But I got the below errors -  

    Missing option "--hw-version"

    Missing option "--sd-req"

    Missing option "--application-version"

    Missing option "--key-file"

    1. Do we need to give all these options for generating dfu package? Is it mandatory?

    2. Before flashing application Image using UART DFU(blink example), do i need to flash bootloader, mbr , other images etc.,

    3. The link shared is not clear enough. Can you please share the step by step to flash the new application using dfu ? 

    4. Do we have example to build non secure bootloader?

    5. While genrating the key, I used the below command which results in below error -

    D:\Work\Projects\Sw_work_packages\Nordic_SDK\test\dfu_test>nrfutil keys generate private.pem
    File found at private.pem. Do you want to overwrite the file? [y/N]
    Traceback (most recent call last):
    File "C:\Users\deepa.gopinath\AppData\Local\Programs\Python\Python37\Scripts\nrfutil-script.py", line 11, in <module>
    load_entry_point('nrfutil==4.0.0', 'console_scripts', 'nrfutil')()
    File "c:\users\deepa.gopinath\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 764, in __call__
    return self.main(*args, **kwargs)
    File "c:\users\deepa.gopinath\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 717, in main
    rv = self.invoke(ctx)
    File "c:\users\deepa.gopinath\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "c:\users\deepa.gopinath\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "c:\users\deepa.gopinath\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File "c:\users\deepa.gopinath\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 555, in invoke
    return callback(*args, **kwargs)
    File "c:\users\deepa.gopinath\appdata\local\programs\python\python37\lib\site-packages\nordicsemi\__main__.py", line 364, in generate
    if not query_func("File found at %s. Do you want to overwrite the file?" % key_file):
    File "c:\users\deepa.gopinath\appdata\local\programs\python\python37\lib\site-packages\nordicsemi\dfu\util.py", line 69, in query_func
    choice = raw_input().lower()
    NameError: name 'raw_input' is not defined

    Can you please help to resolve the issue?

    Thanks in Advance!!

    Regards,

    Deepa

Related