Search found 521 matches

by LeighM
Thu Mar 05, 2026 10:49 am
Forum: General
Topic: STM32F407ZG — How to set frequencies correctly?
Replies: 1
Views: 77

Re: STM32F407ZG — How to set frequencies correctly?

To use 8MHz crystal and maximum allowed clock rates here are suggested settings clocks.jpg settings.jpg The Flowcode Timer interrupt dialog calculations are incorrect for STM devices (Flowcode does not know about multiple clocks) Therefore you need to work out yourself the prescaler and roll over va...
by LeighM
Thu Feb 26, 2026 6:02 pm
Forum: General
Topic: Compile problem with FC11
Replies: 38
Views: 1256

Re: Compile problem with FC11

Have you downloaded and installed the FC11 PIC toolchain from Matrix website?
Ah, edit, I've just looked at your new msg.txt and see that you now have correct compiler.
Must be something else wrong.
Have you done a full component update?
by LeighM
Thu Feb 26, 2026 4:29 pm
Forum: General
Topic: Compile problem with FC11
Replies: 38
Views: 1256

Re: Compile problem with FC11

You seem to be running an old version of XC8 (V1.45) Looks like your PIC compiler path is "C:\Program Files (x86)\Flowcode\Compilers\pic\" This would normally be "C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\" Please check toolchain location in Global Settings->Location...
by LeighM
Sat Feb 07, 2026 4:04 pm
Forum: Feature Requests
Topic: Power saving mode
Replies: 6
Views: 1864

Re: Power saving mode

This is the C icon code from the demo, it also compiles OK on 32F030, I don't have 030 hardware to test it, although it worked fine on 411 so should also work on 030 Hope it helps // Example to enter Stop Mode HAL_SuspendTick(); // Stop SysTick to prevent immediate wakeup HAL_PWR_EnterSTOPMode(PWR_L...
by LeighM
Thu Feb 05, 2026 4:32 pm
Forum: Feature Requests
Topic: Power saving mode
Replies: 6
Views: 1864

Re: Power saving mode

Here's a target demo ...
STM32F411BP_STOP_DEMO.fcfx
(9.99 KiB) Downloaded 50 times
Note, this won't simulate
by LeighM
Thu Jan 29, 2026 6:51 pm
Forum: General
Topic: Blackpill awakening
Replies: 7
Views: 1337

Re: Blackpill awakening

As for waking up every 5 minutes, this should be possible with a timer interrupt. Specifically with TIM2 and TIM5 that have 32 bit auto-reload counters. However I'm struggling to discover how to change these from the 16 bit value limit, using parameters in the device FCD. Matrix, is it possible to i...
by LeighM
Thu Jan 29, 2026 4:55 pm
Forum: General
Topic: Blackpill awakening
Replies: 7
Views: 1337

Re: Blackpill awakening

No, I don't think it does. But after a super search, OK it was a bit of AI :roll: I found this ... // Example to enter Sleep Mode HAL_SuspendTick(); // Stop SysTick to prevent immediate wakeup HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY_WFI); HAL_ResumeTick(); // Resume SysTick after...
by LeighM
Sun Jan 25, 2026 5:09 pm
Forum: Projects - Embedded
Topic: Compiler Error - ESP M5Stack Dial
Replies: 9
Views: 1897

Re: Compiler Error - ESP M5Stack Dial

You have an error in macro Current_Meas
In the IF icon change

Code: Select all

Seconds = 0 & Flag_SECS = 1
to

Code: Select all

(Seconds = 0) && (Flag_SECS = 1)
The other errors in the Bitmap drawing component and the ADC CAL will need attention from Matrix
by LeighM
Sat Jan 17, 2026 6:25 pm
Forum: Bug Reports
Topic: RESOLVED: STM32F411 Black Pill - I2C Ch2 mapping
Replies: 2
Views: 856

Re: STM32F411 Black Pill - I2C Ch2 mapping

Looks like AF9 got missed, try this ...
32F411CE_BlackPill.fcdx
(51 KiB) Downloaded 68 times
by LeighM
Sat Jan 03, 2026 3:44 pm
Forum: General
Topic: FC11 compile error
Replies: 4
Views: 601

Re: FC11 compile error

Have a look at these posts ... https://www.flowcode.co.uk/forums/viewtopic.php?t=3467 https://www.flowcode.co.uk/forums/viewtopic.php?p=21794#p21794 Ben, can you update the CAL file please, and I suspect the file versions might be in error, my V11 compiles this test project OK, but my CAL file is V1...