Giter Site home page Giter Site logo

air-pencil's Introduction

README

A project with STM32F103RB is called air pencil. Using FreeRTOS, SPL, auto build with make and require arm-none-eabi-gcc-4.8.4 or newer. Hardware requirements:

  • STM32F103RB ARM Cortex-M3 MCU (ST Microelectronics)
  • ADXL345 Digital Accelerometer (Analog Devices)
  • ITG3200 Digital Gyroscope (InvenSense)
  • J-Link BASE hardware v9.x (Segger - older versions not support for Linux)

Tree

.
├── FreeRTOS      => RTOS core
├── Libraries     => Standard peripheral libraries
├── Sensors       => Sensors libraries
├── Inc           => user header files
└── Src           => user source files

Flash Programming with J-Link

So, let's go with J-Link Software Pack installation:

Connect MCU board to debugger. Run J-Link commander:

  • In terminal, run JLinkExe
  • With prompt displayed as J-Link, type connect (you can see like J-Link>connect)
  • With prompt displayed as Device, type name of MCU line (you can see like Device>STM32F103RB)
  • With prompt displayed as TIF, type representing symbol of interface you wanna use (I choose SWD, like TIF>S)
  • With prompt displayed as Speed, type operation frequency of interface (e.g. TIF>1000, unit as kHz). If you complete all step above, you'll be received a message as Cortex-M3 identified. and prompt will be displayed as J-Link

To load data file into target memory, you can use syntax:

  • loadfile <filename>, [<addr>], supported extensions: *.bin, *.mot, *.hex, *.srec and is needed for bin files only or simple
  • loadbin <filename>, <addr> with only *.bin files. In there, is the first memory address of the flash area (see more in linker file)
  • E.g.: loadbin demo.bin, 0x0800000

air-pencil's People

Contributors

baoson2211 avatar

Watchers

James Cloos avatar  avatar Triệu Ngọc Xuân avatar

air-pencil's Issues

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.