Giter Site home page Giter Site logo

clockfort / pico-setup-windows Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ndabas/pico-setup-windows

0.0 1.0 0.0 149 KB

Quickly get started with Raspberry Pi Pico/RP2040 on Windows

License: Apache License 2.0

Shell 1.47% PowerShell 76.73% Batchfile 21.80%

pico-setup-windows's Introduction

Pico setup for Windows

Download the latest release

This project aims to create an easy-to-use installer to get started on Windows (using the C/C++ SDK) with the Raspberry Pi Pico microcontroller board, and possibly other RP2040-based boards as well. It is inspired by, and is roughly equivalent to, the pico-setup project for Linux systems.

The installers automate the prerequisite installation on Windows, as explained in the official Getting started with Raspberry Pi Pico guide. In addition, the installer offers to clone and build the Raspberry Pi Pico SDK for C/C++, along with some related repos which might be useful.

Documentation for end-users is in the ReadMe.txt file that is copied by the installer.

The installers attempt to install the required tools silently, without user intervention. The installers are configured with the recommended options from the official guide. For advanced users who wish to configure the software themselves, it might be better to download and install the software manually, or using a package manager.

Included software

Building

The installers are built with NSIS 3. The NSIS script is generated by build.ps1 when provided with a JSON configuration file. The build script automatically downloads a local copy of NSIS to use for the build.

Configuration files for x86 (32-bit) and x64 (64-bit) builds are provided.

Compiling OpenOCD requires an installation of MSYS2. The build script automatically downloads and installs a local copy of MSYS2. You can specify a path to an existing copy of MSYS2 using the -MSYS2Path option. The build script will install a copy of MSYS2 at this path if it doesn't find an existing copy.

It is highly recommended to use a dedicated copy of MSYS2 for this build.

To build:

.\build.ps1 .\x64.json -MSYS2Path ~\Downloads\msys64
.\build.ps1 .\x86.json -MSYS2Path ~\Downloads\msys64

The built installers will be saved to the bin directory.

Tests

There are tests for some parts of the build scripts. You can run them like this:

Install-Module Pester -Force
Import-Module Pester -PassThru # Check the version of the imported module -- we need v5 or greater
Invoke-Pester -Output Detailed

Credits

RefreshEnv.cmd is from Chocolatey.

pico-setup-windows's People

Contributors

ndabas avatar lurch avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.