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

AppLoader exception when no actual application is present #9

Open
LeZerb opened this issue Jun 17, 2024 · 0 comments
Open

AppLoader exception when no actual application is present #9

LeZerb opened this issue Jun 17, 2024 · 0 comments

Comments

@LeZerb
Copy link

LeZerb commented Jun 17, 2024

When reading OTA service Application Version with no application currently flashed AppLoader gets stuck.

This is caused by trying to read from an invalid address in bootload_checkApplicationPropertiesMagic and can be resolved by checking that the appProperties pointer is inside the actual flash area.

#if (FLASH_BASE > 0x0UL)
  if ((uint32_t)appProperties < FLASH_BASE) {
    return false;
  }
#endif

+  if ((uint32_t)appProperties > (FLASH_BASE + FLASH_SIZE - 16)) {
+    return false;
+  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant