On a new Nybble (1_1 board) that has been working great so far, I made some small changes to the code, and somehow got it to crash in a loop - it resets ever second or so with a loud beep... And as a result, I am not able to upload new code...
I tried various combinations of unplugging / plugging the USB cable / pressing the reset button / uploading. Nothing seems to fix it...
Any suggestion?
Error from Arduino tool on Mac:
Sketch uses 592 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x0a
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x2a
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x53
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x61
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x72
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x2a
An error occurred while uploading the sketch
And this is what the serial monitor shows below.
(...)
0
Finished!
1024 0 103 139
k
⸮
* Start *
Nybble
Initialize I2C
Connect MPU6050
Test connection
MPU successful
Initialize DMP
1226 111 3 47
Enable DMP
Enable interrupt
DMP ready!
* Assigning 1 skill addresses...
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Finished!
1024 0 103 139
k
⸮
* Start *
Hi,
It seems that you modified the skill information in the InstinctNybble.h, but forgot to match the pointer array or the skill name array. You may also forget to upload the first round of code to update the memory data if the skill file is correct.
The avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x0a message indicates another error that's irrelevant to the code itself. It means the connection between your computer and the robot through USB is not correct.
You may zip your code folder and send it to support@petoi.com and I can help to debug.