Skip to content

Latest commit

 

History

History
90 lines (80 loc) · 3.2 KB

README.windows

File metadata and controls

90 lines (80 loc) · 3.2 KB

BlueRetro Development on Windows 10+

Table of contents

1 - Initial setup

1.1 - Softwares to download & install

1.1.1 - Windows Terminal

  1. Download Windows Terminal msixbundle file.
  2. Start a PowerShell terminal as administrator (Right click on program icon for the option).
  3. Install Windows Terminal with this command (edit filename to match downloaded version):
    Add-AppxPackage -Path .\Downloads\Microsoft.WindowsTerminal.msixbundle
    

1.1.2 - Git

  1. Download Git 64-bit installer.
  2. Install using default settings at every step.

1.1.3 - Python

  1. Download Python.
  2. Launch installer and select Add python.exe to PATH.
  3. Select Customize installation.
  4. Change install path to be at the root of C:\ drive.
  5. Click Install.
  6. At the end select Disable path length limit.
  7. Close installer.

1.2 - BlueRetro code checkout

  1. Restart your computer so that the PATH changes from previous installs are applied.
  2. Open the Terminal application (aka Windows Terminal that we installed previously).
    By default this open a PowerShell tab.
  3. Do the following commands:
    Set-ExecutionPolicy RemoteSigned
    git config --system core.longpaths true
    cd c:\
    git clone https://github.com/darthcloud/BlueRetroRoot.git
    cd c:\BlueRetroRoot
    git submodule update --init --recursive
    cd esp-idf
    $env:IDF_TOOLS_PATH = "c:\BlueRetroRoot\"
    .\install.ps1
    

1.3 - Setup Windows Terminal profile

  1. Click on ˅ in the Tab bar and select Settings.
  2. Click on Add a new profile.
  3. Select Windows PowerShell as a profile to duplicate.
  4. Click Duplicate.
  5. Set the name to BlueRetro Dev.
  6. Change Command line to:
    %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoExit -File c:\BlueRetroRoot\ps_blueretro_dev.ps1
    
  7. Change Starting directory to:
    c:\BlueRetroRoot\BlueRetro
    
  8. Click Save.

2 - Compiling BlueRetro firmware

  1. Open the Terminal application (aka Windows Terminal that we installed previously).
  2. Click + in the Tab bar and select BlueRetro Dev to load the development environement.
  3. Do the following commands:
    # Replace configs/hw1/universal by any other config you may wish
    cp configs\hw1\universal sdkconfig
    idf.py build
    idf.py -p COM1 flash
    idf.py -p COM1 monitor