2023-06-20 01:51 AM
Hello everyone,
I am using Stm32 controller for motor control and heating control. Universal motor is connected to TRIAC and TRIAC connected to MOC2023. LED of opto coupler is control by GPIO. Now problem is after erasing code from Flash memory , GPIO is high even though i have pull down resistor. At that moment , motor is still running without code. What could be Approaches that doesn't depended on Microcontroller ?
Thank you
2023-06-20 01:59 AM
You did not give any information that could allow anyone to help you. No MCU type, no pin identification
Check the pin's default function, Maybe it's a JTAG pin. Maybe it's an UCPD DB pin.
2023-06-20 02:06 AM
MCU is STM32G0B1RCT7 and pin is PB7
2023-06-20 05:13 AM
With Flash erased, the MCU enters boot mode automatically and maybe it sets the pin function for boot operation. Check the bootloader appnote for detailed info. PB7 is used as I2C pin in boot mode.