STMicroelectronics / STM32CubeF7

STM32Cube MCU Full Package for the STM32F7 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
331 stars 193 forks source link

Nucleo-F756zg: Debug support for StopMode does not work #91

Closed KamilDuljas closed 1 year ago

KamilDuljas commented 1 year ago

Hi, I try to run PWR_CurrentConsumption example on Nucleo-756zg. All works fine without debug, but i tried use each mode in debug mode. Sleep mode and StandBy mode work fine with debug but StopMode not.

When we try to enter to stop mode and will be executed _WFI() then immidately exit from the mode during debug session. I tried perform this through: STM32CubeIde 1.12 and STM32CubeProgrammer

The only one modification against to original exmaple is keep PA13 PA14 PA15 as there are pins connected to stlink. https://github.com/STMicroelectronics/STM32CubeF7/blob/6a3b9bb8d09839f365ba83a6cf5823ae5f5226db/Projects/STM32F746ZG-Nucleo/Examples/PWR/PWR_CurrentConsumption/Src/stm32f7xx_lp_modes.c#L91


GPIO_InitStruct.Pin = GPIO_PIN_All & ~(GPIO_PIN_13 | GPIO_PIN_14 | GPIO_PIN_15);

All usecases executed using multimeter.
RJMSTM commented 1 year ago

Hello @KamilDuljas ,

Thank you for this report. We will get back to you as soon as we analyze it further. This may take some time. Thank you for your comprehension.

With regards, Rania

HBOSTM commented 1 year ago

Hello @KamilDuljas,

Firstly, thank you for this contribution. This example does not work in debug mode as indicated in the readme file. https://github.com/STMicroelectronics/STM32CubeF7/blob/6a3b9bb8d09839f365ba83a6cf5823ae5f5226db/Projects/STM32F746ZG-Nucleo/Examples/PWR/PWR_CurrentConsumption/readme.txt#L47 So, please allow me to close this issue and thank you again for your contribution.

Best Regards,

KamilDuljas commented 1 year ago

Thanks for information.