Skip to content

STM32 HSEM Id list update and rework impacted drivers - #26929

Merged
carlescufi merged 3 commits into
zephyrproject-rtos:masterfrom
ABOSTM:STM32_HSEM_REWORK_USB_ENTROPY_FLASH
Sep 2, 2020
Merged

STM32 HSEM Id list update and rework impacted drivers#26929
carlescufi merged 3 commits into
zephyrproject-rtos:masterfrom
ABOSTM:STM32_HSEM_REWORK_USB_ENTROPY_FLASH

Conversation

@ABOSTM

@ABOSTM ABOSTM commented Jul 17, 2020

Copy link
Copy Markdown
Contributor

STM32 HSEM Id list update and rework impacted drivers.

Due to STM32WB Cube update, HSEM Id list has been updated. It introduces new semaphores for flash operations.
This PR contains 3 commits:

  • soc: arm: st_stm32: update HSEM ID from STM32WB cube update
  • drivers: STM32: Rework CLK48 HSEM protection
  • drivers: flash: stm32wb: rework dualcore flash operation

@github-actions github-actions Bot added the platform: STM32 ST Micro STM32 label Jul 17, 2020
@ABOSTM
ABOSTM force-pushed the STM32_HSEM_REWORK_USB_ENTROPY_FLASH branch from cdb77fd to 966c863 Compare July 17, 2020 12:44
ABOSTM added 2 commits July 17, 2020 15:12
New Hardware semaphore ID have been defined in STM32WB cube

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Due to HSEM implementation zephyrproject-rtos#24862, USB CLK48 lock implementation
zephyrproject-rtos#25850 should be reworked.
And by the way, implement the same in entropy which is using the
same clock.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
@ABOSTM
ABOSTM force-pushed the STM32_HSEM_REWORK_USB_ENTROPY_FLASH branch from 966c863 to 4351a43 Compare July 17, 2020 13:22
Comment thread drivers/flash/flash_stm32wbx.c Outdated
Implement algorithm described in STM32 AN5289
with implementation proposed in STM32 Cube Application:
BLE_RfWithFlash

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
@ABOSTM
ABOSTM force-pushed the STM32_HSEM_REWORK_USB_ENTROPY_FLASH branch from 4351a43 to 4e12dfb Compare August 4, 2020 13:45
@erwango
erwango requested a review from gmarull August 10, 2020 12:13
@ABOSTM

ABOSTM commented Aug 27, 2020

Copy link
Copy Markdown
Contributor Author

@gmarull @ydamigos @superna9999 @loicpoulain
Can you please review?

Comment thread drivers/flash/flash_stm32wbx.c
Comment thread drivers/flash/flash_stm32wbx.c
@ABOSTM
ABOSTM requested review from FRASTM and gmarull September 2, 2020 07:32
@ABOSTM

ABOSTM commented Sep 2, 2020

Copy link
Copy Markdown
Contributor Author

@carlescufi , @nashif , @galak,
Could this PR be merged (for next release) ?

@loicpoulain loicpoulain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@carlescufi
carlescufi merged commit 51d4b4d into zephyrproject-rtos:master Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: STM32 ST Micro STM32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants