embedded and real time systems training and consultancy

ARM Cortex-M Assembly Language Programming

Duration: 5 Days

Course Background

A knowledge of assembly language programming is a key skill for small embedded systems application developers. Not only does an understanding of the microcontroller instruction set help with debugging, it can be used to optimise code in resource constrained systems. It is also an important skill to have when implementing applications that are a mix of assembler and C code and when implementing low level device drivers.

This course will cover techniques for modular programming in assembler and the structured use of macros. It should also be of use to those teaching or developing computer science courses who will be delivering a module on more advanced microprocessor architectures, instruction sets and programming at the level of instruction sets.

Laboratory Workshops

Course Prerequisites and Target Audience

Basic knowledge of programming and working with PC tools is assumed. Attendees are also expected to have a working knowledge of number systems decimal, octal, hexadecimal and binary and basic logic operations such as AND, OR, Exclusive OR and NOT. An appreciation of basic approaches to structured programming would also be helpful.

Course Outline

  • ARM Cortex-M Overview
  • Overview of Development Tools
  • The ARM Cortex-M Architectures and Instruction Set
  • The ARM Cortex-M processor architecture and Instruction Set Details
  • Memory Map
  • Addressing Modes
  • Typical Peripherals and Devices
  • Working with the Assembler
  • Flash Memory Programming
  • Understanding and Implementing Startup Code for Cortex-M
  • Designing and implementing programs and applications
  • Macros
  • Interrupts
  • Digital Inputs and Outputs
  • Timers
  • Analog Inputs
  • Serial buses and Protocols
  • Introduction to multi-tasking