cancel
Showing results for 
Search instead for 
Did you mean: 

how to recieve input from PC keyboard on target in a debug session

ferro
Senior III

Hi,

With Keil uVision I could type to a console and reicieve that on target with SER_GetChar ().
I implemented SER_GetChar () but the code below does not go to case 'a'.

switch ( SER_GetChar() )
{
	case 'a' :
		dbg_print ( "Pressed 'a'\n" );
		break;
	default :
		break;
}

ferro_0-1728991295369.png


What am I doing wrong ?

Any idea how to recieve input from PC keyboard on target in a debug session, to replicate uVision's functionality ?

Thank you

10 REPLIES 10

@SofLit  I followed all his instructions but no success. Could you check my HW config please ?

ferro_0-1729002410620.png