AVR CODE VISION HELP

Thread Starter

Usama_ali143

Joined Jul 17, 2017
27
hi All about circuits memebers...I m a student of Electrical Engineering..Currently i m working on a project Automatic power factor correction using ATmeaga16. i have calculated the power factor (which is x=powerfactor()..programme attached)..i want to display the value in x (integer decimal )...but i got the following error..(snap attached).plz help me...thank you
 

Attachments

AlbertHall

Joined Jun 4, 2014
12,345
lcd_print in your program is designed for printing predefined strings which are stored in flash. Your program tries to use it for printing strings stored in ram. You can get around that by duplicating the lcd_print routine but omitting the 'flash' storage specifier and then using your new function for strings in ram: lcd_print_ram(buf);
Code:
void lcd_print_ram(char *str)
{unsigned char i=0;
while (str[i]!='\0')
{lcd_data(str[i]);
i++;}}
[\CODE]
 
Top