Skip to content

Commit

Permalink
Fix regression for stm32u5 in nonsecure-dualbank config
Browse files Browse the repository at this point in the history
  • Loading branch information
danielinux committed Sep 12, 2023
1 parent 18fd398 commit 4b57004
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hal/stm32l5.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ int RAMFUNCTION hal_flash_write(uint32_t address, const uint8_t *data, int len)
*cr &= ~FLASH_CR_PG;
i+=8;
}

#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
hal_tz_release_nonsecure_area();
#endif
return 0;
}

Expand Down

0 comments on commit 4b57004

Please sign in to comment.