Hello,
When you add second clock configuration into the CPU component the default state of the SegLCD_LDD component in this clock configuration is disabled, see the following screenshot of Component Inspector (use the Advanced view):

The source code of the SegLCD_LDD Init method is modified. The following code is generated:
SegLCD1_SetClockConfiguration(DeviceDataPrv, Cpu_GetClockConfiguration()); /* Set Initial according speed CPU mode */
(instead of LCD_PDD_EnableDevice(LCD_BASE_PTR,PDD_ENABLE); /* Enable device */)
The SegLCD1_SetClockConfiguration() method contains the following code that enables or disables the LCD device according to selected clock configuration of the CPU:
/*
** ===================================================================
** Method : SegLCD1_SetClockConfiguration (component SegLCD_LDD)
**
** Description :
** This method changes the clock configuration. During a clock
** configuration change the component changes it's setting
** immediately upon a request.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
void SegLCD1_SetClockConfiguration(LDD_TDeviceData *DeviceDataPtr, LDD_TClockConfiguration ClockConfiguration)
{
SegLCD1_TDeviceData *DeviceDataPrv = (SegLCD1_TDeviceData *)DeviceDataPtr;
switch (ClockConfiguration) {
case CPU_CLOCK_CONFIG_0:
DeviceDataPrv->EnMode = TRUE; /* Set the flag "device enabled" in the actual speed CPU mode */
LCD_PDD_SetClkSource(LCD_BASE_PTR, LCD_PDD_ALTERNATE_CLK); /* Set CLK source */
LCD_PDD_SetAlternateClkDivider(LCD_BASE_PTR, 0x01U); /* Set value of LCD Alternate divider */
LCD_PDD_SetClkPrescaler(LCD_BASE_PTR, 0x04U); /* Set value of LCD clock prescaler */
break;
default:
DeviceDataPrv->EnMode = FALSE; /* Set the flag "device disabled" in the actual speed CPU mode */
break;
}
HWEnDi(DeviceDataPtr); /* Enable/disable device according to status flags */
}
When you want the SegLCD_LDD component (LCD device) to be enabled in all (both) clock configurations you must select the "This component enabled" value in the "CPU clock/configuration selection/Clock configuration 1" property.
Best Regards,
Marek Neuzil