Skip to main content
LLr.1
Associate III
February 16, 2022
Solved

STM32WL: NUCLEO-WL55JC1. Has anyone managed to use user button 2 ?

  • February 16, 2022
  • 2 replies
  • 1759 views

Hi,

I tested the board with the UART_TwoBoardPolling but I don't succed to turn the user button 1 into the user button 2. The LED stops blinking but nothing append. With the debugger, it is going somewhere but i don't see where... maybe hardfault ?

0693W00000JQ0YpQAL.png

This topic has been closed for replies.
Best answer by Louis AUDOLY

Hello,

First you have to modify the void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) function in the main :

0693W00000KZikxQAD.png 

Then you have to add the interrupt handler for the button 2 : void EXTI1_IRQHandler(void) function in the file stm32wlxx_it.c :

0693W00000KZilkQAD.png 

Fix the issue on my side, let me know if it works for you.

Regards

2 replies

Louis AUDOLY
Louis AUDOLYBest answer
ST Employee
February 18, 2022

Hello,

First you have to modify the void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) function in the main :

0693W00000KZikxQAD.png 

Then you have to add the interrupt handler for the button 2 : void EXTI1_IRQHandler(void) function in the file stm32wlxx_it.c :

0693W00000KZilkQAD.png 

Fix the issue on my side, let me know if it works for you.

Regards

LLr.1
LLr.1Author
Associate III
February 21, 2022

Hello, Thank you for your reply.

It works for me.

I was thinking that the interrupt handler for the button 2 : void EXTI1_IRQHandler(void) exists already (maybe you can add it directly in a next version of the CubeWL)

Best regards