Page 1 of 1
Flowcode v11. ATMEGA328 3xchannel PWM not compiling
Posted: Thu Dec 18, 2025 3:23 am
by Mcat
Hello!
My project on ATMEGA328 uses three PWM channels. Everything works fine in the simulator, but it won't compile and gives errors like the ones in the picture. Please help.
Re: Flowcode v11. ATMEGA328 3xchannel PWM not compiling
Posted: Thu Dec 18, 2025 9:48 am
by Steve-Matrix
I've just tried compiling an ATMEGA328 with PWM and it compiles without error for me. Make sure you are up-to-date with library updates.
Also, it was tricky to see what the error is from a screenshot. In future, it is much easier to solve problems if the output is available in text (e.g. by attaching the generated msg.txt file to a forum post).
It's also very useful to attach the fcfx file too as this saves a lot of time trying to replicate a project that exhibits your problem.
If library updates does not solve your problem, please post these files here and we will investigate further.
Re: Flowcode v11. ATMEGA328 3xchannel PWM not compiling
Posted: Thu Dec 18, 2025 10:16 am
by BenR
It looks like the specific error being generated it due to the 7 segment quad component pin connections, something there is referring to PortA which doesn't exist on the device you're using.
Maybe try going through the properties and checking there isn't a hidden pin thats referring to PortA.
Re: Flowcode v11. ATMEGA328 3xchannel PWM not compiling
Posted: Thu Dec 18, 2025 6:59 pm
by Mcat
Hello!
Thank you for your reply. I updated the component library, but the problem remains.
Everything simulates fine, but it still won't compile.
Project files:
Re: Flowcode v11. ATMEGA328 3xchannel PWM not compiling
Posted: Thu Dec 18, 2025 8:54 pm
by medelec35
From Ben's post, Please pay attention to this:
BenR wrote: ↑Thu Dec 18, 2025 10:16 am
It looks like the specific error being generated it due to the 7 segment quad component pin connections, something there is referring to PortA which doesn't exist on the device you're using.
Select the 7seg Quad component on the 2D Legacy panel then right click and select properties.
Within the properties change any pin that has Port A selected.
E.g. the top pin pin is connected to port A.0

- Port A does not exist.png (139.06 KiB) Viewed 14 times
As Ben stated port A does not exist, hence not able to compile.