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

Byte Alignment to support STM32U5 #1955

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

macharlachanakya
Copy link

@macharlachanakya macharlachanakya commented May 7, 2024

  • Modified #if BOOT_MAX_ALIGN == 8 to #if (BOOT_MAX_ALIGN == 8) || (BOOT_MAX_ALIGN == 16) for boot_img_magic in boot/bootutil/src/bootutil_public.c, because STM32U5 supports 16 Byte alignment.

  • Provided #if !defined( BOOT_MAX_ALIGN ) preprocessor directive for #define BOOT_MAX_ALIGN 8 in boot/bootutil/include/bootutil/bootutil_public.h, because STM32U5 supports 16 Byte alignment which can be provided with preprocessor options as #define BOOT_MAX_ALIGN 16.

Signed-off-by: Chanakya Macharla macharla.chanakya@gmail.com

Provide user to define the BOOT_MAX_ALIGN based on system requirement





Signed-off-by: Chanakya Macharla <macharla.chanakya@gmail.com>
Added BOOT_MAX_ALIGN == 16 condition for boot_img_magic in boot/bootutil/src/bootutil_public.c, because STM32U5 supports 16 Byte alignment.





Signed-off-by: Chanakya Macharla <macharla.chanakya@gmail.com>
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

Successfully merging this pull request may close these issues.

None yet

1 participant