suikan4github / murasaki

STM32 HAL class library
MIT License
17 stars 3 forks source link

ESTI is not disabled at first. #122

Closed suikan4github closed 4 years ago

suikan4github commented 4 years ago

Describe the bug The ESTI is interruptible from the beginning. This is a problem. For example, if external equipment triggers ESTI before the Murasaki is ready, it will hurt the system. Thus, the ESTI should be disabled at first.

Expected behavior The ESTI configuration by the CubeIDE should be with NVIC interrupt is disabled. And it should be enabled when the Exti::Wait() is called.

suikan4github commented 4 years ago

No. It is impossible to implement like expected behavior. If you disable the NVIC by the Device Configuration Tool, the CubeIDE doesn't generate the EXTIxx_IRQHandler(). Thus the EXTI causes unexpected interrupt error.

Probably, there is no safety way.