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.

DRV8312 Piccolo - DRV8312EVM - Toggle LD2

Other Parts Discussed in Thread: DRV8312

Hi
I am looking for a little support on your product. I am using the following dev kit.
DRV8312 Piccolo(tm) Series Power Management, Motor Control Evaluation Board
TMS320F28035PNT
DRV8312EVM with CC2803x

I would like to toggle a LED on my controlCARD every 500msec. I have a spare LD2 on my controlCARD. How do I toggle that LED every 500msec?


I am using InstaSPIN_BLDC_GUI project to do my code change.
According to the documentation below. It is supposed to be GPIO-31 (LD2); but I can't compile the code if I use GPIO-31. I get an error...

BLDC_Int_GUI_DRV83xx.c", line 838: error: struct "GPBDAT_BITS" has no field "GPIO31"


http://www.ti.com/lit/ug/tidu318/tidu318.pdf

controlCARD Settings
* LD1 - Turns on when controlCARD is powered on
* LD2 - controlled by GPIO-31
* LD3 - controlled by GPIO-34
* LD4 - USB-mini connection
* SW2 - controls the boot options of the F28035 device

Below is my code snippet for controlling LD2...

if(CpuTimer0Regs.TCR.bit.TIF == 1)
{
CpuTimer0Regs.TCR.bit.TIF = 1; // clear flag

//-----------------------------------------------------------
GpioDataRegs.GPBTOGGLE.bit.GPIO31 = 1; //Toggle GPIO31 (LD2)

// GpioDataRegs.GPBTOGGLE.bit.GPIO34 = 1; //turn on/off LD3 on the controlCARD

//-----------------------------------------------------------
}

A quick response is highly appreciated. Please let me know how I can resolve this issue.
Thanks