Giter Site home page Giter Site logo

stm8-sdcc-cmake's Introduction

STM8-SDCC-CMAKE

About

This is project for developing applications for STM8 microcontrollers using SDCC compiler.

Project based on https://github.com/ObKo/stm32-cmake

There is support for STM8S and STM8L series now.

ST StdPeriph Library doesn't support SDCC Compiler out of the box. StdPeriphLib in this project was edited for SDCC.

Required software:

  • SDCC compiler - http://sdcc.sourceforge.net/
  • CMake 2.8 or higher - https://cmake.org/

Usage

For successful build you need to define some variables.

  • CMAKE_TOOLCHAIN_FILE - path to sdcc-generic.cmake toolchain file.
  • CMAKE_MODULE_PATH - path to cmake files directory.
  • STM8_StdPeriph_DIR - path to StdPeriph directory.
  • STM8_CHIP - stm8 chip name, e.g. stm8l152c6 or stm8s105k4

Example for makefiles:

cmake -DCMAKE_TOOLCHAIN_FILE=<path_to_sdcc-generic.cmake> -DCMAKE_MODULE_PATH=<path_to_project_cmake_dir> -DSTM8_CHIP=<chip name> -DSTM8_StdPeriph_DIR=<path to std periph> -G"MinGW Makefiles" <path_to_source_dir>

It builds sdcc's *.ihx file. If you need you can convert it to *.hex or *.bin file.

stm8-sdcc-cmake's People

Contributors

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