ChibiOS/RT Demo A free embedded RTOS

Slides:



Advertisements
Similar presentations
Lecture 6 Testing and Debugging on a Physical Android Device and other Power User Stuff.
Advertisements

Microcontroller – PIC – 4 PIC types PIC architecture
ARM development environment Modified Content Philips LPC2106 ARM chip ARM target board PSPad customised development environment Troubleshooting.
© 2003 Xilinx, Inc. All Rights Reserved Debugging.
Microcomputer Systems 1
Pico-SAM9G45 Development Board for Envirobat Presented by Kiran G K Date : 18/06/13.
Introduction CS212 Dick Steflik. What is CS-212 Primarily an introduction to linear and non-linear data structures  arrays  stacks and queues  lists.
Travis Reed Todd Hummel Kwan-Truc. Concept USB 1.1 SPI b.
Infineon Technologies Corp. June 99 1 HOT167-1 Version 2.0 F PWMmax = x 50ns = 78 kHz Pulse Width Modulation Unit (PWM) (20 MHz)  4 independent.
Using PDG with e2studio: Example
Getting Started with a Cortex-M3 Board
AVR 8-bit RISC micro controllers by Atmel Seamk / ICT / Seppo Stenberg General features of AVR family Development tools - board, compiler, simulator etc.
This material exempt per Department of Commerce license exception TSU Debugging.
Asst. Prof. Dr. Alper ŞİŞMAN
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
SKP8CMINI-15,17 Tutorial 1 Software Development Process using HEW4
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 1 Introduction.
M16C/Tiny SKP Tutorial 1 Software Development Process using HEW4
Introduction Purpose Objectives Content Learning Time
CS4101 嵌入式系統概論 Freescale Tower System Prof. Chung-Ta King Department of Computer Science National Tsing Hua University, Taiwan ( Materials from
Hardware Overview Net+ARM – Well Suited for Embedded Ethernet
Cortex-M3 Debugging System
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Using Embedded Tools for I2C, SPI, and USB Debugging for.
Silicon Labs ToolStick Development Platform
Curriculum Development for ENGR 290 Introduction to Microcontroller
The 6713 DSP Starter Kit (DSK) is a low-cost platform which lets customers evaluate and develop applications for the Texas Instruments C67X DSP family.
328eForth for Arduino Uno C. H. Ting February 16, 2012 SVFIG.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Getting Started Installing GreenHills and Net+OS Setting up the Development Board Building the Sample Application.
Holtek 32-bit MCU Promotion
AT91SAM9261-EK WinCE 6.0 DEMO ATMEL AT91 Application & Support Group
NetBurner MOD 5282 Network Development Kit MCF 5282 Integrated ColdFire 32 bit Microcontoller 2 DB-9 connectors for serial I/O supports: RS-232, RS-485,
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
COMPUTER SYSTEM LABORATORY Lab10 - Sensor II. Lab 10 Experimental Goal Learn how to write programs on the PTK development board (STM32F207). 2013/11/19/
1 CS503: Operating Systems Spring 2014 Dongyan Xu Department of Computer Science Purdue University.
AT91SAM9261-EK WinCE 5.0 DEMO ATMEL AT91 Application & Support Group Version 1.O February 2007.
The New FTC Platform (Connecting your legacy hardware)
BEST Robotic, Inc. easyC Breakout Session By: Guy Chetrit Programming With easyC September 15, Copyright © 2012 BEST Robotics, Inc. All rights reserved.
Lab 1 Department of Computer Science and Information Engineering National Taiwan University Lab1 - Sensor 2014/9/23/ 13 1.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
ChibiOS/RT Tools Setup A free embedded RTOS
UBI >> Contents Chapter 2 Software Development tools Code Composer Essentials v3: Code Debugging Texas Instruments Incorporated University of Beira Interior.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Implementation of Embedded OS Lab4 Cortex-M3 Programming.
Features of the PIC18 microcontroller - 8-bit CPU - 2 MB program memory space (internal 32KB to 128KB) bytes to 1KB of data EEPROM - Up to 4096 bytes.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
Components of a typical full-featured microcontroller.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
Develop VB in WinCE Maker : Axel Chou. Introduction to WinCE 3.0 One of the Microsoft Embedded System –WinCE 3.0 –Embedded NT 4.0 Customize : Minimize.
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
HOME SECURITY USING WIRELESS SENSOR NETWORK UNDER THE ESTEEMED GUIDANCE OF: P.RAMESH D.SIVOM( ) KANMANI RAVI( ) B.SAI RAJSEKHAR( )
STM32 및 개발보드 소개 Jang Hyunsung Embedded Systems Lab. Dept. of CSE, PNU
Embedded Linux By Gus Wirth. What makes it embedded? ● Rather nebulous, line has blurred over the years ● Limited purpose ● Small resources compared to.
Introduction to the ARM mbed Platform– A Hands-on Course
Lab 1: Using NIOS II processor for code execution on FPGA
Microcontrollers & GPIO
Computer System Laboratory
Implementation of Embedded OS
Microcontroller Applications
Microcomputer Systems 1
AVR32 UC3 EVK1100 Control Panel Tutorial
RX111 Promotion Board (RPB) hands on
Designing with ARM Cortex-M4 (and a Real Dev Board)
Today’s agenda Hardware architecture and runtime system
Software Setup & Validation
Computer System Laboratory
Embedded Development Tools
Presentation transcript:

ChibiOS/RT Demo A free embedded RTOS http://www.chibios.org

STM32F4-Discovery STM32F407VGT6 LQFP100 package 168MHz, 1MB Flash, 192KB RAM On-board STLink V2 debugger with dedicated USB port, also usable to debug external devices like a standalone debugger OTG micro USB connector connected to the OTG-FS peripheral 8 LEDs, both user and dedicated Reset and User buttons On-board LIS302DL MEMS accelerometer On-board MP45DT02 MEMS microphone On-board CS43L22 audio CODEC connected to audio jack All peripherals supported by ChibiOS/RT 2

STM32F4 ARM 32-bit Cortex™-M4 CPU with FPU Adaptive real-time accelerator (ART Accelerator™) allowing 0-wait state execution from Flash memory, frequency up to 168 MHz 3×12-bit, 2.4 MSPS A/D converters: up to 24 channels and 7.2 MSPS in triple interleaved mode 2×12-bit D/A converters 16-stream DMA controller with FIFOs and burst support Up to 17 timers: up to twelve 16-bit and two 32-bit timers Up to 140 I/O ports with interrupt capability 3 x I2C, 4 x USARTs, 2 x UARTs, 3 x SPIs, 2 x CAN interfaces SDIO interface 8- to 14-bit parallel camera interface FSMC external memory bus 3

Introducing Chibi Studio Chibi Studio is a complete development environment for ARM Eclipse Juno 4.2 classic with the following optional components installed: Eclipse CDT 8.1.0 C/C++ GDB Hardware Debugging 7.0.0 Eclipse XML Editors and Tools 3.4.0 Target Management Terminal 3.3.0 Serial Connector ChibiOS/RT debug plugin 1.0.8 ChibiOS/RT configuration plugin 1.1.0 Embedded Systems Register View plugin 0.2.1.90 GCC ARM toolchain gcc-arm-none-eabi-4_6-2012q2-20120614 YAGARTO Tools OpenOCD 0.6.0-rc2 ChibiOS/RT 2.5.0 4

Running Chibi Studio Run the toolchain through the desktop icon You will find yourself into and Eclipse environment configured with several projects already imported and ready to use 5

Opening a Project Now right click on the project and select “Open Project”, the project tree will be shown, you can close the project in the same way 6

Building and Cleaning Building and cleaning the project is very simple, all is done via the contextual menu, the Makefile is transparent to the user 7

Debugging #1 First we need to run a GDB server, ChibiStudio has several options already configured More options can be added using “External Tools Configurations…” 8

Debugging #2 Now the tool prompts for the configuration file specific for the board, note the path is C:\ChibiStudio\tools\openocd\scripts\board 9

Debugging #3 Starting a debug session, Eclipse switches to debug mode 10

Debugging #4 Complete source-level debugger Single step and breakpoins both C-level and instruction level Module outline for fast source browsing Stack back trace Variables inspection CPU registers inspection MCU peripheral registers inspection RTOS status inspection via ChibiOS/RT debug plugin Now, let the application run using the “continue” debug button 11

The Demo #1 Keeping the board in your hand move it around, the LEDs luminosity varies depending on the board orientation in 3D, this is done using: A dedicated “reader” thread to perform the processing An SPI port to read the on-board LIS302DL MEMS accelerometer using DMA Another SPI port to output the data read from the accelerometer Four PWM channels, one for each LED, that control the LEDs luminosity level Everything in about 40 lines of code in a single function 12

The Demo #2 It is not over yet, now connect the board to the PC using a micro USB cable, if the required USB driver is not already installed perform the driver installation The device is recognized as a communication port COMx and appears in the Windows Device Manager as follow: 13

The Demo #3 Now connect the communication port using a terminal emulation program, in this case the “Terminal” window present in Chibi Studio, any other program would work A simple command shell is ready to accept your commands 14

The Demo #4 From the shell, it is also possible to run the ChibiOS/RT test suite, benchmarks are included 15

The Demo #5 Adding the shell and the USB only requires few lines of code, both are standard components in ChibiOS/RT 16

End of Demo 17