• AVR Freaks

Hot!Looking to get CAN for dsPIC33EV starter kit board through Simulink

Author
Poley
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2020/06/16 08:39:05
  • Location: 0
  • Status: offline
2020/06/22 02:40:57 (permalink)
0

Looking to get CAN for dsPIC33EV starter kit board through Simulink

I am looking to initialise CAN and transmit/receive messages. I have tried following methods using C Caller blocks but I just can't seem to make it work. 
 
Does anyone have an experience with this and could help me please? Thanks!
#1
bmckay
Technical Marketing
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2020/03/09 07:23:31
  • Location: Boston, MA
  • Status: offline
Re: Looking to get CAN for dsPIC33EV starter kit board through Simulink 2020/06/22 07:32:06 (permalink)

Brian McKay
Technical Marketing
MathWorks
#2
Poley
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2020/06/16 08:39:05
  • Location: 0
  • Status: offline
Re: Looking to get CAN for dsPIC33EV starter kit board through Simulink 2020/06/22 07:34:51 (permalink)
0
bmckay
Did you look at this? 
https://www.mathworks.com/matlabcentral/fileexchange/71892-mplab-device-blocks-for-simulink-dspic-pic32-and-sam-mcu
 
-Brian




Thanks for the reply!
 
Yeah I have this installed and can flash the board using these blocks. Just can't get CAN communication working with them
#3
Poley
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2020/06/16 08:39:05
  • Location: 0
  • Status: offline
Re: Looking to get CAN for dsPIC33EV starter kit board through Simulink 2020/06/22 08:04:52 (permalink)
5 (1)
I am also getting the issue that my .c isn't finding signal declarations that are included in my .h chip file, even though it has been included on the config
 
Won't let me edit my previous comment to add this for some reason!
#4
bmckay
Technical Marketing
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2020/03/09 07:23:31
  • Location: Boston, MA
  • Status: offline
Re: Looking to get CAN for dsPIC33EV starter kit board through Simulink 2020/06/22 11:18:46 (permalink)
0
@Lubin might be able to assist with this.

Brian McKay
Technical Marketing
MathWorks
#5
Poley
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2020/06/16 08:39:05
  • Location: 0
  • Status: offline
Re: Looking to get CAN for dsPIC33EV starter kit board through Simulink 2020/06/22 14:14:26 (permalink)
0
Would really appreciate the help!

In regards to my issue on .h, I think it is pulling the header in but for some reason it isn’t defining them properly. https://ibb.co/44f5xVG
#6
Poley
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2020/06/16 08:39:05
  • Location: 0
  • Status: offline
Re: Looking to get CAN for dsPIC33EV starter kit board through Simulink 2020/06/25 02:28:29 (permalink)
0
.
post edited by Poley - 2020/06/25 02:30:52
#7
Jump to:
© 2020 APG vNext Commercial Version 4.5