Dear all.
I would like to input and output to 'TERATERM' in the following program.
I can input and output to the STDIO_Console of Xilinx SDK.
But it will not be input and output to UART1(MicroZed) => USB => PC(TERATERM).
Is there a mistake in the program?
---------------------------------------------------
/* ------------------------------------------------
* | UART TYPE BAUD RATE |
* ------------------------------------------------
* ps7_uart 115200 (configured by bootrom/bsp)
*/
#include <stdio.h>
#include "xparameters.h"
#include "platform.h"
#include "xil_cache.h"
#include "xil_exception.h"
static int str2ui(char *str);
u32 nml_dt;
int main()
{
char buf[20], *bfp, lp;
u8 datb;
u16 datw;
u32 adb, adw, adi, dati, mofs;
int sts;
init_platform();
Xil_DCacheDisable();
lp = 1;
while (lp) {
MN_LP0:
printf("rZynq> "); // <=== Not output to Terminal.
bfp = &buf[0];
mofs = 0;
gets(bfp); // <=== Not input to Terminal.
// printf("%s", bfp);
if((*bfp == 'M')||(*bfp == 'm')) { //"M" or "m"?
......
---------------------------------------------------
Regards,
-fuji3085