STM32WL: NUCLEO-WL55JC1. Has anyone managed to use user button 2 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-16 2:17 AM
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 ?
Solved! Go to Solution.
- Labels:
-
STM32WL series
-
UART-USART
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-18 8:51 AM
Hello,
First you have to modify the void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) function in the main :
Then you have to add the interrupt handler for the button 2 : void EXTI1_IRQHandler(void) function in the file stm32wlxx_it.c :
Fix the issue on my side, let me know if it works for you.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-18 8:51 AM
Hello,
First you have to modify the void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) function in the main :
Then you have to add the interrupt handler for the button 2 : void EXTI1_IRQHandler(void) function in the file stm32wlxx_it.c :
Fix the issue on my side, let me know if it works for you.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-20 11:41 PM
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
