Skip to content
This repository has been archived by the owner on Nov 3, 2019. It is now read-only.

theCore-embedded/example_blinky

Repository files navigation

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.