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.

Compiler/C2000WARE-MOTORCONTROL-SDK: is07 on standalone mode doesn't work

Part Number: C2000WARE-MOTORCONTROL-SDK
Other Parts Discussed in Thread: LAUNCHXL-F280049C

Tool/software: TI C/C++ Compiler

hello,

I drive motors with CCS, and i want to use the flash mode, in order to make this practice without a computer. I have add some GPIO to control the rotating way and the speed. The initial is07 program doesn't work in flash mode because as soon as I unplug the current source and replug it, it doesn't work anymore. i retried without unplug the JTAG connexion, and the "moduleOverCurrent" became "1" as soon as I unplug the current. It's not suprising but maybe we could change it. 

I have think about a GPIO which can control the variable "motorVars.flagRunIdentAndOnLine" but I failed. The GPIO is well wire, I can see it when i press the button, the concerned line (GPIO 0's line ) takes value "1" but the"motorVars.flagRunIdentAndOnLine" don't evolve at all.

Here was my code lines for a simple test (to see if i can influence a variable with a GPIO as simply as I guessed) :

GPIO_setPadConfig(0,GPIO_PIN_TYPE_STD);

GPIO_setDirectionMode(0,GPIO_DIR_MODE_IN);

if(GPIO_readPin(0)== true)

{motorVars.flagRunIdentAndOnLine = 0;

}