Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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 Kit example code problems

Other Parts Discussed in Thread: DRV8312, CONTROLSUITE, TMS320F28069, MOTORWARE, TMDSCNCD28035ISO

Hi,

I am using drv8312 kit in CCSv5 and i am stepping through PM_Sensorless project. I seem to be running into some problems. I received an error while trying to step through build level1. Here is a list of the instructions that i followed:

1. all jumpers are in correct position (SW1 both ON, SW3 both ON), JP1 VR1, M1 H, RSTA, RSTB, RSTC in middle position.

2. connect USB cable and 24V supply, all LEDs light correct

3. open CCSv5 and load PM_Sensorless Project from ControlSuite

4. do "#define   BUILDLEVEL LEVEL1"

5. Set Active Build configuration to F2806x_RAM

6. View -> new target configuration: Connection to XDS100v1 USB emulator, Board to TMS320F28069; Test connection succeded; then i linked Target to the projekt (.ccxml file appeared in the project folder)

7. then i launched debug session and added the necessary variables in the expression tab

8. Then i reset the CPU, restarted, enabled real time silicon mode and real time polite mode.

Here comes the problem. The program doesnt run and there is a window with the errer message "No source available for "0x3ff4fa"" and when i view dissasembly the program seems to be in the ESTOP0. Also the values of the variables are very unlikely (i. e. Enable Flag: 2698, SpeedRef: -3.143824e-13 or so). When i reset the CPU there cames the error message:

Trouble Reading PC Register:
(Error -1142 @ 0x0)
Device blocked debug access because it is currently executing non-debuggable code. Choose 'Rude Retry' to disable polite mode and force the operation.
(Emulation package 5.0.747.0)

When i started the program for the first time i ran correctly. I was resetting the CPU while the real time silicon mode and Polite mode were enabled. I guess that is not allowed.

I reseted the CPU for a few times, also loaded the project new and installed CCSv5 again, but there is always the same mistake. Whats the mistake? Can anybody tell me how to reset the registers to their original values and the proper way to reset the CPU and code as it seems i did not do them correctly?

  • what version of CCSv5 are you using, and what compiler version is listed? We've seen some issues with 5.5 and 6.2.x

    which 69x controlCARD do you have?  69ISO, 69MISO?

     

  • Hi,

    thank vou for your reply. The compiler Version i use is TIv6.1.0, the CCSv5 version is 5.2.1.00018.

    In the delivery note of my control card the card is listed as TMDSCNCD28069MISO. On the Control card is listed F2806x ISO control Card Release 0.2 with the processor TMS320F28069MPZT.

  • Bernhard,

    Did you purchase DRV8312-69M-KIT (comes with TMDSCNCD28069MISO) or DRV8312-C2-KIT (comes with TMDSCNCD28035ISO)?  The 35ISO card is supported through the controlSUITE project you are using. The 69MISO card is supported through MotorWare.

    If you are attempting to use an 069 MCU with the controlSUITE project, this is usually allowed, you just have to change the build settings to use the 69 instead of the 35. Did you do that?

    However - and I'll have to check this myself later today - I believe the issue is that you are using a 69M version of the silicon.  This silicon is meant for the InstaSPIN-FOC and InstaSPIN-MOTION solutions using MotorWare (vs. the controlSUITE projects).  One of the silicon differences with these "M" devices is that the IQMath routines are no longer in on-chip ROM, you must add the IQMath library to your source project.  When I get a chance I'll try to duplicate this issue.

    You may want to try downloading MotorWare, importing, building, loading, and running

    C:\ti\motorware\MotorWare_1_01_00_09\sw\solutions\instaspin_foc\boards\drv8312kit_revD\f28x\f2806xF\projects\ccs5\proj_lab02a

    the instructions for this are at 

    C:\ti\motorware\MotorWare_1_01_00_09\docs\labs\instaspin_labs.pdf

    This will at least confirm your hardware is all functioning correctly.

    Is there a reason you aren't using the InstaSPIN solutions?

  • Hi,

    i thought i use the drv8312-c2-kit, but actually it is the drv8312-69m-kit.

    I installed MotorWare and now it is running.

    Thank you for your help.