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.

DRV8825 Source code for the MSP430 in the Appication SLVC502

Other Parts Discussed in Thread: DRV8825, MSP430F1612

I am looking for the source code (preferably C) for the MSP430 used in the Application SLVC502 on the Development kit DRV8825. The software download only has the GUI and does not include the MSP430 code if I need to reload it.

Also, I would like the source code as examples of using the motor control functions for my new application.

Regards,
LDT

  • LDT said:
    I am looking for the source code (preferably C) for the MSP430 used in the Application SLVC502 on the Development kit DRV8825. The software download only has the GUI and does not include the MSP430 code if I need to reload it.

    http://www.ti.com/lit/sw/slvc502/slvc502.zip contains Board Files\CPG004_RB_MSP430F1612_Firmware_LMD_TI.zip. Is that the source code you were looking for?

  • Yes, this is what I was looking for. Thank you.

    It says "Built with IAR..." Can this be ported to CCS without changes?

    LDT

  • LDT said:
    It says "Built with IAR..." Can this be ported to CCS without changes?

    I agree the comments say "Built with IAR". However:

    a) The CPG004_RB_MSP430F1612_Firmware_LMD_TI.zip doesn't contain any IAR (or CCS) project files, it only contains .h or .cpp source files.

    b) From a quick search of the source code I can't see any conditional compilation dependent upon the compiler used.

    c) Using CCS 5.4 an empty project was created for a MSP430F1612 device and the source files from CPG004_RB_MSP430F1612_Firmware_LMD_TI.zip added. The project compiled and linked without errors. (There were some warnings, but only from the ULP advisor rather than the compiler)

    Therefore, it does appear the source code can be ported to CCS without changes. Note that I haven't got a DRV8825 so am unable to test that the compiled project works.

  • Thank you.

    One additional question.

    I wanted to read and save the current code from the MSP device before I loaded new code and possibly lose the function. But, it appears the Flash Programmer can not read memory. I expect the Debug controls are disabled. I looked for a hex file in the Board files folder but not there.

    How do I enable Debug and save the current memory for future reload?

    LDT

  • LDT said:
    How do I enable Debug and save the current memory for future reload?

    Rather than using CCS for this, it is easier to use the free version of Elprotronic Fet-PRO430.

    FET-Pro430 allows you to read the contents of flash from a device, save it to a hex file, and re-program into another device if required.

  • Is there any other firmware example for DVR8825? The code in the slvc502 has very few  comments and very hard to follow and understand.

    LDT

**Attention** This is a public forum