HELP - IR receiver

Hello,
I have following problem. I want receive via IR receiver TSOP4838 a IR code (format isn’t important) via ATTiny84. I did a lot of tests, but no luck.
What I did :

First I used this test code :

#include <IRremote.h> 

const int led1Pin =  9;
int RECV_PIN = 8; 
IRrecv irrecv(RECV_PIN); 
decode_results results; 
  
 void setup() 
 { 
  pinMode(led1Pin, OUTPUT);
  digitalWrite(led1Pin, LOW);
  irrecv.enableIRIn(); // Start the receiver 
  delay(4000);
  digitalWrite(led1Pin, HIGH); 
  delay(1000);
  digitalWrite(led1Pin, LOW);

 } 
   void loop() { 
   if (irrecv.decode(&results)) {
    digitalWrite(led1Pin, HIGH);
    delay(1000); 
    digitalWrite(led1Pin, LOW);
    irrecv.resume(); // Receive the next value 
   } 
   delay(1000); 
 }

This code is working on my arduino nano, ATTiny85, but not on the ATTiny84. On ATTiny84 compilation is ok, but code hangs on command : irrecv.enableIRIn();

So I was searching for other code and found this :

#include <SoftwareSerial.h>
SoftwareSerial RFID(2, 3); // RX and TX

// Pins 2/3 used for Software serial
int irPin     = 8;       //Sensor pin 1 wired to Arduino's pin D4
int statLED   = 9;       //Toggle the status LED every time Power is pressed
int start_bit = 2200;    //Start bit threshold (Microseconds)
int bin_1     = 1000;    //Binary 1 threshold (Microseconds)
int bin_0     = 400;     //Binary 0 threshold (Microseconds)

void setup() {
  pinMode(statLED, OUTPUT);
  digitalWrite(statLED, LOW);
  pinMode(irPin, INPUT);
  RFID.begin(9600);
  RFID.println("IR/Serial Initialized: ");
}

void loop() {
    int key = getIRKey();   //Fetch the key
    RFID.println("key:");
    RFID.println(key);
  if(key != 0)            //Ignore keys that are zero
  {
    switch(key)
    {
        case 360: RFID.print("Requested key pressed");         // Power == MENU ACTIVE
        //This toggles the statLED every time power button is hit
        if(digitalRead(statLED) != 1)
          digitalWrite(statLED, HIGH);
        else
          digitalWrite(statLED, LOW);
        break;

      //default: Serial.println(key); // for inspection of keycode
    }
    delay(1000);    // avoid double key logging (adjustable)
  }
}

int getIRKey() {
  int data[12];
  int i;

  while(pulseIn(irPin, LOW) < start_bit); //Wait for a start bit
  for(i = 0 ; i < 11 ; i++){
   data[i] = pulseIn(irPin, LOW);      //Start measuring bits, I only want low pulses
   RFID.println(data[i]);
   }
  for(i = 0 ; i < 11 ; i++)             //Parse them
  {      
    if(data[i] > bin_1)                 //is it a 1?
      data[i] = 1;
    else if(data[i] > bin_0)            //is it a 0?
      data[i] = 0;
    else
      return -1;                        //Flag the data as invalid; I don't know what it is! Return -1 on invalid data
  }

  int result = 0;
  for(i = 0 ; i < 11 ; i++)             //Convert data bits to integer
    if(data[i] == 1) result |= (1<<i);

  return result;                        //Return key number
}

But this code doesn’t work correctly. It’s running, but returning only one value for alll keys on arduino nano and also ATTiny84.

Please can you help me get running ANY code on the ATTiny84 which will receive IR commands ?

Or you have ANY other code which I can use ?

I’m using last version of IRremote library and ATTiny84 is set on 8Mhz internal.

Thank you for help

Alex