cancel
Showing results for 
Search instead for 
Did you mean: 

how gpio toogle on STM32 NUCLEO L4R5ZI can be configured?

jesal.patel
Associate II

hello team,

I am trying to get started with NUCLEO l4r5zi board.

The first program i am doing is to blink a LED on board (PB7) .

Problem is the program builds successfully and is loaded on the board . but the LED is not blinking.

Moreover the Console reads a breakpoint on MX_INIT_GPIO.

Please guide me with the procedure to perform this .0690X000006C2w3QAC.png0690X000006C2wDQAS.png

4 REPLIES 4
jesal.patel
Associate II

I also surfed for the similar post, where I got an thread which stated to change the clock from HSE to HSI / MSI . but It didn't work for me.

Imen.D
ST Employee

Hello,

Check the VDD_MCU, as LD2 (which is connected to PB7) cannot work with VDD_MCU= 1.8 V.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
jesal.patel
Associate II

Hello Imen,

Thank you for guiding.

The device is powered by USB.

I could now succesfully perform the blink program.

Now the issue i am facing is with the ADC polling program. At the debug window it shows the target not found error.

Please guide me with ADC example. I want to get analog input of 0-3.3V from a potentiometer for generating an output pwm signal.

Kind Regards,

Jesal

Imen.D
ST Employee

Hi @jesal.patel​ ,

I recommend you the ADC example available in the STM32CubeL4 version 1.13.0:

STM32Cube_FW_L4_V1.13.0\Projects\NUCLEO-L4R5ZI\Examples\ADC\ADC_RegularConversion_Polling

This will help you to use the ADC in Polling mode.

You find more details on how to use the example in the readme.txt file.

Kind Regards,

Imen.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen