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.

TMS320F28027: LAUNCHXL-F28027

Part Number: TMS320F28027
Other Parts Discussed in Thread: CONTROLSUITE, LAUNCHXL-F28027, TMDSCNCD28027, BOOSTXL-C2KLED

Hello

There are few sample codes from F28069 controlSTICK (C:\ti\controlSUITE\development_kits\F28069 controlSTICK) but my hardware is only LAUNCHXL-F28027.

How to convert those codes to F28027?

Also I want to do simple "voltage mode" buck converter using this dev kit (LAUNCHXL-F28027), any sample code to play around?

Regards,

Victor

  • Hi Victor,

    You can instead navigate to :
    C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_examples_structs

    These are examples built for F2802x family.

    Regards,
    Gautam
  • Hello,
    I was trying to compile

    C:\ti\controlSUITE\development_kits\BOOSTXL_BUCKCONV\v1_00_00_00\Buck_VMC_F28069M

    After commenting all specific hardware declaration for F28069M, I got these errors:

    warning #10247-D: creating output section "ZeroNet_Section" without a SECTIONS specification
    warning #10247-D: creating output section "ADCDRV_1ch_Section" without a SECTIONS specification
    warning #10247-D: creating output section "PWMDRV_1ch_Section" without a SECTIONS specification
    warning #10247-D: creating output section "CNTL_2P2Z_Section" without a SECTIONS specification
    warning #10247-D: creating output section "DLOG_1ch_Section" without a SECTIONS specification
    warning #10247-D: creating output section "ramfuncs" without a SECTIONS specification
    warning #10247-D: creating output section "CNTL_2P2Z_Coef" without a SECTIONS specification
    warning #10247-D: creating output section "DLOG_BUFF" without a SECTIONS specification
    error #10099-D: program will not fit into available memory. run placement with alignment/blocking fails for section "DLOG_BUFF" size 0x190

    Since I added the files manually without the "F28069M_FLASH_DP_BoosterPack.CMD" and was using "28027_RAM_lnk.cmd" instead, do you have any advise how to go around this?

    I want to compile and program into my dev kit (LAUNCHXL-F28027) first before doing the Mainboard hardware.

    regards,

    Victor
  • Victor,

    Porting application code from one device to another will be more difficult than modifying another example that is already built for your target platform.

    Would you be able to use a Power Conversion example from this list that is built for F28027x?

    www.ti.com/.../tools-software.page

    Some work will be needed to port code from TMDSCNCD28027 to LAUNCHXL-F28027 because of different pin availability.

    -Tommy
  • Porting application code from one device to another will be more difficult than modifying another example that is already built for your target platform.
    >>> Why cant it be like Arduino Style? Just choose your target from dropdown list and compile and comment out the hardware that is not ralated to your target device?

    Would you be able to use a Power Conversion example from this list that is built for F28027x?
    >>> Our company already bought www.ti.com/.../tmdshvpsfbkit but the DC-DC buck converter is needed at the moment. I cannot find any example for F28027x that is buck converter.

    Regards,
    Victor
  • Hello,

    I saw this tutorial for F28027x, www.ti.com/.../sprabu4.pdf where is the project folder or the codes itself?

    regards,
    Victor
  • Victor,

    There is some Arduino-like development support here:

    However, I think that it is targeted more for hobbyists than for optimized, industrial applications.  There are some third party development products that may bridge the gap.  For example: MathWorks, solidThinking, and Powersim.

    -Tommy

  • Victor,

    I can't seem to find any examples codes for that app note either.

    Would a boost example be close enough to work for you? BOOSTXL-C2KLED is already made for LAUNCHXL-F28027.

    If not, porting may be the remaining option. Would the TIDM_BUCKBOOST_BIDIR reference design work? It is made for F2803x, which is a little closer to F2802x than F2806x (BOOSTXL_BUCKCONV).

    -Tommy
  • Hello,

    I am now building Boost converter and will use the code used for found in C:\ti\controlSUITE\development_kits\C2000_LaunchPad\f2802x_examples\LED_Boost_PC.

    As I was only trying to do voltage mode first and only one channel:

    1. what part of the codes should I comment out?

    2. what is now the voltage setting of "GREEN_ANODE"? What is the ref voltage of "VGREEN"?

    Most likely I would only be concentrating on the voltage feedback of one channel VGREEN first to start with.

    So I think I would b making my own INCR_BUILD = 3

    //===============================================================
    // Incremental Build options for System check-out
    //---------------------------------------------------------------
    #define INCR_BUILD 2    //1 - Open-Loop
                            //2 - Closed-Loop Current
                            //3 - 
    
    //----------------------------------------------------------------------
    #if (INCR_BUILD == 1)     // Open-Loop
    //----------------------------------------------------------------------
    
    // Lib Module connection to "nets" 
    //----------------------------------------
    
        // Boost 1 connections
        ADCDRV_1ch_Rlt1 = &AdcNetBus[1];
        PWMDRV_DualUpDwnCnt_Duty1A = &Duty1;
        // Boost 2 connections
        ADCDRV_1ch_Rlt2 = &AdcNetBus[2];
        PWMDRV_DualUpDwnCnt_Duty1B = &Duty2;
        // Boost 3 connections
        ADCDRV_1ch_Rlt3 = &AdcNetBus[3];
        PWMDRV_1ch_UpDwnCnt_Duty2 = &Duty3;
        // Voltage connections
        ADCDRV_1ch_Rlt9 = &AdcNetBus[9];
        ADCDRV_1ch_Rlt10 = &AdcNetBus[10];
        ADCDRV_1ch_Rlt11 = &AdcNetBus[11];
        ADCDRV_1ch_Rlt12 = &AdcNetBus[12];
    #endif // (INCR_BUILD == 1)

  • Victor,

    As you will create a new build level, there is no code to comments out.

    YOu will have to create your own incremental build level, and connect the feedback and controller input outputs accordingly.

    The Lib structure and working are doucmented here

    C:\ti\controlSUITE\libs\app_libs\digital_power\f2802x_v3.5\Doc

    Unfortunately, for DP apps our user experience is not very smooth, we are working on improving it, but on devices such as F2802x what we have is the most optimal and esssential for scaling the SW to advanced topologies for digital power.

    I am not familiar with this particular board, you might benefit from running the code and playing with the variables etc.
  • Hello,

    The board SCH can be found in C:\ti\controlSUITE\development_kits\C2000_LaunchPad\BOOSTXL-C2KLED\HwDevPkg.

    Vout of the Boost is divided down to 4.99K and 215Ohms. The description says Nominal Vout of 24V, so I guess Vfeed would be around 1V.

    Now my problem is, I compiled and burn into the device but no PWM outputs on PWM1A/B and PWM2A. I even use the PC Gui in C:\ti\controlSUITE\development_kits\C2000_LaunchPad\Example GUI, but there is still no PWM output. At this stage there is still no other hardware (boost converter circuit) connected to the launchpad, only launchpad.

    Does it need the actual hardware to init properly? If so, how to bypass this checking? Or VIN (ADCINB6) is being detected to turn on?

  • Not really sure, i have no experience my self with this hardware.

    Few things i typically check while debugging PWM issue

    1. Check TZFLG in the PWM registers, they should be all 0x00000, if not something is tripping the PWMs

    2. Check if PWM TBCTR is counting

    3. Check if PWM TBPRD is set correctly

    4. Check of PWM CMPA has some value

    5. Check PWM configuration 

    6. Check GPIO is set correctly for configuration as PWM

  • Hello

    I would assume that the codes are correct, I just import it from C:\ti\controlSUITE\development_kits\C2000_LaunchPad\f2802x_examples\LED_Boost_PC.

    Anyway, here is the ePW1 grp and the cntr is increasing and changing but not the CPMA which is used for duty 

     

    This is initially init

    (*ePWM[n]).CMPA.half.CMPA = 0;                // set duty 0% initially

    in void PWM_1ch_UpDwnCnt_CNF(int16 n, int16 period, int16 mode, int16 phase) but was not changed after run.