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.

program of control in InstaSPIN BLDC GUI project

Other Parts Discussed in Thread: CONTROLSUITE, MOTORWARE

Hi, good day. I am programing in my development tool DVR8301-69M-kit, a control of a BLDC motor and i found some code that develop this control, but i don't understand all of this code.

This program are located in : C:\ti\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v104\GUI_project_InstaSPIN_BLDC. with this name: InstaSPIN_BLDC_GUI_project. The specific question about the code is for this function that develop the control "PID_GR_MACRO()", that use some operations that for me no are clear and i would like know how is this control and all of them.

I don't know if you have some text that can explain me step by step the method or if you have all the information about the mathematics operations that are here.

  • david,

    I assume you are aware that the 69M controlCARD you have is capable of www.ti.com/instaspin-foc and www.ti.com/instaspin-motion , but if you want to use for www.ti.com/instaspin-bldc you can.

    1. work from

    C:\ti\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v104\InstaSPIN_BLDC

    2. you can right click on the imported project and select the F2806x build

    3. The F28069M device does NOT have IQMath tables in the same loction in ROM as the standard F28069 devices, so you will have to update the path for IQMath (add the actual library from controlSUITE) to the project.

    It should work after that.

     

    For docs, please review

    C:\ti\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v104\InstaSPIN_BLDC\~Doc

    C:\ti\controlSUITE\libs\app_libs\motor_control\math_blocks\v4.2\~Docs

    C:\ti\controlSUITE\libs\app_libs\motor_control\drivers\f2803x_v2.1\~Docs

    (note that there is no driver library for F2806x, but we updated the onese required in the project itself)

     

  • Hi, have a good day

    I finished my program in this control card and my project operated very well, but i have some inconvenient with the form that is loaded the program in the MCU.

    In fact i had my program configurated to operate in real time, i have active the DEBUG option in the build configurations for this, and i can work with my PC. But in this moment i need load the program that i developed in the control card or more exactly in the MCU, for develop this code my project without PC. For this, i changed the build confuguration to active REALISE, and i can work without my PC perfect, but when i turn off the power source of the control card and after this i turn on the power source, the program is lost, the program not are in the MCU. The program is erased when i turn off the power source.

    I need that this program can be loaded always in the MCU, independient if i turn off or not the power source of my card. I need that this program can will be save in the MCU alway,

    Thanks for your help.

    Please tell me if have a solution.

    Regards

    David Becerra

  • in MotorWare, with the F2806x projects, RELEASE refers to the project running from RAM.  You can change this to load to FLASH if desired. Right click on the project:

    on your controlCARD the switches should default to let you boot to flash, but if you see issues check the switches per the HW Guide for the controlCARD.

  • Hi Chris,

    In fact the build configuration that you are show me (Build Confg = Release), i did this but the operation is the same. I think that the problem is with the position of the switches of the controlCARD.

    For this i looked the Hardware Guide for this controlCARD and i found this, but i don't understad what is the position of the SW1 that i need:

      

    And the position of the switch that i have in this moment are:  SW1 [1 1] (default)

    ¿You can tell me the position of the the switch 1 (SW1) to boot the card with my project please?

  • SW1 is correct

    look at SW3 though

    SW3: TRST/ ISO SCI communication signal enables

    Position 1:6

    ON - TRST signal from ISO JTAG circuit will be connected to F2806x. Needed during JTAG debug using ISO JTAG.

    OFF - TRST signal from ISO JTAG circuit will NOT be connected to F2806x. Needed when the application is running from flash at power up without the JTAG connections.

  • ok, in conclution i just need have the switches like this:

    SW1  (defauld)

    position 1: ON

    Position 2: ON

    SW3 :

    Position 1: OFF

    Position 2: ON

    This is correct for save my progam in the controlCARD?

  • I believe it's correct. This is for booting and running from flash, with no JTAG connection.