A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sarfata/kbox-firmware/wiki/Developer-Setup below:

Developer Setup · sarfata/kbox-firmware Wiki · GitHub

Thanks to PlatformIO it is very easy to develop for KBox on Windows, Linux, Mac OS.

The general steps are the same for all platforms:

Running the tests on Windows

To run the tests on Windows, you will need to install the 'gcc' compiler. We recommend downloading it via 'MinGW-64'.

This step is optional.

Even if you are having trouble with Atom, you will still be able to compile and upload the firmware. You will just need a different text editor.

If you do not already have a favorite IDE, you can use Atom. It's a free and very capable solution!

If you are upgrading

If you are doing an upgrade, rather than a new install, it's always a good idea to run platformio update before building a new firmware. This will make sure you have the most recent version of platformio.

To build KBox firmware, make sure you are in the kbox-firmware directory and run:

To upload KBox firmware, first make sure you are connected via USB and then run:

$ platformio run -e host -t upload

On Windows and MacOS, you will need to press the PROGRAM button, located in the bottom-left corner of KBox. On Linux, your this is usually not needed.

Building and flashing the KBox WiFi firmware

The WiFi chip is a separate micro-controller and has it's own program. The source code for the WiFi chip is in the src/esp folder of the project.

To build the WiFi firmware, run:

To upload the WiFi firmware:

$ platformio run -e esp -t upload

Uploading a WiFi firmware relies on the host firmware detecting that you are trying to program the WiFi module. This is accomplished by detecting when the serial port is set to 230400 bauds. This has been tested on Linux/Windows/macOS (see #5).

If it does not work, you can still upload the programmer only onto the host and try flashing again:

   $ platformio run -e program-esp -t upload
   $ platformio run -e esp -t upload

Debug output will be available on the NMEA2 output of KBox at 920800/8/N/1. You will need a serial adapter to receive it.

Using Atom to build and flash

If you are using Atom, you can choose which program you want to work on (the main firmware host, the wifi firmware esp or the special firmware to upload the wifi firmware program-esp) via the selector at the bottom of the screen:

Just follow the instructions above, and select a similar command. For example, to flash the main firmware, you need to choose the Upload option with environment equal to "host":

You can also open a Terminal window in Atom and type the command manually:

platformio run -e host -t upload
platformio run -e esp -t upload

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4