I am using KE16Z64VLD4 MCU for my application and using MCUXpresso IDE and SDK_2.x_FRDM-KE16Z SDK. but code is stuck in
BOARD_InitDebugConsole(); >> DbgConsole_Init(BOARD_DEBUG_UART_INSTANCE, BOARD_DEBUG_UART_BAUDRATE, BOARD_DEBUG_UART_TYPE, uartClkSrcFreq); >> assert(kStatus_SerialManager_Success == status);
How to solve this ? and I want to use Debug console so, it is necessary to solve the problem.
Solved! Go to Solution.
#define BOARD_DEBUG_UART_CLKSRC kCLOCK_IpSrcSysOscAsync in board.h, but Problem in initialization of clock you don't have external crystal.
Would you please check difference between the your custom board and FRDM-KE16Z?
For example:
LPUART0 is used?
PORTB0 (pin 27) is used as LPUART0_RX?
PORTB1 (pin 26) is used as LPUART0_TX?
Best Regards,
Robin
Hi
Does the board configuration of your KE16Z64VLD4 application same as FRDM-KE16Z? If not you need to modify it.
Or you can refer the LPUART examples in SDK: (...\SDK_2_11_0_FRDM-KE16Z.zip\boards\frdmke16z\driver_examples\lpuart)
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Yes, I have check it is same as KE16Z. I also go through UART SDK example but, didn't find the solution. Further support is required.
#define BOARD_DEBUG_UART_CLKSRC kCLOCK_IpSrcSysOscAsync in board.h, but Problem in initialization of clock you don't have external crystal.
Would you please check difference between the your custom board and FRDM-KE16Z?
For example:
LPUART0 is used?
PORTB0 (pin 27) is used as LPUART0_RX?
PORTB1 (pin 26) is used as LPUART0_TX?
Best Regards,
Robin
Thank you for this solution. Now, I'm using SIRC(4MHz) as a clock source for debug console but, PRINTF function is not working although code is running nicely and having 0 errors and 0 warnings. I assigned LPUART0 for debug console. Attaching Screenshots.