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: 1
- 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 44 times
-
Steve-Matrix
- Matrix Staff
- Posts: 1678
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 238 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: 2037
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 540 times
- Been thanked: 724 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