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

[bootloader] SysTick needs to be disabled in Reset_System() on Gen 2 platforms #1741

Merged
merged 1 commit into from Apr 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions platform/MCU/STM32F1xx/SPARK_Firmware_Driver/inc/hw_config.h
Expand Up @@ -127,6 +127,7 @@ typedef enum

/* Exported functions ------------------------------------------------------- */
void Set_System(void);
void Reset_System(void);
void NVIC_Configuration(void);
void SysTick_Configuration(void);

Expand Down Expand Up @@ -210,9 +211,6 @@ void Finish_Update(void);
uint16_t Bootloader_Get_Version(void);
void Bootloader_Update_Version(uint16_t bootloaderVersion);

inline void Reset_System(void) {
}

/* External variables --------------------------------------------------------*/
extern uint8_t USE_SYSTEM_FLAGS;

Expand Down
5 changes: 5 additions & 0 deletions platform/MCU/STM32F1xx/SPARK_Firmware_Driver/src/hw_config.c
Expand Up @@ -163,6 +163,11 @@ void Set_System(void)
FLASH_ClearFlags();
}

void Reset_System(void)
{
SysTick_Disable();
}

/*******************************************************************************
* Function Name : NVIC_Configuration
* Description : Configures Vector Table base location.
Expand Down
Expand Up @@ -211,6 +211,7 @@ void Set_System(void)

void Reset_System(void)
{
SysTick_Disable();
}

/*******************************************************************************
Expand Down