This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Creating an image file to DFU on SDK8.0

hi, to do DFU on SDK 8.0, if use the MCP on PC, it wants to select a zip file, if select a hex file, it will fail. I have created the bin image,but I can’t create the zip file by nrf.exe. can you give some advise about howto create the zip file for MCP to do DFU more detail, and the MCP on Android(V2.0.3) can’t do DFU either select hex file or zip file, is there any update version for android? Thanks Kevin

  • How to create a zip-file that contains the bin-file and the init packet is described here: developer.nordicsemi.com/.../a00092.html

    A typical command would look something like this: (for SD v8.0.0)

    nrf.exe dfu genpkg app.zip --application nrf51822_xxac.bin --application-version 0xffff --dev-revision 0xffff --dev-type 0xffff --sd-req 0x0064
    

    If you tried this, but failed, please include the commands you wrote and any error messages you got, in your question.

    The newest version of the MCP for Android is 2.1.1. You can also try to use the nRF Toolbox app for Android, it includes a separate DFU application.

    EDIT

    The error message you posted in the comment is the same as in this thread: devzone.nordicsemi.com/.../

    The issue is that you don't have permission to access the .zip file, probably because you don't have write permissions to the folder. Try opening the terminal as an administrator.

  • C:\Program Files (x86)\Nordic Semiconductor\Master Control Panel\3.8.0.7\nrf 的 目录

    2015/03/25 15:29 . 2015/03/25 15:29 .. 2015/03/25 15:20 19,672 hrs.bin 2015/03/02 15:36 8,666,112 nrf.exe 2015/03/12 09:35 nrfsdk 2 个文件 8,685,784 字节 3 个目录 192,709,287,936 可用字节

    C:\Program Files (x86)\Nordic Semiconductor\Master Control Panel\3.8.0.7\nrf>nrf .exe dfu genpkg app.zip --application hrs.bin --application-version 0xffff --dev -revision 0xffff --dev-type 0xffff --sd-req 0x0064 Traceback (most recent call last): File "nrf.py", line 134, in File "nrf.py", line 129, in main File "nrfsdk\calliope\cli.pyc", line 498, in Execute File "nrfsdk\calliope\backend.pyc", line 1016, in Run File "C:\Program Files (x86)\Nordic Semiconductor\Master Control Panel\3.8.0.7 \nrf\nrfsdk\nordic\dfu\cli\genpkg.py", line 96, in Run package.generate_package(zipfile_path) File "nordicsemi\dfu\package.pyc", line 200, in generate_package File "nordicsemi\dfu\package.pyc", line 214, in create_zip_package File "zipfile.pyc", line 752, in init IOError: [Errno 13] Permission denied: 'app.zip'

  • I have tried this command,but failed. please find the error massage on my comment, thanks. and my OS is win8.1.

  • I have got the same error message. i move out the nrf.exe to D:/test. And put the file(nrf51422_xxac.bin) in D:/test . Then in command line type nrf.exe dfu genpkg app.zip --application nrf51422_xxac.bin --application-version 0xffff --dev-revision 0xffff --dev-type 0xffff --sd-req 0x0064

    it's successfully to creat app.zip in D:/test

Related