All Projects Compile But Won't Run

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
Battler
Posts: 5
Joined: Sat Aug 29, 2020 2:43 am
Been thanked: 1 time
Contact:

All Projects Compile But Won't Run

Post 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.
Attachments
Options1.jpg
Options1.jpg (75.88 KiB) Viewed 2709 times
Options 2.jpg
Options 2.jpg (40.5 KiB) Viewed 2709 times
Flashing LED.jpg
Flashing LED.jpg (77.98 KiB) Viewed 2709 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: All Projects Compile But Won't Run

Post 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.
Martin

Battler
Posts: 5
Joined: Sat Aug 29, 2020 2:43 am
Been thanked: 1 time
Contact:

Re: All Projects Compile But Won't Run

Post 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.
Attachments
Settings.jpg
Settings.jpg (53.54 KiB) Viewed 2672 times
New Test.fcfx
(7.15 KiB) Downloaded 89 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: All Projects Compile But Won't Run

Post 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 2669 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 2667 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.
Martin

Battler
Posts: 5
Joined: Sat Aug 29, 2020 2:43 am
Been thanked: 1 time
Contact:

Re: All Projects Compile But Won't Run

Post 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.
Attachments
New Test.c
(5.03 KiB) Downloaded 92 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: All Projects Compile But Won't Run

Post by medelec35 »

Not a problem.
At least you are up and running and know the Uno is programming OK.
Thanks for letting us know.
Martin

Post Reply