Jing,
>>Please download HVP-KV58 SDK from Welcome | MCUXpresso SDK Builder and try again.
I am importing hello_world application from the HVP-KV58 SDK v2.6 on MCUExpresso 11.0.1
Base on you suggestions this what I tried. See screen dumps and code.
OK here was what I tried this morning.


#ifndef _BOARD_H_
#define _BOARD_H_
#include "clock_config.h"
#include "fsl_gpio.h"
/*******************************************************************************
* Definitions
******************************************************************************/
/*! @brief The board name */
#define BOARD_NAME "HVP-KV58F"
/*! @brief The UART to use for debug messages. */
#define BOARD_USE_UART
#define BOARD_DEBUG_UART_TYPE kSerialPort_Uart
#define BOARD_DEBUG_UART_BASEADDR (uint32_t) UART1
#define BOARD_DEBUG_UART_INSTANCE 1U
...
I also tried to comment out the console. Just see if I could step through main.
void BOARD_InitDebugConsole(void)
{
uint32_t uartClkSrcFreq = BOARD_DEBUG_UART_CLK_FREQ;
/// \note JCM DbgConsole_Init(BOARD_DEBUG_UART_INSTANCE, BOARD_DEBUG_UART_BAUDRATE, BOARD_DEBUG_UART_TYPE, uartClkSrcFreq);
}
Similar results at the :
GDB CONSOLE
687,364 &"The program is not being run.\n"
687,364 ^error,msg="The program is not being run."
687,364 (gdb)
687,364 35^error,msg="Invalid thread id: 1"
687,364 (gdb)
687,365 36-stack-info-depth --thread 1
687,372 37-data-disassemble --thread 1 -s 4294967294 -e 4294967338 -- 3
687,372 38-thread-info 1
687,373 39-list-thread-groups
687,375 36^error,msg="Invalid thread id: 1"
687,375 (gdb)
687,375 37^error,msg="Invalid thread id: 1"
687,375 (gdb)
687,375 38^done,threads=[]
687,375 (gdb)
687,375 39^done,groups=[{id="i1",type="process"}]
687,375 40-stack-list-frames --thread 1
687,376 (gdb)
687,384 41-data-disassemble --thread 1 -s 4294967295 -e 4294967347 -- 3
687,386 40^error,msg="Invalid thread id: 1"
687,386 (gdb)
687,386 41^error,msg="Invalid thread id: 1"
687,386 (gdb)
687,398 42-data-disassemble --thread 1 -s 4294967296 -e 4294967348 -- 3
687,408 42^error,msg="Invalid thread id: 1"
687,408 (gdb)
687,789 43-gdb-exit
687,791 43^exit
But this time I got the following error

---------------------------------------
However, I think I may have narrowed in this issue to be a FLASH write error.
PEGDBSERVER_CONSOLE OUTPUT
Loading programming algorithm ...
Done.
Programming sequency is : erase, blank check, program, and verify {default}
CMD>VC
Command is inactive for this .ARP file.
VC is not implemented, falling back to VM
CMD>VM
Verifying.
Verify error at address $10000002.
Byte in module is $00 and should be $02.
Current content of flash does not match application to be programmed
CMD>EM
Command is inactive for this .ARP file.
Error Erasing flash of device
Error occured during Flash programming.
-------------
The question is why. Is the algorithm, the location or a issue with the hardware?
This is where I am at.
Regards.
Mich