Skip to content

Commit

Permalink
Refs #1838. Added STM32L4P5xx support to the flash driver.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@1082 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
  • Loading branch information
feaser committed Sep 1, 2023
1 parent 57b517e commit fda0af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Target/Source/ARMCM4_STM32L4/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,12 +810,12 @@ static blt_int32u FlashGetBank(blt_addr address)
{
blt_int32u bank = FLASH_BANK_1;

/* multiple banks is only supported on certain STM32L4xx derivatives. */
/* multiple banks is only supported on certain STM32L4xx derivatives. */
#if defined (STM32L471xx) || defined (STM32L475xx) || defined (STM32L476xx) || \
defined (STM32L485xx) || defined (STM32L486xx) || defined (STM32L496xx) || \
defined (STM32L4A6xx) || defined (STM32L4R5xx) || defined (STM32L4R7xx) || \
defined (STM32L4R9xx) || defined (STM32L4S5xx) || defined (STM32L4S7xx) || \
defined (STM32L4S9xx)
defined (STM32L4S9xx) || defined (STM32L4P5xx)
/* check flash bank mode selection bit to determine if banks 1 and 2 are swapped */
if (READ_BIT(SYSCFG->MEMRMP, SYSCFG_MEMRMP_FB_MODE) == 0)
{
Expand Down

0 comments on commit fda0af2

Please sign in to comment.