Code Monkey home page Code Monkey logo

ft9xx-vscode's Introduction

ft9xx-vscode

Demonstrate use of VSCode to compile and debug code for the FT9xx devices from Bridgetek.

VSCODE files

The configuration files are in the .vscode directory:

  • c_cpp_properties.json : includePath has path to FT9xx hardware library include file. This allows code completion and syntax checking by C/C++ Intellisense.
  • tasks.json : Tasks for building using makefiles; programming FT9xx using the command line programming utility.
  • launch.json : Debugging launcher. This tells VSCode to open Bridgetek's python debugger bridge before starting gdb to perform the debugging.

Building

The build process uses a Makefile in the top level directory. Build tasks are accessed through the "Terminal -> Run Task..." menu item. This Makefile has 2 parameters which can be set during the call from the command line, TARGET and CONFIG. The default values are the name of the current directory for TARGET and DEBUG for the CONFIG. If the value of CONFIG is not DEBUG then a release build will be performed. For example to build with a targetname outfilename which is a debug build use the following command line:

make TARGET=outputname CONFIG=DEBUG The output binary file for the build will be in the file FT900_DEBUG/outputname.bin and the ELF file for debugging is FT900_DEBUG/outputname.elf.

Debugging

To start debugging the "Run -> Start Debugging" menu item is used. This will ensure that the project is build and programmed into the FT9xx device before starting the debugger. The code will be programmed into Program Memory by default rather than Flash Memory.

The debugging progess requires that a bridge program is started before gdb is started. The bridge program is written in python (compatible with python 3 and 2.7+). The gdb code is instructed to connect to the python bridge code via a network socket (localhost:9998).

ft9xx-vscode's People

Contributors

brtchip-gdm avatar

Watchers

 avatar Ho Tan Dat 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.