Page 1 of 1

V4.5 PIC 18F8490 and CAN Component

Posted: Thu Aug 25, 2011 1:59 pm
by beambase
Hello
I have a problem with a project that was origibaly done in V4.3 but after upgrading to V4.5 it will not complie correctly.. The PIC used is 18F8490 and the hardware is the external CAN controller MCP2515.
No CAN signal at all can be detected when copiled from V4.5. But when using a HEX file generated on a computer running 4.3 the CAN signal is fine.

Any ideas on how to fix this. I need to get this going tonight...... so please help.

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Thu Aug 25, 2011 2:37 pm
by Benj
Hello,

Hm that's strange. Please can you post up the Flowcode file and the generated C file. Also if you have the C file from the v4.3 compilation then that would also be handy If you don't have this then no problems. I will have a look through the component code and see what has changed between revisions.

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Thu Aug 25, 2011 2:49 pm
by beambase
Hello
I have PMed you the files since they are commercial. Hope it workes anyway.

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Thu Aug 25, 2011 3:04 pm
by Benj
Thanks for the files.

Here is a copy of the v4.3 CAN component C code. You should be able to replace the file in your "Flowcode v4/components" directory with the attached file, restart Flowcode and you should be up and running again. I will have a dig in and see why the newer file is causing problems. Cheers for all your PM files they should make the task a lot simpler.
PIC_CAN.c
(42.64 KiB) Downloaded 285 times
Let me know how you get on with the component C code.

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Thu Aug 25, 2011 3:16 pm
by beambase
Hello
I am not able to create a hex file. I am getting the following error

Can2test8490.c
Starting preprocessor: c:\PROGRA~2\MATRIX~1\FLOWCO~1\boostc\pp.exe Can2test8490.c -i c:\PROGRA~2\MATRIX~1\FLOWCO~1\boostc\include -d _PIC18F8490 -la -c2 -o Can2test8490.pp -v -d _BOOSTC -d _PIC18 -d _CHAR_INDEX

Can2test8490.c(452): Illegal redefinition of symbol: TX1IE
Can2test8490.c(453): Illegal redefinition of symbol: TX2IE
Can2test8490.c(462): Illegal redefinition of symbol: TX1IF
Can2test8490.c(463): Illegal redefinition of symbol: TX2IF

Any Ideas?

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Thu Aug 25, 2011 3:19 pm
by beambase
Hello Again...
is there a link somewhere to V4.3 so I can re-install the olde version again?
I am really pressed for time to get this working. Sitting i a on site in a hotelroom and needs to get this done by tomorrow morning.....

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Thu Aug 25, 2011 3:23 pm
by Benj
Hello,

Sorry about this here is a link to the v4.3 installer.

http://www.matrixmultimedia.com/softwar ... codeV4.exe

You will first have to uninstall v4.5 before 4.3 will allow you to install it correctly.

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Thu Aug 25, 2011 4:05 pm
by DavidA
I will add to this,

In case you did not know, you will not need to enter licence details again, just defer the entering of licence information and it should still remain fully registered to you.

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Sat Aug 27, 2011 7:38 am
by beambase
Hello
there seams to be a different PIC_CAN.c file on my working system.
In comments it has the following line:

* 231109 | SK | Commented out definitions of TX1IE, TX2IE, TX1IF, TX2IF. Clash with definitions for some PIC devices (18F8490).



File is attached.

But this file does not work in a V4.5 installation.
Could you make a V4.5 compatible version of this file and send it to me?

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Thu Sep 01, 2011 8:29 am
by beambase
Have you had any time to look at this? When can I get a working PIC_CAN.c file for 18f8490 and V4.5?

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Mon Sep 05, 2011 11:41 am
by DavidA
Hello beambase,

We are currently looking into why this might not be working.

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Mon Sep 05, 2011 12:36 pm
by Benj
Hello,

Here is a slightly modded version of the v4.5 CAN component C file. Please can you give this a go and let us know how you get on.

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Wed Sep 07, 2011 3:34 pm
by beambase
Hello
this time I get these errors


Error: .obj or .lib file Incompatible version! (file uses V111, linker requires V113 to V113)
Error: Failed to process:libc.pic18.lib
Error: .obj or .lib file Incompatible version! (file uses V109, linker requires V113 to V113)
Error: Failed to process:flowcode.pic18.lib
Error: .obj or .lib file Incompatible version! (file uses V111, linker requires V113 to V113)
Error: Failed to process:rand.pic18.lib
Error: .obj or .lib file Incompatible version! (file uses V111, linker requires V113 to V113)
Error: Failed to process:float.pic18.lib


failure

Return code = -2


Any ideas?

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Wed Sep 07, 2011 4:31 pm
by Benj
Hello,

Have you modified the boostc directory at all. It looks like the incorrect linker is being used which is causing the errors. May be worth uninstalling, deleting the Flowcode v4 folder to ensure no left over files remain and then re-installing if you have not modified the folder.

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Fri Sep 09, 2011 8:14 am
by beambase
Yes,
fresh install made it work.
Thank you!

Re: V4.5 PIC 18F8490 and CAN Component

Posted: Fri Sep 09, 2011 11:35 am
by Benj
That's great news, Thanks for letting me know.