Arduino nano 328 Change the board while uploading and now cause a error

I bought a arduino nano atmega328. The Led keep on flashing and it does not upload the blink code. It says avrdude: stk500_getsync(): not in sync: resp=0x00 .

I burn the boatlooder. Then it worked. However another day while uploading a code the wrong board was chosen and I quickly change it while uploading then now it give again the same error. It does not even run the code now, before it was running the code when I was connecting the arduino nano with the usb to the computer.

When I connect the arduino nano with a 4 battery it run the program (the last program I uploaded was the blink program).

I have reburn the bootloader again and I could upload a code that was working with the arduino but not with the pc.