Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DFU OTA always fails #306

Open
hyx0329 opened this issue May 26, 2023 · 1 comment
Open

DFU OTA always fails #306

hyx0329 opened this issue May 26, 2023 · 1 comment

Comments

@hyx0329
Copy link
Contributor

hyx0329 commented May 26, 2023

What happened

I observed that the DFU OTA always fails with latest code on my M60 keyboard(nrf52840). When using a bootloader compiled from current master branch (277a0c8), the OTA process will stuck at 1% and freeze, or completely fail. After that, the bootloader restart itself to UF2 mode.

From #35 I found a solution not incorporated:

The resolution was to modify src/sdk_config.h and increase the value of HCI_RX_BUF_QUEUE_SIZE to 16 resolved all issues.

Originally posted by chrisingis in #35 (comment)

Changing HCI_RX_BUF_QUEUE_SIZE to 16 fixed my problem.

How to reproduce

  • install Nordic DFU App version 2.3.0 build 2212700, apk: nRF Device Firmware Update_2.3.0.zip (dl from apkpure, sha256 dda40ac05f468a0c89e62371199a4c270e0048adb826eacc0179b2b522216690)
  • put the device(nrf52840) to OTA mode
  • open the app, select an update zip for bootloader(a same version is ok)
  • select the ble device AdaDFU
  • click start
  • reproduced

My setup:

  • Phone: Pixel 4XL
  • OS: Lineage 20-20230507 (android 13)
  • Nordic DFU App version 2.3.0 build 2212700
  • bootloader (277a0c8)

Known affected devices:

  • M60 keyboard(nrf52840)
  • waiting feedbacks

Possible related issues and prs:

@jeffc
Copy link

jeffc commented Apr 7, 2024

One workaround for this is to go into the DFU app settings and turn on "packets receipt notification," then set the number of packets to something small. The Adafruit app (which does seem to work pretty reliably for DFU) hardcodes 4 as a hack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants