-
Notifications
You must be signed in to change notification settings - Fork 172
Firmware‐Installation
The nRFBOX requires firmware or code to unlock its wireless capabilities. This guide covers three methods to upload firmware: SD Card, Flash Download Tool, and Arduino IDE. These methods suit both beginners and advanced users.
Important
Always download firmware and sketches from the nRFBOX GitHub repository.
If your nRFBOX is running its main firmware, use the built-in update feature via SD card. This method is ideal for quick, computer-free updates.
- Working with the nRFBOX main firmware.
- MicroSD card (FAT32 formatted) for SD card updates.
-
.binfirmware file from the repository.
-
Prepare the SD Card:
- Format a microSD card to FAT32.
- Download the latest
.binfile from the nRFBOX GitHub repository and rename it tofirmware.bin. - Place
firmware.binin the SD card’s root directory and eject safely.
-
Insert the SD Card:
- Power off the nRFBOX and insert the SD card.
-
Run the SD Card Update:
- Power on, go to Setting, and select Firmware Update.
- The device reboots after flashing.
Tip
- SD Card: Use a reliable microSD card. Power off before inserting/removing.
-
Troubleshooting: Verify the
.binfile, ensure FAT32 format, or check Serial Monitor for errors.
Use the Espressif Flash Download Tool to upload firmware via USB. This is great for initial setups or restoring a non-working device.
- nRFBOX with USB-C/micro-USB port.
- Computer (Windows, macOS, Linux).
- USB cable.
-
.binfirmware file from the nRFBOX GitHub repository. -
.partitionsfirmware file from the nRFBOX GitHub repository. - Espressif Flash Download Tool.
-
Prepare the Firmware File:
- Download the
.binfile from the repository. - Download the
.partitionsfile from the repository.
- Download the
-
Install the Flash Download Tool:
- Download and install the tool. Run as an administrator on Windows.
-
Connect the nRFBOX:
- Connect via USB and enter Download Mode:
- Hold BOOT button, press RESET briefly, release both.
- Select the correct COM port in the tool.
- Connect via USB and enter Download Mode:
-
Configure Flash Settings:
- Select ESP32 chip type and Developer Mode or Download Mode.
- Load the
.binfile, set flash offset to0x10000. - Load the
.partitionsfile, set flash offset to0x8000. - Set SPI Speed to 40 MHz, SPI Mode to DIO.
- Check the
.binand.partitionsfile boxes.
-
Flash the Firmware:
- Click START. Wait for “FINISH” or “Download Complete” (1-2 minutes).
-
Reset and Verify:
- Power cycle the nRFBOX. Check the Oled display or Serial Monitor for the new firmware version.
- If it fails, verify COM port, offset, or Download Mode.
Tip
- Install USB-to-serial drivers (e.g., CP2102, CH340) if needed.
- Verify the
.binfile matches your hardware. - Try a different USB cable/port or lower SPI Speed (20 MHz) if flashing fails.
Compile and upload the nRFBOX sketch for customization.
- nRFBOX with USB-C/micro-USB port.
- Computer with Arduino IDE (2.x or 1.8.x).
- USB cable.
- nRFBOX sketch, platform.txt from the nRFBOX GitHub repository.
-
Install Arduino IDE and ESP32 Board Package:
- Install the Arduino IDE.
- Go to Tools > Board > Boards Manager, search “esp32,” and install esp32 by Espressif Systems (version 2.0.10).
-
Replace platform.txt:
- Download
platform.txtfrom the repository. - Replace the file in:
- Windows:
C:\Users\<YOUR_USERNAME>\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10 - macOS:
~/Library/Arduino15/packages/esp32/hardware/esp32\2.0.10 - Linux:
~/.arduino15/packages/esp32/hardware/esp32\2.0.10
- Windows:
- Back up the original.
- Download
-
Download and Open Sketch:
- Download the
.inosketch from the repository and open it in the IDE.
- Download the
-
Configure Arduino IDE Settings:
- Connect the nRFBOX via USB.
- Select Tools > Board > ESP32 Dev Module and the correct Port.
- Configure based on flash size:
- Partition Scheme: Minimal SPIFFS.
- Flash Size: 4MB.
- Optional: Set Upload Speed to 921600, CPU Frequency to 240 MHz.
-
Compile and Upload:
- Click Verify to compile. Fix any errors.
- Click Upload. Enter Download Mode if prompted (hold BOOT, press RESET, release both).
- Wait for “Done uploading.”
-
Verify Upload:
- Check the Oled display or Serial Monitor (115200 baud).
- If it fails, verify settings, port, or Download Mode.