2022-01-06 09:26 AM
Hi,
I would like to have SPI2_CLK signal available on the CN2 connector (STMod+ interface) on the STWINKT1B eval board. Based on the schematic, looks like one can activate SPI2_CLK signal on STMOD4 via the 3-4SEL pin on the STG3692 digital switch. But I don't know how to do that and what to set up on the STM32CubeIDE side, can someone please help?
Thanks.
Solved! Go to Solution.
2022-01-06 10:17 AM
All you need to do is to set 3-4SEL of the STG3692 to 1 (high) to close the switch 3S1 to STMOD4.
3-4SEL is connected to pin B8 (PD1) of the STM32L4R9ZIJ6.
Just insert into your program something like
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_1, GPIO_PIN_SET);
or similar, e.g. using your predefined pin name, to set the pin PD1 to 1.
Good luck!
Regards
/Peter
2022-01-06 10:17 AM
All you need to do is to set 3-4SEL of the STG3692 to 1 (high) to close the switch 3S1 to STMOD4.
3-4SEL is connected to pin B8 (PD1) of the STM32L4R9ZIJ6.
Just insert into your program something like
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_1, GPIO_PIN_SET);
or similar, e.g. using your predefined pin name, to set the pin PD1 to 1.
Good luck!
Regards
/Peter
2022-01-06 12:17 PM
It turns out I have to set pin PF14 instead of PD1 because that's what 3-4SEL is actually connected to. It works now, thanks Peter!