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.
All Projects Compile But Won't Run
Moderator: Benj
All Projects Compile But Won't Run
- Attachments
-
- Options1.jpg (75.88 KiB) Viewed 2814 times
-
- Options 2.jpg (40.5 KiB) Viewed 2814 times
-
- Flashing LED.jpg (77.98 KiB) Viewed 2814 times
-
- 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
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.
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
Re: All Projects Compile But Won't Run
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.
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 (53.54 KiB) Viewed 2777 times
-
- New Test.fcfx
- (7.15 KiB) Downloaded 90 times
-
- 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
Hello.
To control the onboard LED, you have the wrong pin selected.
This should help After changing the properties from D7 to B5, the onboard LED flashes every 3 seconds for me on my Uno
To answer your questions.
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: I would still like to see your New Test.msg.txt file.
Can you attach it, please?
The Arduino has a bootloader and USB to UART converter that allows Flowcode to program directly via USB.
To control the onboard LED, you have the wrong pin selected.
This should help After changing the properties from D7 to B5, the onboard LED flashes every 3 seconds for me on my Uno
To answer your questions.
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: I would still like to see your New Test.msg.txt file.
Can you attach it, please?
No, everything required is included within the toolchain.
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
Re: All Projects Compile But Won't Run
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.
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 94 times
-
- 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
Not a problem.
At least you are up and running and know the Uno is programming OK.
Thanks for letting us know.
At least you are up and running and know the Uno is programming OK.
Thanks for letting us know.
Martin