Does anyone have a sample of EchoChar using Serial A of the RCM6XXX? I need to know how to configure the Serial port A!

The RCM6XXX user manual says I can use the Serial Port A but I have no success using it (I know the serial A is the programming port, but using it in Run Mode it may be used as another serial port), this the configuration code:

#define AINBUFSIZE 63
#define AOUTBUFSIZE 63

#define SERA_BAUD 115200L
.
.
.
main(void)
{
.
.
.

serAopen(SERA_BAUD);
.
.
.
for(;:wink:
{
.
.
.
if ((c = serAgetc()) != -1 && c != CH_ESCAPE) {
serAputc(c);
.
}
}

Thanks…

Hello, Check the below sample application, it will receive data from the PORT A and display at the serial console through the PORT A.

void main()
{
int c;
serAopen(19200);
while (1) {
if ((c = serAgetc()) != -1) {
serAputc(c);
}
}
serAclose();
}