ECAN on dsPIC33EV
Posted: 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
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