Author Topic: Nordic nRF52832 DFU problem  (Read 2685 times)

0 Members and 1 Guest are viewing this topic.

Offline hamdi.tnTopic starter

  • Frequent Contributor
  • **
  • Posts: 623
  • Country: tn
Nordic nRF52832 DFU problem
« on: June 03, 2017, 09:18:48 pm »
Hi everyone,

so i spent the day trying to flash an nRF52832 in DFU mode with nrfutil.exe.
no matter what i do or file i choose it always end with

IOError: [Errno 2] No such file or directory: 'c:\\users\\***\\appdata\\local\\temp\\nrf_dfu_pkg_kplm5y\\unpacked_zip\\manifest.json'

am running command promp as administrator. tried different OS windows 7 10 and linux.
changed Temp directory in windows config.

and am out of idea.
Help.

 :horse:
 

Offline hamdi.tnTopic starter

  • Frequent Contributor
  • **
  • Posts: 623
  • Country: tn
Re: Nordic nRF52832 DFU problem
« Reply #1 on: June 04, 2017, 12:10:09 am »
Yap same error, IOError Errno2
I posted there but those forums are not as reactive as EEV  :-+
anyway i walked my way around this issue by using the J-Link programmer instead of DFU.
 

Offline andyturk

  • Frequent Contributor
  • **
  • Posts: 895
  • Country: us
Re: Nordic nRF52832 DFU problem
« Reply #2 on: June 05, 2017, 01:28:43 am »
In case it helps, here's some Makefile rule to call nrfutil. We're using the python
version and this is for nRF51, so the newer stuff may be different. This runs on
a mac, so will probably be the same for linux.

Code: [Select]
OTA_ASSET_APP        := $(RELEASE)/over-the-air/$(APP_TAG).zip
OTA_ASSET_BOOT       := $(RELEASE)/over-the-air/$(BOOTLOADER_TAG)-$(VERSION_SOFTDEVICE).zip

# The nrfutil program accepts the softdevice image as either a .hex or a .bin file
# However, the .bin version will cause nrfutil to also include the MBR in the
# over-the-air image, which is incorrect. Passing the original .hex file of the
# softdevice image (directly from the SDK directory) avoids this problem.

over-the-air : manufacturing
@mkdir -p $(RELEASE)/over-the-air
@nrfutil dfu genpkg                                     \
       --application $(RELEASE)/manufacturing/abrams.bin    \
       --application-version 0xffffffff                     \
       --dev-revision 0x3031                                \
       --dev-type 0x5354                                    \
       --sd-req 0x80                                        \
   $(OTA_ASSET_APP)
@nrfutil dfu genpkg                                     \
       --bootloader $(RELEASE)/manufacturing/r2d2.bin       \
       --softdevice $(NRF5_SD_HEX)                          \
       --dev-revision 0x3031                                \
       --dev-type 0x5354                                    \
       --sd-req 0x64,0x80                                   \
   $(OTA_ASSET_BOOT)

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf