cancel
Showing results for 
Search instead for 
Did you mean: 

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

LLr.1
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
Louis AUDOLY
ST Employee

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

View solution in original post

2 REPLIES 2
Louis AUDOLY
ST Employee

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

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