Variant on old problem downloading to arduino MEGA R3

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

Moderator: Benj

Post Reply
Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Variant on old problem downloading to arduino MEGA R3

Post by Chris_MIRA »

Hi,
Im using FC8 and cant get it to down load to an Arduino MEGA R3. This may be the same problem as Ive posted before, as the symptoms are the same (compiles to c, but not to HEX or any further)... but the suggested work a rounds don't fix the problem. The error message is also now different as well. Im definitely using the MEGA R3. Ive included the full programme (Ive tried other programmes that used to work but don't anymore) and the new error message. Any suggestions or work a round's very gratefully received!

Thanks,
Chris
Attachments
VIM MEGA Interface.fcfx
(42.22 KiB) Downloaded 198 times
FC8 Error message.png
(440.91 KiB) Downloaded 2259 times

mnf
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: Variant on old problem downloading to arduino MEGA R3

Post by mnf »

Hi Chris,

I can compile and upload your code no problem - it looks like you must have a different version of one of the components - try doing an update, and see if that gets you anywhere.

Martin

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Variant on old problem downloading to arduino MEGA R3

Post by Chris_MIRA »

Thanks Martin,
FC8 is saying there are no updates available i.e Im using the current version. But you have given me a lead... Ill try re-loading the CAN module as that is the only one that uses SPI and the error message seems to have the most problem with that...
Regards

Chris :D

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Variant on old problem downloading to arduino MEGA R3

Post by Chris_MIRA »

Okay,
The problem is a new one, when attempting to compile in FC8 using the CAN coms macro (see file attached), the error message (also attached) is displayed. I have tried deleting all CAN macro's / calls and the programme downloads no problem, as soon as I include a new CAN macro (CAN initialise) then the same error is back. Please help!
Regards,
Chris

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: Variant on old problem downloading to arduino MEGA R3

Post by medelec35 »

Hi Chris,
Like Martin, your flowchart compiled OK for me.
When you select Help, About Flowcode, what version are you using?
Martin

mnf
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: Variant on old problem downloading to arduino MEGA R3

Post by mnf »

There are a few topics in the forum with similar problems - which seem to be connected to a disconnected 'pin' in the cal_spi component - or connected by default to a non existent pin.

Viewing all the component properties (sorry on a Linux laptop at present so can't give the exact place) might let you change this ??

Martin

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Variant on old problem downloading to arduino MEGA R3

Post by Chris_MIRA »

Hi, the version Im using is checked and up to date according to the help.
Ill g0-look for the spi connection /pin but any help would be great!

Chris

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Variant on old problem downloading to arduino MEGA R3

Post by LeighM »

Looks like there is something not quite right with your installation.
You are even getting an error about Internal CAN not supported :?
Any file corruption? Or running on SSD?

Edit: Could you also post the C file that is generated? We can then compare with ours and it might help locate the issue.

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Variant on old problem downloading to arduino MEGA R3

Post by Chris_MIRA »

Hi,
.c file attached, thanks for helping!
Regards,
Chris
Attachments
VIM MEGA Interface.c
(188.67 KiB) Downloaded 181 times

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Variant on old problem downloading to arduino MEGA R3

Post by Chris_MIRA »

As a test, Ive started an entirely new project in FC8, (see attached pic) with a simple led flasher programme. If the CAN coms Icon is selected from the library and placed on the dash-board (2D), then the programme will not compile to hex or down load, even though there are no macros in the programme calling the CAN and no initialisation etc.... If the CAN icon is deleted from the dash board, then the programme compiles and downloads to the device with no problems... Does this mean something is corrupted In my CAN comms file? If so, how do I re-install it? would I need to delete and re-install all of FC8 from the start?

Regards,
Chris
Attachments
CAN degug pic.png
(304.42 KiB) Downloaded 2178 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Variant on old problem downloading to arduino MEGA R3

Post by LeighM »

Hi Chris,
You need to upgrade your Flowcode from 8.0 to 8.1
Leigh

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Variant on old problem downloading to arduino MEGA R3

Post by Chris_MIRA »

??? The "Help" check for updates says there are non needed or available (see screen shot) How do I update?

Regards,
Chris
Attachments
Update bage FC8.png
(11.23 KiB) Downloaded 2166 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: Variant on old problem downloading to arduino MEGA R3

Post by medelec35 »

Are You running V8.1.1.11 (Built Dec14 2018)?
If not, things won't work including updates.

That was the reason for getting you to do Help, About Flowcode.
Martin

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Variant on old problem downloading to arduino MEGA R3

Post by QMESAR »

Hi
you can aslo check the full data base by selecting full data base however in your case people recomend to update to 8.1 go to the down load page and down load it
P2.jpg
P2.jpg (31.81 KiB) Viewed 6499 times
Edit Martin sorry we posted at the same time :D

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Variant on old problem downloading to arduino MEGA R3

Post by Chris_MIRA »

Hi,
Thanks to all for helping! Issue now seems to be sorted (including the update check button).

best regards,
Chris :D :D :D

Post Reply