Why my LED PG13 does not light up when I use the external crystal, but it does when I use the internal crystal, what went wrong? I initialized in cubeMX, debugged and burned in keil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-11 3:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-11 3:38 AM - edited ‎2023-11-20 5:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-11 4:23 AM - edited ‎2023-11-20 5:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-12 2:19 AM
@Community member​ I'm sorry, I can't fully understand what you mean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-12 2:26 AM
To use GPIOG bank pins there must be a VDDIO2 supply and you must explicitly enable it in your code somewhere. ​
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-12 3:23 AM
@Community member​ So how do I do it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-12 3: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-12 3: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()
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-14 12:01 AM - edited ‎2023-11-20 5:43 AM
on STM32L4P5G-DK is no 24M crystal , clock is 8M from onboard stlinkV3 :
so set "bypass" clock and 8 MHz . then try ...
