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.

Project source code for control DRV8301 thru SPI interface. Does it support controlSTICK Piccolo F28027 ??

Other Parts Discussed in Thread: DRV8301

Hi,

I've seen some c source code (*.c files) for BLDC motor control based on DRV8301. Can these existing source code support my controlSTICJ Piccolo F28027 ??  It can save much time to develop the control code to control DRV8301 thru SPI interface. Thanks!

  • Hi Jordda,

    I have moved your thread to the C2000 Forums. They will better be able to answer your question.

    -Nick

  • Jordda,

    Software-wise, you should be able to reuse much of the project.  Functionally, the F28035 and the smaller F2802x family are very similar.

    The main things you'll need to do:
    - change around the f2803x-based include files to the f2802x-based include files
    - change the linker command file to one designed for the f2802x.
    - some software will need to be changed & some 'extra' features may need to be eliminated because the f2802x is a smaller and less-peripheral rich part:

    * the amount of PWM-DACs (F2802x only has ePWM modules 1-4) must be reduced
    * you'll need to use SPIA to communicate to the DRV8301 (the F2802x only has SPIA).  This will make you also need to use different GPIOs
    * there are likely other things like this that would need to be done

    Thank you,
    Brett