Training nRF Connect SDK Programming: From Theory to Practice

ac6-formation, un département d'Ac6 SAS
 
Site displayed in English (USA)
Site affiché en English (USA)View the site in French
go-up

leftthintrapezium-20-008080 ac6 > ac6-formation > Programming > Real-Time > nRF Connect SDK Programming Inquire Download as PDF Call us Write us
NRF5nRF Connect SDK Programming
From Theory to Practice
Objectifs
  • Apprendre à développer, configurer, déboguer et tracer des applications Zephyr
  • Découvrir le concept de multitâche temps réel
  • Comprendre les contraintes temps réel, comme le déterminisme, la préemption ou les interruptions
  • Comprendre les services du kernel Zephyr
  • Apprendre les mécanismes de communication et de synchronisation
  • Comprendre la gestion de la mémoire et les structures de données de Zephyr
  • Comprendre le mode utilisateur et le mode kernel
  • Écrire un device tree
  • Écrire un pilote complet
  • Cours théorique
    • Support de cours imprimé et au format PDF (en anglais)
    • Le formateur répond aux questions des stagiaires en direct pendant la formation et fournit une assistance technique et pédagogique
  • Activités pratiques
    • Les activités pratiques représentent de 40% à 50% de la durée du cours
    • Elles permettent de valider ou compléter les connaissances acquises pendant le cours théorique.
    • Une machine virtuelle préconfigurée
    • Cible Qemu
    • Exemples de code, exercices et solutions
    • Le formateur assiste les stagiaires pendant les exercices
  • Au début de chaque demi-journée une période est réservée à une interaction avec les stagiaires pour s'assurer que le cours répond à leurs attentes et l'adapter si nécessaire
  • Durée totale : 5 jours
  • De 40% à 50% du temps de formation est consacré aux activités pratiques qui servent à valider la bonne compréhension des concepts enseignés.
  • Theoretical course
    • PDF course material (in English) supplemented by a printed version.
    • The trainer answers trainees' questions during the training and provide technical and pedagogical assistance.
  • Practical activities
    • Practical activities represent from 40% to 50% of course duration.
    • Code examples, exercises and solutions
    • One PC (Linux ou Windows) for the practical activities with, if appropriate, a target board.
      • One PC for two trainees when there are more than 6 trainees.
    • For onsite trainings:
      • An installation and test manual is provided to allow preinstallation of the needed software.
      • The trainer come with target boards if needed during the practical activities (and bring them back at the end of the course).
  • Downloadable preconfigured virtual machine for post-course practical activities
  • At the start of each session the trainer will interact with the trainees to ensure the course fits their expectations and correct if needed
  • Any embedded systems engineer or technician with the above prerequisites.
  • The prerequisites indicated above are assessed before the training by the technical supervision of the traineein his company, or by the trainee himself in the exceptional case of an individual trainee.
  • Trainee progress is assessed in two different ways, depending on the course:
    • For courses lending themselves to practical exercises, the results of the exercises are checked by the trainer while, if necessary, helping trainees to carry them out by providing additional details.
    • Quizzes are offered at the end of sections that do not include practical exercises to verifythat the trainees have assimilated the points presented
  • At the end of the training, each trainee receives a certificate attesting that they have successfully completed the course.
    • In the event of a problem, discovered during the course, due to a lack of prerequisites by the trainee a different or additional training is offered to them, generally to reinforce their prerequisites,in agreement with their company manager if applicable.

Course Outline

  • Zephyr Project
  • Zephyr Ecosystem
  • Why use Zephyr
  • Install and use Zephyr
  • Build and Configuration Systems
    • West
    • CMake
    • Zephyr SDK
  • Application components and structure
  • West manifest
  • Operation without Threads
  • GPIO subsytem
  • Utilities
    • Container_of
    • For_each
  • Data Structures
    • Single-linked List
    • Double-linked List
    • Ring Buffers
Exercise:  Hello World from Zephyr, configure and blink LEDs using Zephyr
Exercise:  Manage Zephyr linked list and understand container_of macro
  • Thread Fundamentals
    • Thread Control Block
    • Creating Threads
    • Threads Priorities
    • Changing Thread Priority
    • Thread States
  • Main and Idle Threads
  • Delays
  • Suspending Threads
  • Kernel Structures
    • Simple linked-list ready queue
    • Red/black tree ready queue
    • Traditional multi-queue ready queue
  • Thread Custom Data
Exercise:  Create and manage threads
Exercise:  Create periodic threads
  • Memory Managers
  • Dynamic memory managers
    • K_heap
    • System heap
    • Memory Slabs
    • Memory Blocks
  • Heap Listeners
  • Thread Resource Pools
  • RAM/ROM reports
  • Stack information
    • Stack Overflow detection
    • Stack analysis
Exercise:  Understand dynamic memory allocation in Zephyr
Exercise:  Display threads information and detect stack overflow
  • Overview
  • Memory Domains
    • Partitions
    • Logical apps
  • Syscalls
    • Kernel objects
    • Permissions
  • Mutual Exclusion
  • Mutexes
  • Gatekeeper threads
  • Critical Sections
  • Atomic
  • SpinLocks
  • Semaphores
  • Events
  • Polling
Exercise:  The producer-consumer problem, synchronize and avoid concurrent access problems
Exercise:  Understanding event bit group by synchronizing several threads
  • Message Queues
  • Queues
    • FIFOs
    • LIFOs
  • Mailboxes
  • Pipes
  • Stacks
  • Zephyr Bus (Zbus)
    • Zbus overview
    • Elements
    • Usage
Exercise:  Create a print gatekeeper thread using message queue
Exercise:  Synchronous communication using mailboxes
  • Threads and Interrupts
  • Interrupts in zephyr
  • Interrupts on ARM Cortex-M
  • Handler thread
  • Queue within an ISR
  • Workqueue Threads
Exercise:  Understand how to wait on multiple events and interrupt safe APIs
Exercise:  Understand how to pass data using Queues from an interrupt to a thread
Exercise:  Create and submit work items from interrupts to custom WorkQueue
  • Timers
    • Defining a Timer
    • Using a Timer Expiry Function
  • Timer types
    • One-shot timers
    • Auto-reload timers
  • Timer Commands
Exercise:  Understand the use of one-shot and auto-reload timers
  • Why to use modules?
  • Module structure
  • Out-of-tree module
  • YAML files
  • Module CMakeLists.txt
Exercise:  Create a simple hello world module
  • Advantages
  • Kconfig Options in Zephyr RTOS
  • Configuration System
  • Writing custom Kconfig Options
  • Kconfig extension
  • Using Kconfigs
Exercise:  Create a module that uses custom Kconfig options
More

To book a training session or for more information, please contact us on info@ac6-training.com.

Registrations are accepted till one week before the start date for scheduled classes. For late registrations, please consult us.

You can also fill and send us the registration form

This course can be provided either remotely, in our Paris training center or worldwide on your premises.

Scheduled classes are confirmed as soon as there is two confirmed bookings. Bookings are accepted until 1 week before the course start.

Last update of course schedule: 24 April 2025

Booking one of our trainings is subject to our General Terms of Sales