theCore

Contents:

  • theCore: C++ Embedded Framework
  • Guides
  • theCore scripts
  • Examples
    • Simple LED blink example
      • Supported targets (boards)
      • Wiring
      • Preparing
      • Building
      • Running
      • Expected output
    • Simple Hello World example
    • External interrupts from user button
    • HTU21D temperature and humidity sensor example
    • STM32F4 discovery audio example with CS43L22 audio DAC
    • HM-10 Bluetooth LE (4.0) wireless module example
    • Supported targets (boards)
    • SD-card demo using FATFS and SDSPI
  • Project structure
  • Supported architectures
  • Supported platforms
  • Device drivers
  • Libraries and utilities
  • OS abstraction layer
  • Community and developer guidelines
  • Documentation development and contribution
  • Testing and CI
  • Credits and acknowledgements
  • Change Log
  • FAQ
theCore
  • Docs »
  • Examples »
  • Simple LED blink example
  • View page source

Simple LED blink example¶

Location:https://github.com/theCore-embedded/example_blinky
External HW:none

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

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

Wiring¶

No special wiring is required. Just connect the board to the powered USB port.

Preparing¶

  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
    

Building¶

  • For STM32 Discovery board:

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

    tcore compile --target tiva_tm4c_launchpad
    

Running¶

  1. Connect your board.

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

Expected output¶

On-board LEDs will blink with the different (RGB) colors.

Next Previous

© Copyright Max Olender, 2017.

Built with Sphinx using a theme provided by Read the Docs.