GPIO Toggle Question
The problem here is understanding your question.
Most pins on the STM32 can be assigned to different peripherals, one of which is a ‘standard’ GPIO.
SDA and SCL are a peripheral assignment, not a GPIO. So you can’t toggle them, (unless that peripherals has an option to toggle them).
And since this is a Data and Clock line, why would you want to toggle them.
-Matt