Skip to main content
LLr.1
Associate III
Feb 16, 2022 10:17 AM UTC
Solved

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

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.
Louis AUDOLY
Louis AUDOLYBest answer
ST Employee
Feb 18, 2022 4:51 PM UTC

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
Feb 18, 2022 4:51 PM UTC

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
Feb 21, 2022 7:41 AM UTC

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