Course Outline

Development of C language standards for government: C90, C99, C11/C17, and C2x – new features. Overview of source and header files. Examination of basic data types and their usage. Discussion on storage classes and attributes, including const, volatile, static, restricted, inline, and others. Guidelines for preprocessor usage; comparison of macros versus inline functions. Best practices in coding style. Exploration of features relevant to embedded programming. Analysis of program sections and memory usage.

Programming techniques: strategies for avoiding unnecessary conversions, methods for limiting ranges and scopes. Introduction to ARM Cortex-M line cores. Overview of the STM32 microcontroller family. Description of the hardware used in exercises.

Exercises:
1. Understanding the firmware structure, use of types and attributes. Common issues and mistakes related to GPIO programming.
2. Application of const attribute and character strings, UART programming.
3. Implementation of ADC and multiplexed LED display – utilizing fixed-point arithmetic and state machines. Hardware display refresh via DMA.
4. Attendee’s choice: crossplexing display, software-triggered interrupts, or routing C stdout stream to a physical interface.

 7 Hours

Number of participants


Price per participant

Testimonials (2)

Upcoming Courses

Related Categories