Unable to Configure : STM32G071R8 NRST as Input/Output/Interrupt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-11 7:47 AM
Hi,
I am working on STM32G0 Nucleo Board with STM32 Cube IDE 1.3.0
How to configure STM32G071R8 64-Pin LQFP Package
as Input or Output or Interrupt with STM32 Cube IDE 1.3.0 . ?
Is there any special setting ? Which I am missing ?
--
Karan
Solved! Go to Solution.
- Labels:
-
GPIO-EXTI
-
STM32CubeMX
-
STM32G0 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-11 7:50 AM
Change the NRST_MODE option bits to 0b10 using STM32CubeProgrammer to disconnect that pin from internal NRST. See info in the reference manual.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-11 7:50 AM
Change the NRST_MODE option bits to 0b10 using STM32CubeProgrammer to disconnect that pin from internal NRST. See info in the reference manual.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-11 7:58 AM
Thanks..Solved..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-11 8:03 AM
One More question , Is there any way to Program Option Bytes for NRST_MODE and Program Lock (Read Out Protection Byte ) in .c file ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-11 9:14 AM
Yes, look at HAL_FLASHEx_OBProgram. You need to unlock option bytes first. Should be examples in the CubeG0 repository.
It's also possible to change them during programming via the linker file, but that's a bit more complicated to set up.
