我的项目使用 nrf52840 和 Freertos。该项目具有蓝牙广播和扫描功能。Bootloader 不使用 Freertos。当我在 nrf connect 中使用软件升级 DFU 时,DFU 功能没有响应。我使用 Freertos 创建了一个刷新任务,该任务一直在持续运行。未执行 DFU 升级。
我的项目使用 nrf52840 和 Freertos。该项目具有蓝牙广播和扫描功能。Bootloader 不使用 Freertos。当我在 nrf connect 中使用软件升级 DFU 时,DFU 功能没有响应。我使用 Freertos 创建了一个刷新任务,该任务一直在持续运行。未执行 DFU 升级。
My project uses nrf52840 and Freertos. This project has Bluetooth broadcasting and scanning functions. Bootloader does not use Freertos. When I used software to upgrade DFU in nrf connect, the DFU function did not respond. I created a refresh task using Freertos and it has been running continuously. DFU upgrade not performed
Hi,
Which SDK version are you using and how do intend to enter DFU mode? Is it via buttonless DFU (as demonstrated by the buttonless DFU sample), or some other method? What have you found by debugging and observing logs?
By comparison, I have defined it in another file but did not upload it, # define DFU_SUPPORT 1
Is it defined in a header file that is inlcuded in your main.c? If not, it has no effect.
Yes, it is included in my main. c, and this definition works. Due to confidentiality reasons, I have deleted all irrelevant and brief information. Sorry.
I see. I cannot say more at this point then, you need to share details about how you test and how you debug and which results you get.
I forgot to take a screenshot. I used Wireshark to capture and found that when using the DFU service to upload files, there was a display indicating retrieval failure. And then it ended, the app didn't show the upgrade rate chart, it was always empty packets sent by the master and slave. You should be able to quickly reproduce the problem I mentioned using the files I provided.
I forgot to take a screenshot. I used Wireshark to capture and found that when using the DFU service to upload files, there was a display indicating retrieval failure. And then it ended, the app didn't show the upgrade rate chart, it was always empty packets sent by the master and slave. You should be able to quickly reproduce the problem I mentioned using the files I provided.