at631
Newbie level 3
- Joined
- Feb 4, 2015
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 38
Hi edaboard,
I successfully implemented s Hello world program using Microblaze Microcontroller System (MCS) embedded processor with a simple C program using ISE and SDK. I am trying to implement a menu to give the user the ability to select a value (1-9) which communicates with Microblaze. When I tried to use scanf() in SDK, it appears to be too big (please see error below). I then tried using getc(), which also appears to be too big (please see error below). I did some research and saw that there are several recommendations to use XUartLite_RecvByte(XPAR_RS232_UART_1_BASEADDR); However, when I tried to use I get an error stating that 'XPAR_RS232_UART_1_BASEADDR' is undeclared. When I tried to include "xuartlite.h", or xuartlite_l.h. I get an error saying, “No such file or directory”.
Is xuartlite not compatible with SDK or am I doing something wrong?
Is there a light weight version of scanf I can use if xil_printf is the light version of printf.?
Source of hello world tutorial:
**broken link removed**
char keyboard;
keyboard = scanf("%c",&keyboard);
hello_world.elf section `.text' will not fit in region `ilmb_cntlr_dlmb_cntlr'
make: *** [hello_world.elf] Error 1
region `ilmb_cntlr_dlmb_cntlr' overflowed by 94680 bytes
char keyboard;
keyboard = getchar();
hello_world.elf section `.text' will not fit in region `ilmb_cntlr_dlmb_cntlr'
make: *** [hello_world.elf] Error 1
region `ilmb_cntlr_dlmb_cntlr' overflowed by 6664 bytes
I successfully implemented s Hello world program using Microblaze Microcontroller System (MCS) embedded processor with a simple C program using ISE and SDK. I am trying to implement a menu to give the user the ability to select a value (1-9) which communicates with Microblaze. When I tried to use scanf() in SDK, it appears to be too big (please see error below). I then tried using getc(), which also appears to be too big (please see error below). I did some research and saw that there are several recommendations to use XUartLite_RecvByte(XPAR_RS232_UART_1_BASEADDR); However, when I tried to use I get an error stating that 'XPAR_RS232_UART_1_BASEADDR' is undeclared. When I tried to include "xuartlite.h", or xuartlite_l.h. I get an error saying, “No such file or directory”.
Is xuartlite not compatible with SDK or am I doing something wrong?
Is there a light weight version of scanf I can use if xil_printf is the light version of printf.?
Source of hello world tutorial:
**broken link removed**
char keyboard;
keyboard = scanf("%c",&keyboard);
hello_world.elf section `.text' will not fit in region `ilmb_cntlr_dlmb_cntlr'
make: *** [hello_world.elf] Error 1
region `ilmb_cntlr_dlmb_cntlr' overflowed by 94680 bytes
char keyboard;
keyboard = getchar();
hello_world.elf section `.text' will not fit in region `ilmb_cntlr_dlmb_cntlr'
make: *** [hello_world.elf] Error 1
region `ilmb_cntlr_dlmb_cntlr' overflowed by 6664 bytes