ECAN on dsPIC33EV

General discussion on mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Patrick.gamotec
Posts: 1
Joined: 16 May 2022 11:59

ECAN on dsPIC33EV

#1 Post by Patrick.gamotec » 16 May 2022 12:18

Hi guys,
I'm new to the forum and without much experience !!
Due to the scarce availability of the chips I had to redesign some boards that I used for automotive, usually I use the PIC18F66K80 chip which has the CAN module inside, now I was able to buy some dsPIC33EV256GM106 which has an ECAN inside.
In the various examples present in the compiler I found ECAN_1st.mbas, this example would seem to be able to adapt with small changes to the dsPIC33EV chip but when I try to set the memory location using the "ECAN1DmaChannelInit" command, the compiler generates a syntax error !!
I'm using the command (as in the example):
ECAN1DmaChannelInit (0, 1, @ ECAN1RxTxRAMBuffer)
ECAN1DmaChannelInit (2, 0, @ ECAN1RxTxRAMBuffer)
the addresses are set in the ECan_Defs.mbas file
Smpra like that the ECAN1DmaChannelInit command does not work with the dsPIC33EV, if I try to compile the example using the dsPIC33EP512MU810 CPU it executes it without errors !!
Can anyone help me?, Can you tell me what am I wrong?
Thanks 10000

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: ECAN on dsPIC33EV

#2 Post by filip » 19 May 2022 09:14

Hi,

I believe I have answered you on our HelpDesk, so lets please continue there.

Regards,
Filip.

Post Reply

Return to “mikroBasic PRO for dsPIC30/33 and PIC24 General”