cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Configure : STM32G071R8 NRST as Input/Output/Interrupt

Karan 123
Senior

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 . ?

0693W000001sh7RQAQ.png

Is there any special setting ? Which I am missing ?

--

Karan

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Change the NRST_MODE option bits to 0b10 using STM32CubeProgrammer to disconnect that pin from internal NRST. See info in the reference manual.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

4 REPLIES 4
TDK
Guru

Change the NRST_MODE option bits to 0b10 using STM32CubeProgrammer to disconnect that pin from internal NRST. See info in the reference manual.

If you feel a post has answered your question, please click "Accept as Solution".
Karan 123
Senior

Thanks..Solved..

Karan 123
Senior

One More question , Is there any way to Program Option Bytes for NRST_MODE  and Program Lock (Read Out Protection Byte ) in .c file ?

TDK
Guru

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.

If you feel a post has answered your question, please click "Accept as Solution".