I get the avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
error when trying to upload a sketch to my Elegoo UNO R3 with the IO Expansion Board is connected. I can upload the sketch fine with the IO expansion board disconnected, but switching the switch to "upload" on the expansion board does not change anything.
If I were to guess, the issue is because the IO expansion board uses the same pins that are used for uploading sketches which means the pins are busy and cannot be used to upload sketches, but then I am not sure what the point in the upload switch is.
This is the .ino code I am trying to upload, just so I can test to see if I can upload code sucessfully:
#include <avr/wdt.h>
#include "DeviceDriverSet0.h"
#include "AppFuncSet0.cpp" // not sure if arduino requires importing .cpp files, or if you need to link them?
DeviceDriverSetMotor AppMotor;
App AppRover0;
void setup() {
AppMotor.DeviceDriverSetMotorInit();
delay(2000);
for (AppRover0.MotionControl = 0; AppRover0.MotionControl < 9;
AppRover0.MotionControl = AppRover0.MotionControl + 1) {
Serial.println("moving rover");
AppFuncSetRoverMotionControl(AppRover0.MotionControl, 255);
delay(1000);
}
}
void loop() {
}
I have tried resetting both the UNO R3 which reset properly and the expansion board.
For context I am using this car starter kit