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.

CCS/TMS320F28379D: Changes for migrating from piccolo to delfino

Part Number: TMS320F28379D
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

Tool/software: Code Composer Studio

Hello There

I am trying to run PFCHV2PHIL project C:\ti\controlSUITE\development_kits\HVPFC2Phil. Which is in piccolo but I wanted to run it in Delfino. I have posted a similar question but still suffering. TI said that I need to change some header files and also change the path for the compiler as well as linkers corresponding to Delfino. So in this thread, we will only discuss changing files, not the path. For path, we can create another thread if you want. Here I have shared the image of old piccolo main.c.

Here As you can see the 

#include "PFC2PhiL-Settings.h"
#include "PeripheralHeaderIncludes.h"
#include "DSP2802x_EPWM_defines.h" //F2837xD_EPwm_defines.h

#include "DPlib.h"
#include "IQmathLib.h"

so,

PFC2PhiL-Settings.h file I don't need to change because it is not related with piccolo or Delfino

then 2nd include file is PeripheralHeaderIncludes.h for piccolo but the corresponding file of this in Delfino I couldn't find in the C2000ware.


Then 3rd is DSP2802x_EPWM_defines.h for piccolo and I found it for Delfino is F2837xD_EPwm_defines.h I think it's correct right?


Then 4th and 5th DPlib.h and IQmathLib.h are they related to the Delfino or Piccolo?

 

Any other changes do you see that need for the migration process in main.c file?


  • Avi,

    There is no need to update the IQmath lib as that is a device agnostic library. However, you will need to update the path for DPlib as there is a library and supporting files for each device. For the F2837xD device the path is, controlSUITE\libs\app_libs\digital_power\f28x7x_v1.0. Since there is no device equivalent for the PeripheralHeaderIncludes.h file, I would recommend that you observe the contents of the file and import the necessary peripheral header files for the application. You can then comment out the line that includes that file.

    Once you make the necessary changes and updated the include and file search paths, try to build the project and work through resolving any errors.

    Regards,

    Ozino

  • Thank you Ozino for your reply. I am having questions related to the peripheral header file. I will find "Include Peripheral Header Files" section c2000 ware but the problem in a section of "CPU Timer Definitions", "Common CPU Definitions" & "Definitions For 16-bit and 32-Bit Signed/Unsigned Integers" of Peripheral header file. I have also attached the screenshot of that file so you will have a better understanding of the question. So how I can change that section? Can You please guide me.

  • I would recommend that you copy the relevant sections from that file into your main.c file. I will recommend that you follow the setup of the HV_1PH_DCAC (development_kits\HV_1PH_DCAC\v1_04_00_00\f2837x\voltagesourceinvlcfltr\hv1phdcac_board.h) or other F2837xD based development kits. These designs includes aspects of the peripheral header files.