This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DFU with SDK 6.1

Hi

I just updated our project to files from new SDK release 6.1. The normal application is working properly with the new SDK, but i got in trouble with the bootloader parts.

I updated the bootloader to the new "bootloader_dfu" files from the SDK. With the new implementation two issues came up:

  1. The devices couln't been updated with the "nRF Loader" IOS app. The app discovers the device in DFU mode, but the update remains endless in state "Uploading" and the progrss bar shows "- %". When the Master Control Panel is used the updated works as expected.

  2. The new update should introduce the buttonless update. As far as i understood this is implemented by adding the DFU service to the normal application. The start command is received in the application context and this switches into bootloader code for the rest of the update. As the normal application normally won't advertise the DFU service (it could, but the space in advertisment and scan response often wont be available) the IOS "nRF Loader" won't see the device. Is there an update planed to this app to address this issue?

Regards Adrian

Parents
  • For 1) I got it to work by changing this

    #define DFUCONTROLLER_DESIRED_NOTIFICATION_STEPS 30  
    

    in the DFUController.m

    The reason to this is the DFU code use 600 bytes buffer. So we can only send 600 bytes per interval. Only 20 bytes can be send at a time so .

    DFUCONTROLLER_DESIRED_NOTIFICATION_STEPS * DFUCONTROLLER_MAX_PACKET_SIZE must be equal to 600 bytes

Reply
  • For 1) I got it to work by changing this

    #define DFUCONTROLLER_DESIRED_NOTIFICATION_STEPS 30  
    

    in the DFUController.m

    The reason to this is the DFU code use 600 bytes buffer. So we can only send 600 bytes per interval. Only 20 bytes can be send at a time so .

    DFUCONTROLLER_DESIRED_NOTIFICATION_STEPS * DFUCONTROLLER_MAX_PACKET_SIZE must be equal to 600 bytes

Children
No Data
Related