cancel
Showing results for 
Search instead for 
Did you mean: 

How to initialize GPIO pin and interrupt with ICube-lrWAN package.

shadab abedin
Associate II

i want to initialize pin A9 & A10 in BL072ZLrWAN1board of STas a external interrupt pin. ICubeLrwan package not integrate with cubeMX so i am confuse about how to initialize the pin and call the interrupt and write its callback function.

1 REPLY 1
Houssem CHAABANI
Senior II

Dear @shadab abedin​ ,

You can configure A9 and A10 as external interrupt pin using STM32CubeMX:

  • Choose B-L072Z-LRWAN1 from board selector.
  • Under Pinout & Configuration click on the pin (PA9 / PA10) and choose GPIO_EXTI.
  • Then generate your code.

Kind regards,

Houssem