We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I have added the library, stdio.h and written a piece of code as :
int TempVal; char w[10]; TempMeas = 25.56;
TempVal = sprintf(w,"%f",TempMeas);
I am geeting following error while compiling :
51 COMPILER V8.08 - SN: Eval Version COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2007 *** WARNING C500 IN LINE 1 OF DEMO1_27FEB_UART.C: MISSING LICENSE ID CODE (LIC) IN 'TOOLS.INI'
C51 COMPILATION COMPLETE. 1 WARNING(S), 0 ERROR(S) Link in progress... C:\SiLabs\MCU\IDEfiles\C51\BIN\BL51.EXE @E:\Rajesh\Rajesh\Cygnal\cyglink.txt
BL51 BANKED LINKER/LOCATER V6.05 - SN: Eval Version COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2007 E:\Rajesh\Rajesh\Cygnal\demo1_27feb_UART.obj TO E:\Rajesh\Rajesh\Cygnal\demo1_20feb RS(256) PL(68) PW(78)
*** FATAL ERROR L210: I/O ERROR ON INPUT FILE: EXCEPTION 0021H: PATH OR FILE NOT FOUND FILE: E:\RAJESH\RAJESH\CYGNAL\DEMO1_27FEB_UART.OBJ
Can anyone suggest me how to fix this problem.
The evaluation version of the C51 compiler does not support floating point calculations.
You will either need to stick with integer math (using fixed point calculations), or buy the full version of C51.