Giter VIP home page Giter VIP logo

stm32-visual-studio-code-template's Introduction

stm32-Visual-Studio-Code-template

NOTE: This template is created to allow coding in vscode with intellisense enabled. compiling / debugging etc is up to you, but I also included a KEIL project inside which you can use for that.

This is a workaround I managed to get working. I threw stdperiph and cmsis libraries in the folder and added their paths to vscode's c_cpp_properties.json. I don't know much about stm32 tho but this just works.

Open this folder with VSCode. main.c is in the /src (some library files are in there as well so it is a little messy but I am too lazy to fix it. If you help organising things you are welcome as a contributor) There is also a KEIL folder where there is an existing project which you can use to compile and debug your program. just copy contents of main.c between and copy library files to inc and src folders it should work.

why this template? Why vscode?

Because on high-dpi displays KEIL will screw your eyes with its use of outdated UI APIs. Besides, vscode is my fav editor I use many extensions its way more useful anyways.

do I have to do anything further to get this shit working?

Only one: Install this extension in vscode so you get better c/c++ intellisense: https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools

which stm32 did you use for this template?

stm32f4 discovery (STM32F407VGTx). You should be able to recreate KEIL project for your board and replace CMSIS folder and files under src/ and inc/ if necessary.

are you a visual studio fan?

No. I have a macbook :P

can I contribute?

If you have any ideas / fixes or whatever, submit a pull request, you are welcome.

stm32-visual-studio-code-template's People

Contributors

muhsinfatih avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stm32-visual-studio-code-template's Issues

debug or compile and flash

is this only coding from vscode ?

it would be great if we could use it to run , compile and debug.

this url (Using Visual Studio Code with STM32CubeMX for ARM Development)

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.