Page 1 of 1

Compile Linker Error with 2 internal CANs (dspic33ep128gm604)

Posted: Fri Apr 03, 2020 10:37 am
by Chip7882
Hello,
if i use both internal CANs, i get this Error Code..

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

Posted: Sat Apr 04, 2020 10:08 pm
by Benj
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
(67.67 KiB) Downloaded 158 times
Let us know how you get on.

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

Posted: Mon Apr 06, 2020 10:23 am
by Chip7882
Hello Ben,

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

Best regards
Daniel