Compile Linker Error with 2 internal CANs (dspic33ep128gm604)

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

Moderator: Benj

Chip7882
Posts: 19
Joined: Tue Oct 02, 2018 7:23 am
Has thanked: 4 times
Been thanked: 1 time
Contact:

Compile Linker Error with 2 internal CANs (dspic33ep128gm604)

Postby Chip7882 » Fri Apr 03, 2020 10:37 am

Hello,
if i use both internal CANs, i get this Error Code..
Attachments
Flowcode8.JPG
Flowcode8.JPG (90.39 KiB) Viewed 153 times

User avatar
Benj
Matrix Staff
Posts: 14795
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4755 times
Been thanked: 4361 times
Contact:

Re: Compile Linker Error with 2 internal CANs (dspic33ep128gm604)

Postby Benj » Sat Apr 04, 2020 10:08 pm

Hello,

Thanks for letting us know. Hmm this error could be caused by a few different things but I have modified the CAL CAN C file and this has fixed the compilation error. It will likely break other devices so only use to solve this specific issue and I'll see if we can come up with something more permanent to solve the problem. Looks like because it has DMA we flag the RAM section as DMA compatible but there is no specific DMA compatible memory on your device as it's all available to the DMA. Very confusing :D

Simply copy the file here and hopefully your program will now compile and run.

"C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC16BIT"

PIC16BIT_CAL_CAN.c
(69.93 KiB) Downloaded 8 times


Let us know how you get on.
These users thanked the author Benj for the post:
Chip7882 (Mon Apr 06, 2020 10:23 am)
Rating: 5%
 

Chip7882
Posts: 19
Joined: Tue Oct 02, 2018 7:23 am
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Compile Linker Error with 2 internal CANs (dspic33ep128gm604)

Postby Chip7882 » Mon Apr 06, 2020 10:23 am

Hello Ben,

Thank you very much for your help, the compile problem is solved with your new file. :D

Best regards
Daniel