The AVRs have to configure the bits, however in the PICs, when choosing the Pic, the bits are already configured.
1st Configuration (MCU parameters is where you put the baud, uart, frequency, etc.).
2nd fill in the BITS box of Configuration example (0x3EFF23E4)
You can try with this configuration I don't know if it will work for you since this is the one I use for atmega2560.
Note: in the simulator it works without the configuration bits of the cpu. but to record in .hex you need the configuration of the cpu, if it is not configured it may work for you but you will always have errors.
I put you a link is from the pic but you also have it for AVr.
https://github.com/LDmicro/LDmicro/wiki/PIC-Configuration-Bits
Los AVR se tienen que configurar los bit, sin embargo en los PIC ya al elegir el Pic ya se configuran los bit.
1º Configuración (MCU parámetros es donde se pone los baudio, uart,frecuencia, etc.).
2º rellenar la casilla BITS de Configuración ejemplo(0x3EFF23E4)
puedes probar con esta configuración no se si te funcionara ya que esta es la que yo uso para atmega2560.
Nota: en el simulador funciona sin los bits de configuración de la cpu. pero para grabar en .hex se necesitan la configuración de la cpu, si no se configura puede ser que te funcione pero siempre tendrás erratas.
te pongo enlace es de las pic pero también lo tienes para AVr.
https://github.com/LDmicro/LDmicro/wiki/PIC-Configuration-Bits