Closed iabdalkader closed 1 year ago
I think the best thing to do is simply update the H7 HAL.
I think the best thing to do is simply update the H7 HAL.
That's now done, although there's no branch yet with this new version.
That should fix it, thanks! Newer HALs also add/improve support for dual core H747, I will be sending some patches later to Portenta's board_init.c
to add support for proper standby mode with CM7/CM4.
https://github.com/micropython/stm32lib/blob/0cbbf16b4268904afdcbdf06e73c0c6e64a8f9ae/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h#L4595
Just a heads up, all of the
RCC_<AHB/APB>_FORCE_RESET
macros in this HAL version (1.6?) write reserved bits that shouldn't be written (same for all AHBx APBx reset macros), this was fixed in more recent HALs, for example updated AHB3 reset macro now checks for device revision and write specific bits:Setting all bits, causes at least one issue that I'm aware of when calling
HAL_DeInit
with AHB3 in particular.