We're thrilled to have you join us for this exciting firmware development hackathon!
To get started, please follow the installation and setup steps outlined below. This will ensure you have all the necessary tools and environment ready for ByteBattles. Good luck, and let the coding begin!
This section provides step-by-step instructions and download links for installing the following software:
- Segger J-Link Software
- Segger Ozone
- Python 3.13
- 7-Zip
- RealVNC Viewer
- VS Code
- PCAN-View and Drivers
- Serial Monitor
The Segger J-Link software package provides drivers and tools for J-Link debug probes.
- Download: Segger J-Link Software and Documentation Pack
- Instructions:
- Go to the download page and download the latest version for your operating system (Windows, macOS, Linux).
- Run the downloaded installer.
- Follow the on-screen instructions to complete the installation. Typically, you can accept the default settings.
Segger Ozone is a powerful debugger that works with J-Link probes.
- Download: Segger Ozone
- Instructions:
- Go to the download page and download the latest Ozone version for your operating system.
- Run the downloaded installer.
- Follow the on-screen instructions to complete the installation. Again, you can usually accept the defaults.
Python is a versatile programming language.
- Download: Python Downloads
- Instructions:
- Go to the official Python website and download the Python 3.13 installer for your operating system.
- Run the downloaded installer.
- Important: Make sure to check the "Add Python 3.13 to PATH" option during installation. This allows you to run Python from the command line.
- Complete the installation.
7-Zip is a free and open-source file archiver.
- Download: 7-Zip
- Instructions:
- Go to the 7-Zip website and download the appropriate installer for your system (32-bit or 64-bit).
- Run the downloaded installer.
- Complete the installation. Default settings are usually sufficient.
RealVNC Viewer allows you to remotely access and control other computers.
- Download: RealVNC Viewer
- Instructions:
- Go to the RealVNC website and download the VNC Viewer for your operating system.
- Run the downloaded installer.
- Complete the installation. Default settings are usually sufficient.
Visual Studio Code is a free and powerful code editor.
- Download: Visual Studio Code
- Instructions:
- Go to the VS Code website and download the installer for your operating system.
- Run the downloaded installer.
- Complete the installation. You can accept the default settings.
PCAN-View and associated drivers are for working with PCAN interfaces.
- Download: PCAN Drivers
- Instructions:
- Go to the PEAK-System website and download the PCAN-Basic API and PCAN-View installation package for your operating system.
- Run the downloaded installer.
- Follow the on-screen instructions to complete the installation. Ensure that you install both the drivers and PCAN-View.
You can use the "Serial Monitor" extension in VS Code (https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-serial-monitor) or choose to install a serial terminal that you are familiar with.
You should download and install Git CLI tool (https://git-scm.com/downloads).
Download Version 7.8.0 of the T2G Sample Driver Library (https://itoolspriv.infineon.com/itbhs/api/packages/com.ifx.tb.tool.traveoiisampledriverlibrary/Versions/7.8.0/artifacts/sdl_installer_v7.8.0_w_ex_control_txt.zip/download) and install with default option.
Screenshot Example:
This section outlines the steps to set up the ByteBattles project from GitHub.
- Open your terminal or command prompt.
- Navigate to the directory where you want to store the project.
- Run the following command:
git clone https://github.com/adminasdk/bytebattles.git
- Open VS Code.
- Open the "bytebattles" project on VS Code.
- Click the "Install" button on the pop-up shown on bottom right.
- Navigate to the
asdk-gen2/setupdirectory:cd asdk-gen2/setup - Install the Python requirements:
pip install -r requirements.txt
- Run the
setup.pyscript:python setup.py -p arm
- Close VS Code.
- Open VS Code and reopen the ByteBattles project folder. This ensures all installed extensions and environment changes are properly loaded.
- Copy contents of the SDK from the directory given during the installation of the SDK.
- Paste it inside "asdk-gen2/platform/cyt2b75/sdk" directory.
- Open terminal and apply patch.
- For Windows, double click the "app_patch.bat" to run it or run the command
app_patch.bat
- For Ubuntu and MacOS
./app_patch.sh
- In the VS Code status bar (the bar at the bottom), locate the "build_m0" button.
- Click the "build_m0" button to compile the project. The build process will start in the terminal.
- After this you should be able to find the build artifacts in the "build_m0" directory.
Note:
- If the
build_m0button is not visible, ensure that the extensions are correctly installed and that the project is opened in the correct folder. - Incase, you notice an error mentioning that "python3: command not found". Open the tasks.json file in the ".vscode" directory and replace all instances of "python3" to "python"





