So, we use the CH32X035G8U6 and we need to have control over PC18 PC19 which is also the SWD port.
The following test works perfectly fine on PB10 PB11, and fails on PC18 PC19
As if the SWJ port was not disabled, but it is disabled.
Is it a bug in the SDK?
Hi,GPIO mode ‘GPIO_Mode_AF_PP’ is not appropriate to use here.You want to use PC18, PC19 pins as normal IO ports, so you should set the mode to push-pull outputs, not multiplexed push-pull outputs.
So, we use the CH32X035G8U6 and we need to have control over PC18 PC19 which is also the SWD port. The following test works perfectly fine on PB10 PB11, and fails on PC18 PC19 As if the SWJ port was not disabled, but it is disabled. Is it a bug in the SDK?