working on low power mode SDK of S32k144 in which print function(print((const char *)MENU_MESSAGE ADD_MESSAGE);) is not working not displaying any messages on putty and as per code i set baudrate as 9600.unable to see any response and readoptionconsole function is also not executing.is there any problem with this SDK code.Please support this issue to solve the problem.
int main(void)
{
/* Variable used for storing user option */
uint8_t option;
/* Variable used for storing core frequency */
uint32_t frequency;
/* Variable used for status of changing mode */
status_t retV = STATUS_SUCCESS;
/* Buffer for sprintf operations */
char buffer[20];
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
#ifdef PEX_RTOS_INIT
PEX_RTOS_INIT(); /* Initialization of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of Processor Expert internal initialization. ***/
/* Initialize and configure clocks
* - see clock manager component for details
*/
CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,
g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);
CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);
/* Initialize pins
* - See PinSettings component for more info
*/
PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);
/* Initialize Power Manager
* - See PowerSettings component for more info
*/
POWER_SYS_Init(&powerConfigsArr, POWER_MANAGER_CONFIG_CNT, &powerStaticCallbacksConfigsArr, POWER_MANAGER_CALLBACK_CNT);
/* Initialize LPUART for host - board configurations */
LPUART_DRV_Init(INST_LPUART1, &lpuart1_State, &lpuart1_InitConfig0);
/* Install hander for Button ISR */
INT_SYS_InstallHandler(PORTC_IRQn, ButtonISR, (isr_t *)0);
/* Enable button port IRQ */
INT_SYS_EnableIRQ(PORTC_IRQn);
/*Board EVB - red led off
Board MB - led 0 off */
PINS_DRV_WritePin(LED_PORT, LED_0, 1);
/*Board EVB - green led on
Board MB - led 1 on */
PINS_DRV_WritePin(LED_PORT, LED_1, 0);
while(1)
{
/* Print menu */
print((const char *)MENU_MESSAGE ADD_MESSAGE);
/* Read user option */
readOptionFromConsole(&option);
/* If the option is valid configure the CPU power mode accordingly */
switch (option)
{
/* HSRUN */
case '1':
/* Set power mode to HSRUN */
retV = POWER_SYS_SetMode(HSRUN, POWER_MANAGER_POLICY_AGREEMENT);
if (retV == STATUS_SUCCESS)
{
print((const char*)"************************ CPU is in HSRUN.\r\n");
print((const char*)"************************ Core frequency: ");
/* Get current core clock frequency */
(void)CLOCK_SYS_GetFreq(CORE_CLOCK, &frequency);
/* Transform the frequency from decimal to string */
sprintf(buffer, "%ld", frequency);
/* Print CPU frequency */
print(buffer);
print((const char*)"[Hz] \r\n");
}