Giter Club home page Giter Club logo

ch58x_cmake's Introduction

CH58X CMake

build example from openwch by CMake

Instruments

  • CMake 3.25.0
  • MounRiver Studio Community toolchain
    • RISC-V Embedded GCC (riscv gcc 8.2.0)
    • OpenOCD
  • VSCode Extensions
    • C/C++
    • CMake
    • CMake Tools
    • Native Debug

Flash/Debug

For flashing and debuging set self paths into '.vscode/settings.json'

Build

Add to 'cmake-tool-kits.json' all parts of compiler like this:

(for windows path: 'C:\Users\%username%\AppData\Local\CMakeTools\cmake-tools-kits.json')

{
    "name": "GCC 8.2.0 riscv-none-embed",
    "compilers": {
        "C": "...RISC-V Embedded GCC/bin/riscv-none-embed-gcc.exe",
        "CXX": "...RISC-V Embedded GCC/bin/riscv-none-embed-g++.exe",
        "LINKER": "...RISC-V Embedded GCC/bin/riscv-none-embed-ld.exe",
        "ASM": "...RISC-V Embedded GCC/bin/riscv-none-embed-gcc.exe",
        "OBJCOPY": "...RISC-V Embedded GCC/bin/riscv-none-embed-objcopy.exe",
        "OBJDUMP": "...RISC-V Embedded GCC/bin/riscv-none-embed-objdump.exe",
        "SIZE": "...RISC-V Embedded GCC/bin/riscv-none-embed-size.exe",
        "READELF": "...RISC-V Embedded GCC/bin/riscv-none-embed-readelf.exe",
        "ADDR2LINE": "...RISC-V Embedded GCC/bin/riscv-none-embed-addr2line.exe",
        "AR": "...RISC-V Embedded GCC/bin/riscv-none-embed-ar.exe",
        "NM": "...RISC-V Embedded GCC/bin/riscv-none-embed-nm.exe"
    }
}

Configure and build project through 'CMake Tools' extension

ch58x_cmake's People

Contributors

astr347 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.