ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Суббота
27 апреля
659068 Топик полностью
Antimouse (09.03.2016 21:59, просмотров: 172) ответил rod-i-on на [РЕШЕНО] Программирую SLEEP STM32L151. После выхода из сна МК перезагружается. Использую HAL. При HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY_WFI) засыпает, выход из сна по прерыванию SYSTICK. Подскажите, пожалуйста, что могу
Читайте Reference manual пункт 29.16.1 Debug support for low-power modes. The core does not allow FCLK or HCLK to be turned off during a debug session. As these are required for the debugger connection, during a debug, they must remain active. The MCU integrates special means to allow the user to debug software in low-power modes. Вот такую инструкцию не забыли: DBGMCU->CR |= DBGMCU_Periph; (смотрите в stm32l1xx_dbgmcu.c)