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.

LAUNCHXL-F28379D: I need help with unlocking the Launchpad Configuration when I use the LAUNCHXL-F28379D imported projects

Part Number: LAUNCHXL-F28379D

Tool/software:

How do I find the project settings that select the  _LAUNCHXL_F28379D and hence be able to use the settings defined under this section?
Currently with the example projects that I have imported, I am not sure how the #else part (ControlCARD Configuration) is selected ? I want to select the part under _LAUNCHXL_F28379D
// Launchpad Configuration
#ifdef _LAUNCHXL_F28379D
 
// 10MHz XTAL on LaunchPad. For use with SysCtl_getClock().
#define DEVICE_OSCSRC_FREQ          10000000U
 
// Define to pass to SysCtl_setClock(). Will configure the clock as follows:
// PLLSYSCLK = 10MHz (XTAL_OSC) * 40 (IMULT) * 1 (FMULT) / 2 (PLLCLK_BY_2)
#define DEVICE_SETCLOCK_CFG         (SYSCTL_OSCSRC_XTAL | SYSCTL_IMULT(40) |  \
                                     SYSCTL_FMULT_NONE | SYSCTL_SYSDIV(2) |   \
                                     SYSCTL_PLL_ENABLE)
 
// 200MHz SYSCLK frequency based on the above DEVICE_SETCLOCK_CFG. Update the
// code below if a different clock configuration is used!
#define DEVICE_SYSCLK_FREQ          ((DEVICE_OSCSRC_FREQ * 40 * 1) / 2)
 
// ControlCARD Configuration
#else
 
// 20MHz XTAL on controlCARD. For use with SysCtl_getClock().
#define DEVICE_OSCSRC_FREQ          20000000U
 
Please help me with this, I need this to use settings under _LAUNCHXL_F28379D and set my clock to 100MHz or 200MHz
  • Hi Sourabh,

    Our examples typically come with multiple Build Configurations, such as to support LaunchPad hardware. You can find the build configuration by right-clicking the project and then select Build Configuration > Set Active > LAUNHCHXL build.

    If that isn't present for the example you are using, you can add the _LAUNCHXL_F28379D predefined symbols by right clicking the project and going to Properties. Then go to Build > C2000 Compiler > Predefined Symbols. Then you can press the add symbol button and add the _LAUNCHXL_F28379D 

    Regards,

    Peter