Arduino uno r4 minima grbl upload error

In file included from C:\Users\Akram\AppData\Local\Temp.arduinoIDE-unsaved202551-5952-1yur8iq.tjq3\grblUpload\grblUpload.ino:27:0:
C:\Users\Akram\OneDrive\Documents\Arduino\libraries\grbl/grbl.h:29:10: fatal error: avr/io.h: No such file or directory
#include <avr/io.h>
^~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1

this error massasge show.

Hi @vijaypawar99. The reason for the error is that the Grbl code is not compatible with the UNO R4 Minima:

https://github.com/gnea/grbl#readme

This version of Grbl runs on an Arduino with a 328p processor (Uno, Duemilanove, Nano

By "328p processor", this means boards that use the Microchip ATmega328P microcontroller. The UNO R4 Minima board uses the Renesas RA4M1 microcontroller.

So if you want to use Grbl, you will need to buy a compatible board. The classic Nano is an excellent choice if you want a compact board that is easy to integrate with a custom PCB.

The UNO R3 is also a very nice board, and will be a good choice if you are going to be working with an Arduino shield made for that form factor.

You can purchase official boards to further support the work Arduino does to provide free open source software, documentation, and hardware designs to the community. They are available from these sources: