Giter Site home page Giter Site logo

octodemo / vscode-get-started Goto Github PK

View Code? Open in Web Editor NEW

This project forked from open-cmsis-pack/vscode-get-started

0.0 0.0 0.0 28 KB

Get started example for CMSIS-Toolbox in Visual Studio Code

License: Apache License 2.0

C 79.91% Assembly 20.09%

vscode-get-started's Introduction

GetStarted project

This project prints "GetStarted World" and a counter value via semihosting output. It is configured for Arm Virtual Hardware (Cortex-M3).

Prerequisites

Tools

Packs

Required packs are listed in the file GetStarted.csolution.yml

Project Structure

The project is generated using the CMSIS-Toolbox and is defined in csolution format:

Generated Project

  1. Use then csolution and cpackget commands to install missing packs.

    ./ $ csolution list maps -s GetStarted.csolution.yml > packs.txt
    ./ $ cpackget add -f packs.txt
  2. Use the csolution command to create .cprj project file.

    ./ $ csolution convert -s GetStarted.csolution.yml
    
    ./build/GetStarted/GCC/Debug+AVH/GetStarted.Debug+AVH.cprj - info csolution: file generated successfully
    ./build/GetStarted/GCC/Release+AVH/GetStarted.Release+AVH.cprj - info csolution: file generated successfully
    ./GetStarted.cbuild-idx.yml - info csolution: file generated successfully
    ./build/GetStarted/GCC/Debug+AVH/GetStarted.Debug+AVH.cbuild.yml - info csolution: file generated successfully
    ./build/GetStarted/GCC/Release+AVH/GetStarted.Release+AVH.cbuild.yml - info csolution: file generated successfully
  3. Use the cbuild command to an executable file, here fore the Debug build.

    ./ $ cbuild build/GetStarted/GCC/Debug+AVH/GetStarted.Debug+AVH.cprj
    
    info cbuild: Build Invocation 1.0.0 (C) 2022 ARM
       :    // output of the build steps
    info cbuild: build finished successfully!

Note: During the build process required packs may be downloaded.

Execute Project

The project is configured for execution on Arm Virtual Hardware which removes the requirement for a physical hardware board.

  • When using MDK-Professional, you may execute it with the command:

    ./ $ VHT_MPS2_Cortex-M3 -f vht-config.txt -a build/GetStarted/GCC/Debug+AVH/outdir/GetStarted.Debug+AVH.elf

vscode-get-started's People

Contributors

helaili avatar jonatanantoni 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.