ant dfu with nrf util and ant dfu secure example on windows 10 x64

Hello!

My steps:

1 - Full working  dfu over ble on nrf52840-dk  + nrfutil + nrf52840 Dongle

2 - Change transport BLE -> ANT + nrfutil + ANT USB Stick 2, ANT USB(two different sticks)

I think there is some problem with the driver libraries, but what?

Embedded device enter to dfu mode and send messages over ANT. Observ ANT found device type 10, trans type 49, device number 11548

Log from nrf52840-dk

00> <debug> app: Enter nrf_bootloader_fw_activate
00>
00> <info> app: No firmware to activate.
00>
00> <debug> nrf_dfu_validation: CRC check of app failed. Return 0
00>
00> <warning> app: Boot validation failed. App is invalid.
00>
00> <debug> app: DFU mode because app is not valid.
00>
00> <info> nrf_bootloader_wdt: WDT is not enabled
00>
00> <debug> app: in weak nrf_dfu_init_user
00>
00> <debug> app: timer_stop (0x200059BC)
00>
00> <debug> app: timer_activate (0x200059BC)
00>
00> <info> app: Entering DFU mode.
00>
00> <debug> app: Initializing transports (found: 1)
00>
00> <debug> nrf_dfu_ant: Initializing ANT DFU transport
00>
00> <debug> nrf_dfu_ant: Setting up vector table: 0x000F1000
00>
00> <debug> nrf_dfu_ant: Enabling softdevice
00>
00> <debug> nrf_dfu_ant: ANT transport intialized
00>
00> <debug> nrf_dfu_flash: Initializing nrf_fstorage_sd backend.
00>
00> <debug> app: Enter main loop 

Log from pc:

nrfutil -v -v -v -v dfu ant -pkg update.zip -d
2021-11-16 15:58:03,570 Sending Application image.
2021-11-16 15:58:06,712 ANT: --> [9, 1]
Traceback (most recent call last):
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\Scripts\nrfutil-script.py", line 33, in <module>
sys.exit(load_entry_point('nrfutil==6.1.3', 'console_scripts', 'nrfutil')())
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\nordicsemi\__main__.py", line 1293, in ant
dfu.dfu_send_images()
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\nordicsemi\dfu\dfu.py", line 127, in dfu_send_images
self._dfu_send_image(self.manifest.application)
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\nordicsemi\dfu\dfu.py", line 88, in _dfu_send_image
self.dfu_transport.open()
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\nordicsemi\dfu\dfu_transport_ant.py", line 364, in open
if not self.__ping():
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\nordicsemi\dfu\dfu_transport_ant.py", line 476, in __ping
self.dfu_adapter.send_message([DfuTransportAnt.OP_CODE['Ping'], self.ping_id])
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\nordicsemi\dfu\dfu_transport_ant.py", line 198, in send_message
self.__wait_for_condition(lambda: self.tx_result is not None)
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\nordicsemi\dfu\dfu_transport_ant.py", line 218, in __wait_for_condition
self.__process_mesg(timeout -
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\nordicsemi\dfu\dfu_transport_ant.py", line 222, in __process_mesg
mesg = self.__get_ant_mesg(timeout)
File "C:\Users\Sam\AppData\Local\Programs\Python\Python39-32\lib\site-packages\nordicsemi\dfu\dfu_transport_ant.py", line 294, in __get_ant_mesg
raise NordicSemiException('No message received from device')
pc_ble_driver_py.exceptions.NordicSemiException: No message received from device

Related