I couldn't even achieve the EXTI Interrupt software simulation in the Debug - Run mode.LeighM wrote: ↑Wed Jun 11, 2025 1:48 pmI suspect there might already be examples on this or the old forum.
Just some other points...
Presumably you have proved that the hardware is working? Perhaps adding a led flash in the main loop.
Are you using your own hardware design, or a development board?
You have a pull up (or down) resistor on the switched input?
I would also suggest that you keep the interrupt code as short as possible, e.g. just set a flag and then test for it in the main loop and do your printing there
STM32 Configure and Interrupt
-
- Posts: 23
- http://meble-kuchenne.info.pl
- Joined: Wed Jan 12, 2022 8:25 am
Re: STM32 Configure and Interrupt
-
- Posts: 23
- Joined: Wed Jan 12, 2022 8:25 am
Re: STM32 Configure and Interrupt
To be clear, only STM32F411CEU6 I have downloaded it to a standard development board(Still failed), for the others, I only tested it in the Debug-Run mode. the program will never goes into EXTI macro even when I set the EXTI active button always on and Step into it.LeighM wrote: ↑Wed Jun 11, 2025 1:48 pmI suspect there might already be examples on this or the old forum.
Just some other points...
Presumably you have proved that the hardware is working? Perhaps adding a led flash in the main loop.
Are you using your own hardware design, or a development board?
You have a pull up (or down) resistor on the switched input?
I would also suggest that you keep the interrupt code as short as possible, e.g. just set a flag and then test for it in the main loop and do your printing there
As you mentioned,I changed the program to use a flg in the EXTI Interrupt Macro and an LED on the main loop.
I have tried 4 boards : ESP32(OK),PIC(OK),PICO(NG),STM32(NG). 2 success and 2 failed. The program are all same except the Interrupt pin.
If some want to check, please see below attachment.
I think Flowcode developers should pay attention to this issue.
Or prove me stupid. I still think this is a good example for Flowcode beginners, and I believe there will be people who encounter the same problem as me.
BR, Deqiang
- Attachments
-
- IO_Interrupt_Flag_STM32(NG).fcfx
- (14.47 KiB) Downloaded 13 times
-
- IO_Interrupt_Flag_ESP32(OK).fcfx
- (14.36 KiB) Downloaded 13 times
-
- EXTI0_with_Flag.png (216.83 KiB) Viewed 562 times
-
- Valued Contributor
- Posts: 458
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 82 times
- Been thanked: 246 times
Re: STM32 Configure and Interrupt
Thanks for the further info.
I'm not sure what support there is for interrupts in simulation mode - one for the Matrix team.
I should be able to find some time next week to provide an EXTI example on STM32F411 hardware
I'm not sure what support there is for interrupts in simulation mode - one for the Matrix team.
I should be able to find some time next week to provide an EXTI example on STM32F411 hardware
-
- Matrix Staff
- Posts: 1509
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 211 times
- Been thanked: 350 times
Re: STM32 Configure and Interrupt
Simulation on that type of interrupt is not currently supported. We will look into this and see if it is possible.
-
- Posts: 23
- Joined: Wed Jan 12, 2022 8:25 am
Re: STM32 Configure and Interrupt
Hopefully it can be supported soon.Steve-Matrix wrote: ↑Mon Jun 16, 2025 10:28 am
Simulation on that type of interrupt is not currently supported. We will look into this and see if it is possible.
Looking forward to your update.
BR
Deqiang
-
- Matrix Staff
- Posts: 1509
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 211 times
- Been thanked: 350 times
Re: STM32 Configure and Interrupt
We've looked into this and the attached FCD file should allow the simulation of the pin interrupts on that device.
To try it, please download and place into the following location:
If this works ok, we will roll out the changes to the other chips in the STM32 range.
To try it, please download and place into the following location:
Code: Select all
%ProgramData%\MatrixTSL\FlowcodeV11\FCD\ARM
- Attachments
-
- 32F411CE.fcdx
- (51.87 KiB) Downloaded 12 times
-
- Valued Contributor
- Posts: 458
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 82 times
- Been thanked: 246 times
Re: STM32 Configure and Interrupt
Here's an EXTI demo for the 32F411 BlackPill dev board ...
- Attachments
-
- STM32F411BP_LED_EXTI.fcfx
- (10.24 KiB) Downloaded 13 times
-
- Posts: 23
- Joined: Wed Jan 12, 2022 8:25 am
Re: STM32 Configure and Interrupt
Hello All,
I have replaced the replaced the file"32F411CE.fcdx", have tested the sample project "STM32F411BP_LED_EXTI.fcfx", have finished the component library update.
To be honest, I didn't find any difference, is it all be tested? Is there someone really trigger the EXTI Pin and saw it jumping into the EXTI Marco in both simulation mode and real board?
I have recorded the screen and try to show them, but it is too big to be uploaded.
Sorry, I don't know what else I can do for it. Now I am using Flowcode V10, maybe you are working on V11, but please make sure they are tested on V10 and working well.
Thanks and Wish you the best.
Best regards,
Deqiang
-
- Valued Contributor
- Posts: 458
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 82 times
- Been thanked: 246 times
Re: STM32 Configure and Interrupt
Step at a time...
Have you tried the demo on hardware?
It gives a short LED flash every half second.
Gives a long (half second) flash of the LED when the interrupt input is triggered.
What do you see?
Have you tried the demo on hardware?
It gives a short LED flash every half second.
Gives a long (half second) flash of the LED when the interrupt input is triggered.
What do you see?