2020-07-11 07: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.
2020-07-11 07: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.
2020-07-11 07: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.
2020-07-11 07:58 AM
Thanks..Solved..
2020-07-11 08: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 ?
2020-07-11 09: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.