HiI am implementing a buttonless_DFU function right now.I decided to do Buttonless on my project's PCB Board because it is no longer an environment where I can add switches.HoweverI read the project source at C: \ nRF5_SDK_12.3.0_d7731ad \ examples \ ble_peripheral \ experimental_ble_app_buttonless_dfu \ pca10040 \ s132 \ arm5_no_packs, but the scenario is too hard to understand.If it's not difficult, can you explain the scenario?Keep it simpleIf you have difficulty, you should make the chip state in what environment, and what kind of logic is enough to solve it easily.I tried to merge example sourece with source in my existing project, but it takes a lot of trouble instead of one or two.
Can't I add fds function to bootloader source?When bootloader mode is first executed using fds, specific data stored in fds is detected and if the condition is true, we tried to implement the function to proceed with DFU, but it could not be implemented due to an error.Do you have an Area restriction for Bootloader Area?
the buttonless DFU support in SDK v12.x.x is experimental, hence I strongly recommend that you move to SDK v14.2.0 as we have fixed several bugs in the DFU implementation.
I'm so grateful and pleased with your advice.But I'm sorry, but my Project Source is already trying to add an update function with the SDK almost complete with 12.3.I think my project will be delayed a lot if I change SDK now.
The scenario of the function that I want to do right now is that I can run DFU by booting in bootloader mode if it meets certain conditions while operating in normal application mode.
Considering this scenario, we tried to add specific data to a specific address in the flash memory (FDS) inside the MCU and add it to Bootloader Source as a condition that the data is executed in Bootloader mode.However, when adding fds to the bootlaoder source, the implementation failed due to an unknown error.
I apologize for the late reply, I have been on vacation.
How much data are you trying to write to a specific location and where in flash is this specific location. FDS might not be the best choice if its something you do once. If this is a one-time operation, then I would recommend looking into using fstorage or the NVMC directly.
Hi bjorn-spockelli!Did you have a good vacation?Thank you for remembering me and replying even late.
SDK 12.3 shows that the Buttonless DFU has added the fstorage header file. Is the source implemented using fstorage command correct?