I have a small problem with SWD lines ...
These pins have default detection of low and high states enabled.
When I connect the sensor to these lines, the processor will not turn on. It behaves like it would go into debug mode.
How to disable debug mode for SWD ports and switch them to normal GPIO mode. I tried to use the function
"void pin_set_peripheral_function (uint32_t pinmux)" from the AFS library but does not work.
I searched quite a lot on Google but I did not find the answer.
Has anyone solved this problem?