This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Using CANBUS on the 69M-KIT Development Board

Other Parts Discussed in Thread: CONTROLSUITE, MOTORWARE

Does anyone have some example code for configuring and using the CANBUS interface on the 69M-KIT board with the Instaspin and SpinTAC labs code ?

Thanks

Geoff

  • Geoff,

    I was hoping someone on the board would post, but it seems most people just come here to get questions answered then leave, the don't stick around to share.  I know a couple people have done this, but I believe they ended up using the CAN examples from controlSUITE as the MotorWare drivers were incomplete (we are working on this for release _14 in the fall).

    We also have a 3P who sells various CAN stacks who will be providing some examples that run in MotorWare and directly interface to the MotorWare variables.  I've forwarded this thread to them to see if they want to comment on timing.  

  • Chris,

    I saw your previous post on this suggesting use of "Example_2806xECanBack2Back" ( I think), and I did have a go at using this, but fell at the first fence, when I got an error message saying that "DSP28x_Project.h" couldn't be found.

    Could you possibly help me out here with a step-by-step Idiot's Guide on how to use this with the 69M-KIT ?

    Obvious questions for me are where I find any missing files appropriate to running this on the 69M, roughly what this program is supposed to do, and some idea of how to convert it to receive external CAN messages from another external device. What's the best TI documentation to look at on setting up the ecan peripheral, etc. ?

    Sorry to be a bit dumb on this but without some pointers I just find myself spending hours wading through documentation and generally getting more confused, rather than less.

    Thanks,

    Geoff

  • Geoff,

    it looks like this person used the controlSUITE example with 69M effectively

    http://e2e.ti.com/support/microcontrollers/c2000/f/171/p/343388/1203071.aspx

    I apologize that the MotorWare version isn't up to par yet.

     

  • Chris,

    I've got the example you suggested going and I contacted the guy who did this, and asked him whether he ever managed to get the ecan code integrated into a motor control program. He said he started to but hasn't finished, which on the basis that he sounds smarter at this than me, is a bit worrying.

    Before I even attempt to do this, do you think I've got a major job on my hands to get the ecan going with the Instaspin code. I may even still be trying to do it when you bring out your new Motorware, complete with ecan code !

    I need to get a position demand signal into the board somehow, so even if it's only a temporary measure, would I be better doing it via SPI for instance ?

    Geoff

  • Geoff,

    While not ideal, using the eCAN driver and example code from controlSUITE is certainly feasible. The software guys say this is pretty straight forward even with mixing the two sodtware styles. I would get just the example working from controlSUITE and then merge the code into your motorware project.