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.

Trying to access GpioDataRegs in Motorware

Other Parts Discussed in Thread: MOTORWARE, CONTROLSUITE

I'm trying to use GPIO data registers directly in Motorware,  just for diagnostic purposes so that I can measure the timing of routines on a scope.

I have used the motorware functions like HAL_setGpioLow but they are relatively very slow, which is not good for measuring timing. I found that HAL_setGpioLow takes about 0.6us to change the port line, which seems like a lot of 90MHz cycles (about 50) to change a port line, and I can't see what's taking all the time ?

When I try to use the data registers I'm getting an error message 

Description Resource Path Location Type
#237 variable "GpioDataRegs" was declared with a never-completed type .ccsproject /proj_lab13b_test line 502, external location: C:\ti\motorware\motorware_1_01_00_12_jwcamera\sw\drivers\gpio\src\32b\f28x\f2806x\gpio.h C/C++ Problem

and I don't know where the problem lies, so I'd be grateful for some advice

Thanks,

Geoff

  • Hello Geoff,
    Did you already install ControlSuite in your PC?
    Did you already include "#include"DSP28x_Project.h" in your code? This refers to ControlSuite header files so you will need to put the path in Project Properties. GpioDataRegs declaration is from there (ControlSuite path), not from Motorware path.
    Hope this helps.

    Best regards,
    Maria
  • Hi Geoff,

    As Maria suggested, simply install controlSuite and refer to this example: gpio_toggle (for F28069) that can be found here

    C:\ti\controlSUITE\device_support\f2806x\v140\F2806x_examples_ccsv5\gpio_toggle

    Regards,
    Gautam