Hello,
I am using AVR ISP MKii Programmer to program ATTINY102 MCU. I have included my circuit diagram below. At first, I saw that when I was trying to program the MCU the programmer showed me this error: "Failed to enter programming mode. Error received from tool: Target connector seems to be reversed".
I tried every solution found online but nothing worked then later I desoldered all the resistors from my PCB board and saw that I was able to program the MCU. So I started to solder back resistors, one at a time, and found that "R10" and "R2" were the issues. If any of these two resistors are present on the board then the programming procedure would not continue. These two resistors are connected with the data line "TPIDATA".
In the datasheet, it says that the "TPIDATA" pin needs to be at "VDD" potential during programming the MCU. Can that be the issue?
Any suggestion on how to solve this issue? I already tried connecting a pull-up resistor in between the "TPIDATA" and "VDD" but it did not solve the problem.
Thank you.

Here is my circuit diagram:






