Introduction
Ardbox GPRS and Ardbox WIFI & BLE use the SPI pins MISO and MOSI to communicate with the module GPRS Sim800L and the module WIFI ESP32. For that reason, while using these modules, the SPI communication is disabled for another purpose.Â
In order to burn the bootloader, Arduino has established that the way to communicate two Arduinos is by SPI communication. So, it's necessary to disable the modules. For this purpose, we have the Pin2. Connecting Pin2 to the ground we can disable the modules GPRS/WIFI and use SPI communication pins. Â
NOTE: This tutorial can be followed for all the IndustrialShields familiy devices except with the Ardbox DALI and Ardbox WiFi (NOT DO IT WITH THESE TWO DEVICES). With the Ardbox GPRS, you have to disable the GPRS module as will be explained.Â
Requirements
Burning the Bootloader
You have two changes to the two Reset defines.
#define RESET 10 // Use pin 10 to reset the target rather than SS
andÂ
#define RESET 4
byÂ
#define RESET 2 // Use pin 10 to reset the target rather than SS
andÂ
#define RESET 2
Now you are in a position to UPLOAD the program to the Ardbox Burner.Â
Once is uploaded make the connections. Connections:Â
Ardbox burner | Ardbox GPRS/WIFI |
MISO | MISO |
MOSI | MOSI |
SCK | SCK |
Pin2 | RESET |
GND | GND |
5V | 5V |
Once you have the connections made, disable the GPRS or WIFI module connecting Pin2 from the Ardbox GPRS/WIFI to the ground. Here you have a diagram:Â
Â
Now you can burn the Arduino Leonardo of the Ardbox GPRS/WIFI. For that, having the Ardbox Burner / MDuino Burner connected to the PC, go to Tools -> Programmer -> Arduino as ISP. The Board and Model selected have to be the one of the objective Arduino GPRS/WIFI, but the Port have to be the one of the Burner, so you have the USB connected to it (in the following example image the M-Duino 21+):Â
Now burn the Bootloader. Go to Tools -> Burn Bootloader.
This process will take some time. If everything went well, you will see a success message.Â
How to burn the bootloader