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.

DRV 8312 connection

Other Parts Discussed in Thread: DRV8312, LM3S818

Hi

I am trying to use simulink to program "3-Phase BLDC Motor Kit with DRV8312 and Stellaris MCU". In CCV5 when I select "connection" and the "board or device" ( I think I don't select the correct one I have select many of them ) and do "lunch the selected configration" I get this error " Uknown ... disconnected " I am talking about 1:19 of this video by mathlab https://www.youtube.com/watch?feature=player_embedded&v=AY4GzMLl30A

I have selected texas  instruments XDS100(all versions and many others) usb emulator  as connection and for board or device i have selected  developer's kit motor control and PFC (F8035).

I need some help for that?

Thank you

  • Hi,

    a few comments to start and hopefully help clarify/help us to help you:

    - what ccs exact version are you running?   Note that matlab support comes from mathworks and though they do offer tools for ccs, the v5 tools are limited.

    - what exact hardware do you have?  This might be the cause of your problem.  You mention on a stellaris mcu, however the F28035 is actually a C2000 part .... can you please clarify and verify and ensure your settings reflect the correct part

    Best Regards,
    Lisa

  • I have Version: 5.2.0.00069  CCS.

    and I have this http://www.ti.com/tool/dk-lm3s-drv8312.

    thank you

  • Hi Bahman,

    ok, you do have a stellaris part.   So what would help would be to have a bit further information.

    - how have you configured your setups?  Target configuration, project etc

    - do you only have this one board connected and have you checked for any driver issues?  If you have multiple hardware plugged in, typically you are not guaranteed which board ccs ends up selecting.

    Best Regards,
    LIsa

  • I did the target configuration and select the connection and the device

    I just have this board connected.

  • Hi Bahman,

    can you please provide us details on how you did the setup/configuration?

    Best regards,
    Lisa

  • I did exact same shown on the video min 1:04

    https://www.youtube.com/watch?feature=player_embedded&v=AY4GzMLl30A

    Thank you

  • Hi Bahman,

    this video demo shows configuration for a C2000 part, not the stellaris you have.  You need to be sure you select the parts you have and not what the video shows.  In fact the video mentions to select the appropriate part for your situation.

    Please make sure you select the emulator and stellaris part you have.

    Best Regards,
    Lisa

  • I get this error when i test the connection after saving the connection and selecting the device

    my selection for "connection" and "board" is as described in the first post. 

    The explanation is:
    One of the FTDI driver functions used during
    the connect returned bad status or an error.
    The cause may one or more of: invalid emulator serial number,
    blank emulator EEPROM, missing FTDI drivers, faulty USB cable.
    Use the xds100serial command-line utility in the 'common/uscif'
    folder to verify the emulator can be located.

    [End]

  • You have not provided details of your setup so ... depeding on the age of your kit, one possibility is you have the version with

    emulator xds100v2

    part lm4f211

    Best regards,
    Lisa

  • Hi Bahman,

    this is what I suggest next, rather than following an old c2000 video on an old ccs version.

    1- verify (and please let us know if this does not help) your stellaris part number

    2 - try a build in example.  either an example in the new project wizard like blink the led (project->new ccs project) or else a stellarisware example for you part/kit.  Make sure this is ok

    3 - move on from there to the bldc examples

    the test connection button does not always refeclect the true state of the connection.

    Best Regards,
    Lisa

  • Hi lisa

    I have used your suggestion still same problem.

    on the information page http://www.ti.com/tool/dk-lm3s-drv8312 about motor kit it provided the controller is  "Stellaris 50-MHz ARM® Cortex™-M3 LM3S818 microcontroller with onboard Stellaris In-Circuit" so i have also selected this one no response. I used the following too

    piccolo F2835 

    TMS320 F28035

    the problem is the device and the controller are not able to establish connection.

    I can see "CC2803X"  ISO DIMM REV 1.3   on the board. and the main chip is "TMS320 F28035PNT"


  • Hi

    what happens if you go to project->new ccs project and fill out as below to try the hello world application under basic examples?  If that does not work, I suspect there may be a driver issue.  In which case, since there were known issues in some previous releases, I would recommend using the latest ccs release which is v5.4.

    Please keep us informed.

    Best Regards,
    Lisa

  • I get this error 

    Error connecting to the target:
    Frequency is out of range.

    Haven't tried it with 5.4 yet.

  • Hi Bahman,

    ok I would check the physical connection and jumper settings.   If that does not solve the issue, then I would make sure to try v5.4.  Install this fresh into a new simple directory like c:/myccs with antivirus turned off.  can you send the ccxml file?

    Another test you can do as part of debugging is to see if you can connect with the lm flash programming tool.    Lets get your stellaris board working first and then we can move on from there.

    Best Regards,
    Lisa

  • Hi

    After doing all steps still getting this error:

    CORTEX_M3_0: Error connecting to the target: Frequency is out of range.

    Thanks