This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ERROR for scanf

When I m using printf and commenting scanf the code is working fine but when i uncomment the scanf it shows the following error:

.\Obj\Hello.axf: Error: L6915E: Library reports error: __use_no_semihosting_swi was requested, but a semihosting fgetc was linked in

the setting for UART I set are

 /* initialize the serial interface   */
  PINSEL0 = 0x00050000;           /* Enable RxD1 and TxD1                     */
  U1LCR = 0x83;                   /* 8 bits, no Parity, 1 Stop bit            */
  U1DLL = 20;                     /* 9600 Baud Rate @ 15MHz VPB Clock         */
  U1LCR = 0x03;                   /* DLAB = 0                                 */

Please help me out