Skip to content

[Beta] Jump to system memory boot from user application #710

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

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Do not build for STM32MP1xx
Bootloader management is not applicable for this serie.

Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Sep 18, 2020
commit a37e8226df64ee7515d5cbb7161db04652f70637
5 changes: 4 additions & 1 deletion libraries/SrcWrapper/src/stm32/bootloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/*
* STM32 built-in bootloader in system memory support
*/

#if !defined(STM32MP1xx)
static const uint32_t BOOTLOADER_DELAY_MS = 250;
static bool BootIntoBootloaderAfterReset;
static uint32_t countdown = 0;
Expand Down Expand Up @@ -134,15 +134,18 @@ void cancelBootloaderReset()
{
countdown = 0;
}
#endif /* !STM32MP1xx */

/**
* Bootloader systick handler, should be called every ms
*/
void bootloaderSystickHandler()
{
#ifndef STM32MP1xx
if (countdown && --countdown == 0) {
jumpToBootloaderRequested();
}
#endif /* !STM32MP1xx */
}

/*
Expand Down