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.

Questions about the DRV8312 kit

Other Parts Discussed in Thread: DRV8312, TMS320F28335, CONTROLSUITE, INSTASPIN-BLDC

Hello,

 

I have some questions about the DRV8312 kit.

First, can we use another PMSM than the one given with the kit ? I think about a 7.5 V 2A max motor.

How the currents are measured ? (Low side shunt + OPA ?)

Because, I haven't found any schematics about this kit.

May I change the ControlCard by a TMS320F28335 ?

Have you tried sensorless Direct Torque Control with this kit ?

 

Thanks in advance.

Marc

 

  • First, can we use another PMSM than the one given with the kit ? I think about a 7.5 V 2A max motor.

    * That voltage is on the bottom end of the DRV8312 capability I believe. But in general you can use any motor the power stage can handle. You'll have to make adjustments in the code.  For FOC it's not automated...yet....

     

    How the currents are measured ? (Low side shunt + OPA ?)

    *Yes, low side shunt + OPA

    Because, I haven't found any schematics about this kit.

    *www.ti.com/controlsuite under the DRV8312-C2-KIT     Kits

    May I change the ControlCard by a TMS320F28335 ?

    *Yes.

    Have you tried sensorless Direct Torque Control with this kit ?

    *No, we don't typically do DTC, leave that to ABB :) although you could, especially with F28335.  We do the more standard transform + PI + space vector hexagon torque control.

     

  • Hi Chris,

    I was hoping you might be able to point me to some code for the TMS320F28335. Is there anywhere that I can download the instaSpin project for the TMS320F28335?

    I have the DRV8312 kit, and I also have the TMS320F28335 control card, and I'm hoping to get some code to load onto the 28335 to plug into the DRV8312. Any help would be appreciated!

    Regards,

    Bruce.

  • Bruce,

    No plans to add a specific SW package for F28335. InstaSPIN-BLDC is targeted more for the lowest end MCUs.

    I believe that if you take the F28035 or F28069 project and just remap the ADC and PWM pins, change the clock settings, etc. all the main code will run on F28335 though. 

  • Sounds good, I had already started down that path actually!

    Thanks very much for the response Chris.

  • Bruce,

    I am in the same situation as you were. I am using the DRV8312 kit with a F28335 control card. I was wondering if you could supply the base code you may have developed based off the example code as to help me out? It would save me some time and I would really greatly appreciate it!

    Thanks,

    Hale

  • Hi Hale,

    Sorry to say that project got put on hold for me pending some hardware issues I am working out, so I don't really have any code right now I can share with you.

    I'm hoping I should be able to get back to it over the next few weeks so I'll let you know when I have something. If you get around to it before I do, I'd love to see what you come up with as well.

     

    Thanks,

    Bruce.

  • Well, I've been working on trying to configure the files correctly for the '28335 control card, but I seem to be running into some problems. I have changed all the needed ADC and PWM pin outs and clocks, but after I enter debug mode, I can't get it to work on BUILDLEVEL1. I think it is a problem with the memory map file as I get an error during memory (see below)

    Trouble Writing Memory Block at 0xc013 on Page 1 of Length 0x1:
    Error 0x00000002/-1142
    Error during: Memory,
    Processor blocked debug accesses. An operation was attempted while
    the CPU was in a non-debuggable context. To continue to honor the debug
    context, press Cancel. To force debug access, press Rude Retry.

    I am using the "boot_rom.map" file that I found in the Control Suite software, as well as the "28335_RAM_Ink.cmd" and "DSP28335x_Headers_nonBIOS.cmd" linker files. Am I doing this correctly?

    Thanks,

  • I think you are on the right track that this is a memory allocation issue. You need to see how the linker command file you are using (presumably the one from an F28035 project) is setting the memory allocation when you use with an F28335 device. Flash vs. RAM and actual addressing.

     

  • Ok, well I now have the memory allocation properly set up for the 'F28335 control card. I am able to enter debug mode with no connection problems and run the code smoothly. My only problem now is that the code never enters MainISR to increase the IsrTicker in BUILDLEVEL1. I don't think the interrupt flag is being set correctly, but I am not sure why as that code should be the same for both control cards. Any suggestions?

    Thanks,