Hello everyone,
I am trying to use Flowcode on STM32F411CEU6 chip. There are 2 questions hope to get your support.
1, STM32F411CEU6 with HSE can reach 100MHZ clock speed, I have set the Configure according to STM32CubeMX, but still cannot set the clock speed to 100MHZ. Please let me know if there is any setting or maybe I did it not correctly.
2, I use a button(PA1) to active an interrupt(button_interrupt). but the program will not go the button_interrupt when I push the button on or off. I have tried Timer, that works well. This is strange.
I have checked the videos in flowcode youtube, they use difference chip with INT0 to call interrupt macro, difference with Stm32 EXTI0. But I don't think this is the reason, maybe I was wrong ,
I have attached my screenshot and program in attachment. Looking forward to get your support.
Thanks in advance.
Best regards,
Deqiang
STM32 Configure and Interrupt
-
- Posts: 16
- http://meble-kuchenne.info.pl
- Joined: Wed Jan 12, 2022 8:25 am
STM32 Configure and Interrupt
- Attachments
-
- 08.fcfx
- Flowcode project with Configure and Interrupt
- (13.54 KiB) Downloaded 6 times
-
- IO Interrupt
- 屏幕截图 2025-06-08 191957.png (154.46 KiB) Viewed 141 times
-
- Flowcode configure
- 屏幕截图 2025-06-08 185454.png (144.22 KiB) Viewed 141 times
-
- Valued Contributor
- Posts: 455
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 82 times
- Been thanked: 244 times
Re: STM32 Configure and Interrupt
I'm not near my pc at the moment so can't check your project file, but a couple of things to check ...
For the interrupt are the properties set to EXTI1 and Port A?
The Flowcode project "clock speed" setting needs to be set at your external crystal frequency (8MHz, 16MHz etc)
Hope that helps
For the interrupt are the properties set to EXTI1 and Port A?
The Flowcode project "clock speed" setting needs to be set at your external crystal frequency (8MHz, 16MHz etc)
Hope that helps
-
- Posts: 16
- Joined: Wed Jan 12, 2022 8:25 am
Re: STM32 Configure and Interrupt
Hello LeighM ,LeighM wrote: ↑Sun Jun 08, 2025 4:10 pmI'm not near my pc at the moment so can't check your project file, but a couple of things to check ...
For the interrupt are the properties set to EXTI1 and Port A?
The Flowcode project "clock speed" setting needs to be set at your external crystal frequency (8MHz, 16MHz etc)
Hope that helps
Thanks for your fast reply.
Yes, in the Properties I set EXTI1, GPIOA, Rising edge of INT, for the button I set $PORTA.1(Screenshot in attachment)
For the STM32F411CEU6 I use 25MHZ external crystal, after setting Clock speed to 25MHZ, where I can check the final frequency of HCLK(High-speed APB Clock).
hope to have your support again.
Many thanks.
Best regards,
Deqiang
- Attachments
-
- Interrupt Properties Setting
- 屏幕截图 2025-06-08 233457.png (83.92 KiB) Viewed 123 times
-
- Posts: 16
- Joined: Wed Jan 12, 2022 8:25 am
Re: STM32 Configure and Interrupt
I made 2 programs with same interrupt function by PIC Chip and STM32 Chip.
PIC: PIC16F18877 ----- Working!
STM32: STM32F411CEU6 ---- Not Working!
These two programs are all same except interrupt pin. I am wondering is there some bugs in STM32 interrupt macros.
I have put these two programs in attachment, hope to get support as soon as possible.
Thanks.
BR Deqiang
PIC: PIC16F18877 ----- Working!
STM32: STM32F411CEU6 ---- Not Working!
These two programs are all same except interrupt pin. I am wondering is there some bugs in STM32 interrupt macros.
I have put these two programs in attachment, hope to get support as soon as possible.
Thanks.
BR Deqiang
- Attachments
-
- IO_Interrupt_STM32.fcfx
- (13.04 KiB) Downloaded 4 times
-
- IO_Interrupt_PIC.fcfx
- (13.02 KiB) Downloaded 2 times
-
- Valued Contributor
- Posts: 455
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 82 times
- Been thanked: 244 times
Re: STM32 Configure and Interrupt
Hi,
Interrupts do work on F4 series, unfortunately I personally won't be able to check your Flowcode project this week, someone else might be able.
If you want to post the generated C code, I might be able to deduce something from that.
Interrupts do work on F4 series, unfortunately I personally won't be able to check your Flowcode project this week, someone else might be able.
If you want to post the generated C code, I might be able to deduce something from that.
-
- Posts: 16
- Joined: Wed Jan 12, 2022 8:25 am
Re: STM32 Configure and Interrupt
Hello LeightM,
Please check the C code for STM32 and PIC in attachment.
Thanks.
BR
Deqiang
- Attachments
-
- IO_Interrupt_STM32.c
- (60.17 KiB) Downloaded 4 times
-
- IO_Interrupt_PIC.c
- (83.8 KiB) Downloaded 2 times
-
- Posts: 16
- Joined: Wed Jan 12, 2022 8:25 am
Re: STM32 Configure and Interrupt
Thank you very much for your fast reply, I am very appreciate it.
You can find I select EXTI0 and also with PA.0. Because I am almost trying to test all the pins

EXTI1 and PA.1 I have also tested, not working.
Really strange...
BR
Deqiang
- Attachments
-
- 屏幕截图 2025-06-10 214252.png (156.95 KiB) Viewed 54 times
-
- EXIT0 with PA0.png (91.98 KiB) Viewed 55 times
-
- Posts: 16
- Joined: Wed Jan 12, 2022 8:25 am
Re: STM32 Configure and Interrupt
Hello all,
Is it possible someone can make a sample Flowcode program with a simple EXTI interrupt on STM32F411CEU6 chip to show it working?
It is important for me to carry on the current project.
Thank you very much!
Best regards,
Deqiang
Is it possible someone can make a sample Flowcode program with a simple EXTI interrupt on STM32F411CEU6 chip to show it working?
It is important for me to carry on the current project.
Thank you very much!
Best regards,
Deqiang
-
- Valued Contributor
- Posts: 455
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 82 times
- Been thanked: 244 times
Re: STM32 Configure and Interrupt
I 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
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