Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DFU questions #190

Open
mykhaylokohut opened this issue Jun 27, 2017 · 0 comments
Open

DFU questions #190

mykhaylokohut opened this issue Jun 27, 2017 · 0 comments
Labels

Comments

@mykhaylokohut
Copy link

Hi,
During DFU signed image transfer I see following:

  1. Segment count performed in two places:
  • in function segment_count_from_start_packet()
  • in function dfu_transfer_start()
    For some images these values are different.
  1. In function dfu_transfer_data() there is verification like below:
    if ((p_addr & (SEGMENT_LENGTH - 1)) != 0 ||
            p_addr          < (uint32_t) m_transfer.p_start_addr ||
p_addr + length > (uint32_t) m_transfer.p_start_addr + m_transfer.size) 

For image length which is not aligned to segment size last packet will be dropped.
Thanks,
Mykhaylo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants