I upload a program to my arduino and it upload it without problems but when I modify the code and try to upload it again it compiles without errors but when it tries to upload it says "avrdude: stk500_recv(): programmer is not responding"
how can I solve this? I've try changing the programmer in tool/programmer but it doesn't work. the board is selected correctly and the serial port is also correct. I even undo the code to its original state when I upload it without problem the first time I connect the device. I'm working with an IMU that have an atmega328P
What pins are you connected to with the IMU? How are you communicating with it?