2023-05-11 03:28 AM
2023-05-11 03:38 AM - edited 2023-11-20 05:43 AM
2023-05-11 04:23 AM - edited 2023-11-20 05:43 AM
2023-05-12 02:19 AM
@Community member I'm sorry, I can't fully understand what you mean
2023-05-12 02:26 AM
To use GPIOG bank pins there must be a VDDIO2 supply and you must explicitly enable it in your code somewhere.
2023-05-12 03:23 AM
@Community member So how do I do it?
2023-05-12 03:39 AM
PWR->CR2 |= PWR_CR2_IOSV;
Or, as an experiment, look at the PWR_CR2 register in the debugger and click there to set the IOSV bit.
JW
https://community.st.com/s/question/0D53W00001rApk7SAC/about-gpio
2023-05-12 03:56 AM
/* VddIO2 must be enabled to access GPIO port G[2:15] */
__HAL_RCC_PWR_CLK_ENABLE();
HAL_PWREx_EnableVddIO2();
__HAL_RCC_GPIOG_CLK_ENABLE();
Where you initialize the pins, or in SystemClock_Config()
2023-05-13 12:41 PM
@Community member This is really bad, especially for a newbie like me. I've read a lot of manuals and know that iOSV is to be set to 1, but I can't make changes to the code. For other development boards, I just need to open the external crystal on the CUBEMX, configure its frequency in the clock tree, set the lamp level low, and finally import it into Keil to run. But not for STM32L4P5G-DK.Please help me. I want to know if there is something wrong with the initialization configuration in CUBEMX or if I have to add to make changes after the initialization
2023-05-14 12:01 AM - edited 2023-11-20 05:43 AM
on STM32L4P5G-DK is no 24M crystal , clock is 8M from onboard stlinkV3 :
so set "bypass" clock and 8 MHz . then try ...