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

DFU bootloader through USB not working

Hello,

I am trying the DFU over serial example in the SDKv16.0. I am following up the tutorial here: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.0.0%2Fsdk_app_usb_dfu_bootloader.html and I am working on Windows 7 with a nRF52840 DK.

I have successfully upload my application using the UART bootloader but failed using the USB bootloader. In the device manager, the port is shown as "JLink CDC UART port". Not sure if this is only for UART. When using the USB bootloader, the softdevice S140 is flashed first, then I flashed the USB bootloader through SES, after that the LED1 and LED2 are on but LED3 is off. This means the DFU is not activated but didn't have any clue why. Regardless that I continuous. 

I use the following command to upload my application: 

nrfutil dfu usb-serial -pkg bsp_led_dfu_package.zip -p COM109

Note: the tutorial say "usb_serial" but it's actually "usb-serial".

The following is the output: 


Traceback (most recent call last):
File "nordicsemi\__main__.py", line 1537, in <module>
File "site-packages\click\core.py", line 764, in __call__
File "site-packages\click\core.py", line 717, in main
File "site-packages\click\core.py", line 1137, in invoke
File "site-packages\click\core.py", line 1137, in invoke
File "site-packages\click\core.py", line 956, in invoke
File "site-packages\click\core.py", line 555, in invoke
File "nordicsemi\__main__.py", line 1015, in usb_serial
File "nordicsemi\__main__.py", line 970, in do_serial
File "nordicsemi\dfu\dfu.py", line 127, in dfu_send_images
File "nordicsemi\dfu\dfu.py", line 88, in _dfu_send_image
File "nordicsemi\dfu\dfu_transport_serial.py", line 217, in open
File "nordicsemi\dfu\dfu_transport_serial.py", line 366, in __get_mtu
TypeError: 'NoneType' object is not iterable
[13452] Failed to execute script __main__

The package.zip is verified as correct since when use the UART bootloader (LED3 is on for UART bootloader) with command :

nrfutil dfu serial -pkg bsp_led_dfu_package.zip -p COM109

it works .

Any advice on making the USB bootloader working?

Thanks!

Parents Reply Children
No Data
Related