C for Real-Time Developers
About this Course
|Course Type||Course Code||Duration|
Learning the C programming language is one thing, but learning how to use it effectively and appropriately in a real-time embedded environment is another. For many programmers, these skills are learnt the hard way, through trial and error on the job. This course addresses this issue by not only teaching the C programming language, but through emphasising the pragmatic use of C in a real-time environment. This is achieved through both lecture and direct hands-on experience.
Approximately 50% of the course is consists of writing code for a real target. During the week attendees will build up a complete solution to a case study that exercises all significant parts of the course.
Why Attend this Course?
The core C syntax and semantics
How to access hardware and program interrupts in the language
About memory and performance issues associated with C
How real-time operating systems (RTOS) affect the use of the language
What Makes this Course Stand Apart?
This course utilises target hardware during the embedded programming practical exercises. The target board is an ARM7-based microcontroller (NXP LPC2129) connected to an application board. Programming the target microcontroller to control the application board gives attendees a real-sense of embedded application development.
What you will Learn?
Upon completion of this course, you will be able to:
To provide an understanding of the essentials of the C programming language.
To give you practical experience of writing C for real-time and embedded systems.
To demonstrate the traps and pitfalls of the language when used in a real-time system.
To give you the confidence to apply these new concepts to your next real-time project.
This course is designed for engineers who are embarking on a project using C for the first time. It is also suitable for those needing to support a customer using C, and those requiring to be brought up to date since initially being taught at University.
Experience of programming, e.g. assembly language
Prior knowledge of C is useful but not essential
Introduction to Real-Time Systems
Characteristics and demands of real-time software development
Introduction to C Programming
Structure of a C program
The C compilation process
Types and Operators
C base types
Precedence & associativity
Logical expressions and operations
Bit Manipulation & Hardware Access
Accessing hardware with pointers
Manipulating information at the bit level
General Purpose IO (GPIO)
The Function as a logical program unit
How parameters are passed
Arrays, Pointers and Strings
Arrays as circular buffers
Relationship between pointers & arrays
C string handling
Device Interaction & Synchronization
Serial peripheral programming
Structures and Unions
Big & Little Endian
Using structures to access I/O devices
Internal & External interrupt control
Priorities & Masks
Dynamic Memory Management
Malloc and free
Issues (leaks, fragmentation, etc.)
Definitions and declarations;
Scope and lifetime
The C Pre-Processor
Conversions, promotions, truncation
Considerations between different compilers & platforms.
Concurrency and multi-tasking
Task synchronisation and communication
MMU and memory protection
Concurrency and libraries
Using a RTOS
The Standard C Library
Target Specific Considerations
Language features affecting portability
Non-standard C language features
Assembly language interfacing
What happens at power-on?
Initialising the C runtime
What next- How do I arrange a group course or book a public place.?
We are here to help so please utilise our live chat team.
Call to speak to your account manager or a consultant on
+ 44(0)345 467 9557 or if you would prefer email email@example.com