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-69M-KIT: Question about lab05b

Genius 3095 points

Part Number: DRV8312-69M-KIT

Dear Yanming:

I have two question about:

1. If I set "gMotorVars.Flag_enableOffsetcalc = true;" The chip will identify the offset of the motor. So, how long is the identification time? Can I reduce identification time?

2. I have already know that setting "gMotorVars.Flag_enableSys = 1" and "gMotorVars.Flag_Run_Identify = 1" in the Expressions window can make the moter run in RAM mode. But how to make motor run in flash mode (Without CPU connection)? I have tried to set: ①. gMotorVars.Flag_enableSys = true; at line 183, and ② set gMotorVars.Flag_Run_Identify = true; at line 360, but it doesn't work.

Best regards

  • 1. The default time is 5 sec. You might use a low value if the ISR frequency is high, but at least 2 sec we recommend.

    2. There are two build configurations for each project, one is "Release" for running code in RAM, one is "Flash" for running code in Flash. You should use the "Flash" build configuration by select "Project->Build Configurations->Set Active-> 1 Flash", and set the boot mode to "Boot from Flash" by setting the related GPIOs on the hardware board.

    If you haven't had a chance to look at the workshop material, I think this will help demystify some of the terminology and architecture as well.

    https://training.ti.com/c2000-mcu-device-workshops