Burn Bootloader for NyBoard
If you cannot upload sketches to the NyBoard (the "not in sync error") and verify that the serial connection is all good, the NyBoard's bootloader might be crashed during the last upload.
There could be several reasons why the NyBoard's bootloader crashes. Some of the common causes include:
Uploading the sketch at a high baud rate
Using a malfunctioning USB cable
Using a power source that is not sufficient
Using a low-quality or damaged Uno board
Disrupting the upload process by pressing the reset button or unplugging the board
Memory overflow
In the specific case of Petoi robots, the sketch size and errors in the code are major causes of the crashed bootloader. Uploading a sketch to the Uno replaces the existing bootloader code with the new sketch. If the sketch is too large to fit in the memory or if there are errors in the code causing memory overflow, the bootloader may corrupt.
Use the Simple Bootloader Resetter
From August 2023, we will ship a simple bootloader resetter with the NyBoard. If you got an earlier batch and need to reset the bootloader, please write to support@petoi.com to request a free shipment.
Use Arduino UNO Board
Open the sketch ArduinoISP.ino.
Select the items in the menu bar Tools > Board (Arduino UNO) and Port that connect to the UNO board.
Upload the sketch ArduinoISP.ino to the UNO board.
Wire the UNO board with NyBoard.
Select the Arduino as ISP in the menu bar Tools>Programmer.
Click the menu Burn Bootloader.
Use USBtinyISP or USBasp
Connect the USBtinyISP programmer and NyBoard. The pins connection map is as follows:
MI --> MISO V --> VCC
SC --> SCK MO --> MOSI
R --> Reset G --> GND
Connect the USBtinyISP programmer to the computer with a USB port. After installing the driver as follows:
The driver is as follows:
With NyBoard V1_*, you can simply choose Arduino Uno under the Tool menu of Arduino IDE, then burn the bootloader as follows:
Connect the USBasp programmer and NyBoard. The pins connection map is as follows:
MISO --> MISO VCC --> VCC
SCK --> SCK MOSI --> MOSI
Reset --> Reset GND --> GND
Connect the USBasp programmer to the computer with a USB port. Afer installing the driver as follows:
The driver installer is as follows:
With NyBoard V1_*, you can simply choose Arduino Uno under the Tool menu of Arduino IDE, then burn the bootloader as follows:
For details about how to use the USBasp programmer, you can refer to:
* Upload sketches using a Programmer
You may also use the Programmer to upload sketches to the board.
It allows larger sketches because the bootloader takes about 2 KB on the flash. However, it will overwrite the default bootloader, and you WON'T be able to upload sketches using the regular USB uploader. And uploading sketches using the programmer is also slower. So it's not recommended unless your serial uploading routine is broken.
Last updated
Was this helpful?