Help with nano clone

My arduino nano clone stopped working after i unplugged it during platformio upload. It showed(and it still does) the programmer not found error when I try uploading to it. I reinstalled the bootloader using the arduino ide and it started working again in arduino ide, but platformio still says”avrdude: stk500_recv(): programmer is not responding”. How can I fix this?

Well, did the bootloader you flash use 115200 baud for the bootloader serial communication or 57600? That’s the difference between when you use board = nanoatmega328new or board = nanoatmega328 in your platformio.ini. (see source, source).