Page 1 of 1

All Projects Compile But Won't Run

Posted: Thu Mar 10, 2022 2:23 am
by Battler
Hello

I am having trouble getting any project to run on an Genuine Arduino Uno R3, it appears to upload ok but won't run. I am making sure the build is set correctly best I know but still no joy. Have re-loaded Flowcode still no go. I am using the compile to chip button on top bar to upload. It works perfectly with the same flashing LED if created and uploaded using the Arduino IDE 2. I have tried to send a copy of the file but it doesn't seem to attach. Should it.

Thanks very much hoping you can point me in the right direction.

Re: All Projects Compile But Won't Run

Posted: Thu Mar 10, 2022 8:23 am
by medelec35
Hello.
The LED won't flash because the pin will be high for 3 seconds, then go low, but it will then instantly go high.
It will look like the LED is permanently on.
You will need to add another delay below the TurnOff()
You should be able to add .fcfx files.
If that still does not work, can you post the New Test.msg.txt file that is within your project folder.
Can you also make sure you are fully up to date?
Use Help, Check for updates & change Files in-use to Full database.

Re: All Projects Compile But Won't Run

Posted: Fri Mar 11, 2022 8:38 am
by Battler
Hello

I have done all you suggested including a full database update. Nothing still works on any file including also PIC ones. The Arduino Uno has flashing leds while uploading but when finished has the led on pin 13 onboard led fully lit not flashing. As previously mentioned a sketch written in Anduino IDE2 loads and works as expected.

Do I have to modify the compile options boxes from default. If yes could you please give me an example.
Do I have to have AVRDude if so where to locate it.
Do I need an external programmer I believe not.

I think I have lost the plot must be very simple fix.

Thanks for the fast response and help.

Re: All Projects Compile But Won't Run

Posted: Fri Mar 11, 2022 9:15 am
by medelec35
Hello.
To control the onboard LED, you have the wrong pin selected.
This should help
Controling onboard  LED.png
Controling onboard LED.png (16.08 KiB) Viewed 3360 times
After changing the properties from D7 to B5, the onboard LED flashes every 3 seconds for me on my Uno
To answer your questions.
Battler wrote:
Fri Mar 11, 2022 8:38 am
Do I have to modify the compile options boxes from default. If yes could you please give me an example.
No, they are left as the default settings.
If you try and modify the settings, they should be overridden with the default settings again, after closing and opening compiler settings.
Your compiler settings look wrong.
It looks like you have chosen Atmega328p.
If you have then would match your compiler settings.
However, with your other image, you are showing Uno R3.
My advice is to change the target to a different target, then back to Uno R3.
Makesure they match my settings:
Programmer Options.png
Programmer Options.png (101.96 KiB) Viewed 3358 times
I would still like to see your New Test.msg.txt file.
Can you attach it, please?
Battler wrote:
Fri Mar 11, 2022 8:38 am
Do I have to have AVRDude if so where to locate it.
No, everything required is included within the toolchain.
Battler wrote:
Fri Mar 11, 2022 8:38 am
Do I need an external programmer I believe not.
No, just plug the USB in.
The Arduino has a bootloader and USB to UART converter that allows Flowcode to program directly via USB.

Re: All Projects Compile But Won't Run

Posted: Sat Mar 12, 2022 2:28 am
by Battler
Hello

Thanks so much I can't understand how looking at it so much and trying so many things I didn't pick up I had confused pin numbers and IO numbers very embarrassing.

Thanks so much again for your time.

Re: All Projects Compile But Won't Run

Posted: Tue Mar 15, 2022 8:57 am
by medelec35
Not a problem.
At least you are up and running and know the Uno is programming OK.
Thanks for letting us know.