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.
Flowcode v11. ATMEGA328 3xchannel PWM not compiling
-
Mcat
- Posts: 2
- http://meble-kuchenne.info.pl
- Joined: Tue Jul 23, 2024 2:47 pm
Flowcode v11. ATMEGA328 3xchannel PWM not compiling
- Attachments
-
- Problem.jpg (104.59 KiB) Viewed 113 times
-
Steve-Matrix
- Matrix Staff
- Posts: 1680
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 239 times
- Been thanked: 397 times
Re: Flowcode v11. ATMEGA328 3xchannel PWM not compiling
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.
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.
-
BenR
- Matrix Staff
- Posts: 2038
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 541 times
- Been thanked: 725 times
Re: Flowcode v11. ATMEGA328 3xchannel PWM not compiling
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.
Maybe try going through the properties and checking there isn't a hidden pin thats referring to PortA.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Flowcode v11. ATMEGA328 3xchannel PWM not compiling
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:
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:
- Attachments
-
- PWM Nano328.msg.txt
- (3.87 KiB) Downloaded 5 times
-
- PWM Nano328.fcfx
- (32.61 KiB) Downloaded 6 times
-
medelec35
- Valued Contributor
- Posts: 2209
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 672 times
- Been thanked: 754 times
Re: Flowcode v11. ATMEGA328 3xchannel PWM not compiling
From Ben's post, Please pay attention to this:
Within the properties change any pin that has Port A selected.
E.g. the top pin pin is connected to port A.0 As Ben stated port A does not exist, hence not able to compile.
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 As Ben stated port A does not exist, hence not able to compile.
Martin