Page 1 of 1

Variant on old problem downloading to arduino MEGA R3

Posted: Mon Jan 21, 2019 3:35 pm
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

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Mon Jan 21, 2019 7:43 pm
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

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Tue Jan 22, 2019 10:11 am
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

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Tue Jan 22, 2019 12:44 pm
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

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Tue Jan 22, 2019 2:45 pm
by medelec35
Hi Chris,
Like Martin, your flowchart compiled OK for me.
When you select Help, About Flowcode, what version are you using?

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Tue Jan 22, 2019 3:00 pm
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

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Tue Jan 22, 2019 3:31 pm
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

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Tue Jan 22, 2019 4:39 pm
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.

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Wed Jan 23, 2019 9:59 am
by Chris_MIRA
Hi,
.c file attached, thanks for helping!
Regards,
Chris

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Wed Jan 23, 2019 10:20 am
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

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Wed Jan 23, 2019 10:30 am
by LeighM
Hi Chris,
You need to upgrade your Flowcode from 8.0 to 8.1
Leigh

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Wed Jan 23, 2019 3:28 pm
by Chris_MIRA
??? The "Help" check for updates says there are non needed or available (see screen shot) How do I update?

Regards,
Chris

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Wed Jan 23, 2019 3:31 pm
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.

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Wed Jan 23, 2019 3:32 pm
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 6889 times
Edit Martin sorry we posted at the same time :D

Re: Variant on old problem downloading to arduino MEGA R3

Posted: Wed Jan 23, 2019 4:09 pm
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