Skip to main content
jesal.patel
Associate II
September 19, 2018
Question

how gpio toogle on STM32 NUCLEO L4R5ZI can be configured?

  • September 19, 2018
  • 4 replies
  • 2153 views

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

This topic has been closed for replies.

4 replies

jesal.patel
Associate II
September 19, 2018

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.

ST Technical Moderator
September 19, 2018

Hello,

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

Kind Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
jesal.patel
Associate II
September 20, 2018

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

ST Technical Moderator
September 20, 2018

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks