"AVR: Program propert is not defined" error in my Health Monitoring System using Arduino Uno R3 project

Hello there,
I am facing an error in my project, Health Monitoring System using Arduino Uno R3, where I basically interfaced a temperature and a heart beat sensor through Arduino Uno R3 on Proteus software. The sensor library and Arduino library for Proteus are downloaded from https://www.theengineeringprojects.com/. I compiled the code on Arduino IDE 1.8.13
Here is the code :

#include <LiquidCrystal.h>
#include <TimerOne.h>
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);

int val;
int tempPin = A0;// temperature Sensor Pin
int HBSensor = 4;// Sensor Pin
int HBCount = 0;
int HBCheck = 0;
int TimeinSec = 0;
int HBperMin = 0;
int HBStart = 2;
int HBStartCheck = 0;

void setup() {
  // put your setup code here, to run once:
  lcd.begin(20, 4);
  pinMode(HBSensor, INPUT);
  pinMode(HBStart, INPUT_PULLUP);
  Timer1.initialize(800000); 
  Timer1.attachInterrupt( timerIsr );
  lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("Current HB  : ");
  lcd.setCursor(0,1);
  lcd.print("Time in Sec : ");
  lcd.setCursor(0,2);
  lcd.print("HB per Min  : 0.0");
  lcd.setCursor(0,3);
  lcd.print("Body Temp  : ");
  
}

void loop() {
 
  
  
  if(digitalRead(HBStart) == LOW){
  //lcd.setCursor(0,3);
  //lcd.print("HB Counting ..");
HBStartCheck = 1;}
  if(HBStartCheck == 1)
  {
      if((digitalRead(HBSensor) == HIGH) && (HBCheck == 0))
      {
        HBCount = HBCount + 1;
        HBCheck = 1;
        lcd.setCursor(14,0);
        lcd.print(HBCount);
        lcd.print(" ");
      }
      if((digitalRead(HBSensor) == LOW) && (HBCheck == 1))
      {
        HBCheck = 0;   
      }
      if(TimeinSec == 10)
      {
          HBperMin = HBCount * 6;
          HBStartCheck = 0;
          lcd.setCursor(14,2);
          lcd.print(HBperMin);
          lcd.print(" ");
          //lcd.setCursor(0,3);
          //lcd.print("Press Button again.");
          HBCount = 0;
          TimeinSec = 0;      
      }
  }
  
   val = analogRead(tempPin);
  float mv = (val/1024.0)*5000;
  float cel = mv/10;
  lcd.setCursor(14,3);
          lcd.print(cel);
          lcd.print(" ");
          delay(100);
          
}

void timerIsr()
{
  if(HBStartCheck == 1)
  {
      TimeinSec = TimeinSec + 1;
      lcd.setCursor(14,1);
      lcd.print(TimeinSec);
      lcd.print(" ");
  }
}

Then I uploaded the exported HEX file on Arduino Uno R3 on Proteus and ran the circuit which displayed 2 fatal errors:

AVR: Program property is not defined.
Real Time Simulation failed to start.

I have tried every possible solution I could barely find and yet the issue persists. Any help would really be appreciated. Thank you!
(circuit schematic is attached below)

If you see “Error: AVR Program property is not set” It likely means that you have not loaded your code in Arduino

(see step 5 of this post)

I read somewhere that this usually is the case of the AVR error, but I can assure you that I have loaded the code in Arduino. I thought maybe the path to the file would be too long for Proteus and that’s why it’s not loading so I decided to move the HEX file to the project files’ directory and then load and yet this problem comes up.

Even so, thank you for your response!

did you make sure the board you compiled for (to get the hex file) was selected as Arduino Uno?

Yes I did. Even double checked just now. The problem’s still coming up.

OK sorry, I don’t have other idea about why this would happen

Alright, appreciate the help! :slight_smile:

This is not related to the topic, but are there any other Proteus libraries of Arduino beside the ones that I have mentioned above in my post?

you mean adding new libraries?

Yes, thank you so much. I am at my wit’s end so I just thought of using different libraries and see if it works. Thank you again!

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.