Error burning bootloader

Hello,

I am trying to burn the bootloader of a cnc xpro controller board (ATmega328pb) using an arduino due. I keep getting this error:

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "ATmega328, Yes (UART1 328PB only), 328PB, BOD 2.7V, LTO disabled, 16 MHz external"

Using Port : COM16
Using Programmer : arduino
Overriding Baud Rate : 19200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x43

avrdude done. Thank you.

Error while burning bootloader.

Do you know how to fix this?

Did you upload the File > Examples > 11.ArduinoISP > ArduinoISP to the Due?

How do you have the Due connected to the ATmega328PB?

Did you upload the File > Examples > 11.ArduinoISP > ArduinoISP to the Due?

Yes. It worked perfectly.

I attached a photo of how I have it connected

I don't see the photo.

Here it is

You need to connect pin 10 on the Due to the reset pin on the ATmega328PB.

I did this but it doesn't work. Do you have any other ideas as to what else could be the problem?

I would use the SPI header