HAL_SYSCFG_EnableMemorySwappingBank() bug?

Share code examples or discuss embedded software, including device drivers, interrupt handlers, middleware and application code.

Moderators: Markus Girdland, Mattias Norlander

Spiderman
Posts: 1
Joined: Fri Jan 11, 2019 1:53 pm

HAL_SYSCFG_EnableMemorySwappingBank() bug?

Postby Spiderman » Fri Jan 11, 2019 2:17 pm

Hi
I just upgraded the generated code through STM32CubeMX. After looking at the differences I detected following mystery:

...\STM32Cube_FW_L4_V1.13.0\Drivers\STM32L4xx_HAL_Driver\Src\Src\stm32l4xx_hal.c line 575ff:

Code: Select all

void HAL_SYSCFG_EnableMemorySwappingBank(void)
{
  *(__IO uint32_t *)FB_MODE_BB = 0x00000000UL;
}

void HAL_SYSCFG_DisableMemorySwappingBank(void)
{
  *(__IO uint32_t *)FB_MODE_BB = 0x00000000UL;
}


Twice the same code. The old assignments (v1.10.0) were (uint32_t)ENABLE, (uint32_t)DISABLE respectively.
Is this a bug or is this function not supported anymore?

Return to “Embedded target code development discussions”

Who is online

Users browsing this forum: No registered users and 1 guest