GithubHelp home page GithubHelp logo

thecore-embedded / example_blinky Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 2.0 32 KB

Blinky LEDs example with theCore embedded framework

Home Page: https://forgge.github.io/theCore/examples/blinky.html

License: Mozilla Public License 2.0

CMake 37.01% C++ 62.99%
thecore embedded stm32 stm32discovery demo stm32f4-discovery discovery-board embedded-systems cpp

example_blinky's Introduction

Blinky example for theCore embedded C++ framework

https://travis-ci.org/theCore-embedded/example_blinky.svg?branch=master

This example flashes available LEDs on supported boards, one by one.

Detailed description

See theCore documentation for blinky example for more information.

Supported targets (boards)

Target name Configuration file Description
stm32f4_disc stm32f4_discovery.json STM32F4 discovery board
tiva_tm4c_launchpad tiva_tm4c_launchpad.json TM4C123G LaunchPad Evaluation Kit

Quick start

  1. Install theCore (this may take a while):

    pip3 install tcore
    tcore bootstrap
    
  2. Download this example:

    tcore init --remote https://github.com/theCore-embedded/example_blinky
    
  3. Step into the project directory:

    cd example_blinky
    
  4. Compile:

    • For STM32 Discovery board:

      tcore compile --target stm32f4_disc
      
    • For Tiva TM4C LaunchPad:

      tcore compile --target tiva_tm4c_launchpad
      
  5. Connect your board.

  6. Run:

    • For TivaC launchpad:

      tcore flash --sudo
      
    • For old STM32F407G-DISC boards, with STLINK/V2:

      tcore flash --sudo
      
    • For new STM32F407G-DISC1 boards, with STLINK/V2.1:

      tcore flash --sudo --debugger-config stlink-v2.1
      
  7. Observe LEDs blinking on your board.

Found a bug?

Let it out! File an issue or create a pull-request, if you already have an idea how to fix it.

example_blinky's People

Contributors

forgge avatar rostakagmfun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

example_blinky's Issues

"Error: open failed" while running openocd

Hi,

I had to change the line
source [find interface/stlink-v2.cfg]
to
source [find interface/stlink-v2-1.cfg]
otherwise I get

$ sudo openocd -f ../core/scripts/stm32f4discovery.cfg
[sudo] password for username: 
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Error: open failed
in procedure 'init' 
in procedure 'ocd_bouncer'

I have openocd v0.10.0 built with --enable-stlink.

core/build_api.cmake:19 - CMAKE_SYSTEM_NAME is blank

Hello,
I'm using CMake 3.9.6. I got this error while going through instructions listed in README.md.

$ nix-shell core --pure
[nix-shell:~/test/theCore-blinky]$ mkdir build
[nix-shell:~/test/theCore-blinky]$ cd build
[nix-shell:~/test/theCore-blinky/build]$ cmake -DCMAKE_TOOLCHAIN_FILE=../core/toolchains/arm-cm4-gnu.cmake ..
CMake Error at core/build_api.cmake:19 (if):
  if given arguments:

    "Linux" "STREQUAL"

  Unknown arguments specified
Call Stack (most recent call first):
  CMakeLists.txt:4 (include)


-- Configuring incomplete, errors occurred!

CMAKE_SYSTEM_NAME is blank unless "project(whatever)" specified prior to reading CMAKE_SYSTEM_NAME variable.

Setup nightly travis builds

Due to constant changes in Nix environment and some updates, blinky project can be failed to build, as #3 demonstrates.

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.