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

[rtl872x] Allow KM4 SDK Bootloader images to boot #2656

Merged
merged 1 commit into from Jun 6, 2023

Conversation

scott-brust
Copy link
Member

Problem

We want to allow Particle built prebootloader binaries to boot Realtek SDK based KM4 bootloader binaries. This is broken in the current Device OS.

Solution

The RTK SDK KM4 based bootloaders expect a FLASH_InitTypeDef flash_init_para structure to be present in BKUP_REG7 at boot. We had this originally, but since our bootloader does not need this, it was removed.
It doesnt appear that anything internal to DVOS uses BKUP_REG7, so this change should be safe

Steps to Test

  1. Build prebootloader-part1 from this branch, flash to p2
  2. Flash SDK KM4 Bootloader + APP images
  3. Verify the KM4 bootloader + KM4 APP runs

Example App

Ask scott for KM4 SDK Bootloader binary

References

Links to the Community, Docs, Other Issues, etc..


Completeness

  • User is totes amazing for contributing!
  • Contributor has signed CLA (Info here)
  • Problem and Solution clearly stated
  • Run unit/integration/application tests on device
  • Added documentation
  • Added to CHANGELOG.md after merging (add links to docs and issues)

@scott-brust scott-brust marked this pull request as ready for review May 31, 2023 19:23
@scott-brust scott-brust merged commit 56bf56b into develop Jun 6, 2023
12 checks passed
@scott-brust scott-brust deleted the fix/km4_sdk_bootloader branch June 6, 2023 23:18
@scott-brust scott-brust added this to the 5.4.0 milestone Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants