我的项目使用 nrf52840 和 Freertos。该项目具有蓝牙广播和扫描功能。Bootloader 不使用 Freertos。当我在 nrf connect 中使用软件升级 DFU 时,DFU 功能没有响应。我使用 Freertos 创建了一个刷新任务,该任务一直在持续运行。未执行 DFU 升级。
我的项目使用 nrf52840 和 Freertos。该项目具有蓝牙广播和扫描功能。Bootloader 不使用 Freertos。当我在 nrf connect 中使用软件升级 DFU 时,DFU 功能没有响应。我使用 Freertos 创建了一个刷新任务,该任务一直在持续运行。未执行 DFU 升级。
Hi,
I do not see DFU_SUPPORT in the list of preprocessor defines, and you use that in the code to decide if the code related to buttonless DFU should be included. So if you have not defined it, it is expecrted that it does not work. So please define it, rebuild and test again. If it does not work, please share in detail how you test and what you have found by testing.
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.