2023-07-10 06:44 AM
I have a simple question. How to "attach" external interrupt to pin "selected" as Alternate Function of some peripheral in CubeMX. For example:
I set PA8 as TIM4_ETR signal. Then i want to add external interrupt on the same pin. How to do that in CubeMX ?
Thanks.
Solved! Go to Solution.
2023-07-10 07:13 AM
AFAIK you cant, this is a design choice of Cube/CubeMX.
People circumvented this in past by a certain sequence of calls (in code - I don't use Cube so I don't know the details, you can try to search here), but it's probably simpler to write your own code using directly registers.
JW
2023-07-10 07:13 AM
AFAIK you cant, this is a design choice of Cube/CubeMX.
People circumvented this in past by a certain sequence of calls (in code - I don't use Cube so I don't know the details, you can try to search here), but it's probably simpler to write your own code using directly registers.
JW
2023-07-10 07:44 AM
Hello @Michal Dudka,
As @waclawek.jan already said, you can't do that by CubeMX, you'll need to fix the EXTI and GPIO registers after init and create the ISR.
Please check this post, it can be helpful!
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-07-10 04:26 PM
You chose this and now you are asking for electric windows...