This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

UART DFU Sequence number, ACK, image len

What I have to do if I met this ? I round length to fit (len+4-(len % 4)). Is it right ?

if (!(IS_WORD_SIZED(m_start_packet.sd_image_size) &&
          IS_WORD_SIZED(m_start_packet.bl_image_size) &&
          IS_WORD_SIZED(m_start_packet.app_image_size)))
    {
        // Image_sizes are not a multiple of 4 (word size).
        return NRF_ERROR_NOT_SUPPORTED;
    }

Has every data packet own sequence number and ack? I think that yes, but I have more than 8 packets.Has to be sequence number unique for each packet or sequence number is repeating ? What is starting sequence number for first data packet ? Can be SEQ = 0 if packet is reliable ?

Is there some difference between application loading by hci or ble ?

Parents
  • No, when I debugging, bootloader works and application will start.Settings for debug mode is:ROM Start = 0x3A000 and RAM Start = 0x5C00 and opt = 0. Issue is occured after change settings to normal state :ROM Start = 0x3C000 and ROM Size 0x3C00 and Opt = 3. RAM settings is same, IRAM1 Start = 0x0002C00,IRAM1 Size = 0x5380, IRAM2 Start = 0x20007F80, IRAM2 Size = 0x80

Reply
  • No, when I debugging, bootloader works and application will start.Settings for debug mode is:ROM Start = 0x3A000 and RAM Start = 0x5C00 and opt = 0. Issue is occured after change settings to normal state :ROM Start = 0x3C000 and ROM Size 0x3C00 and Opt = 3. RAM settings is same, IRAM1 Start = 0x0002C00,IRAM1 Size = 0x5380, IRAM2 Start = 0x20007F80, IRAM2 Size = 0x80

Children
No Data
Related