Online course · Engineering

Edge-AI Vision on the STM32N6 NPU: Models, Quantisation and Camera Pipelines

Run int8 vision models on the STM32N6 Neural-ART NPU with a real camera pipeline

Created by TrainSkool Trainer

Edge-AI Vision on the STM32N6 NPU: Models, Quantisation and Camera Pipelines course cover

Coming soon Launch price ₹2,999

This course is not open for enrolment yet.

About this course

For embedded and ML engineers who have done basic TinyML and want to ship camera-based AI on a microcontroller. You will work on the STM32N6570-DK discovery kit with its camera and LCD, following one running example: GradeCam, a tomato-grading camera built by a fictional Coimbatore firm for a pack-house near Udumalpet. You will learn the STM32N6's Cortex-M55 and Neural-ART NPU, compile and validate models with the ST Edge AI Core CLI, pick models from the STM32 model zoo, quantise them to full int8, decide what runs on the NPU and what falls back to the CPU, set up the camera and ISP pipeline, decode detector outputs with NMS and counting, measure latency, memory and power honestly, and turn a prototype into a device that boots from flash with a self-test and watchdog. Every lesson has a lab on the real board with a pass line for automated checking, plus auto-checked Python exercises. Prerequisite: our TinyML on Microcontrollers course or equivalent, and C. Included: 24 text lessons with slides and quick checks, 22 Python exercises, seven chapter projects, chapter quizzes, a capstone with a 100-point rubric, a final exam and a certificate of completion. Lessons are text and slides; trainer videos are coming. Tool versions are as at the time of writing. Not affiliated with or endorsed by STMicroelectronics or Arm. What you will be able to do: - You will be able to explain how the STM32N6's Cortex-M55, Neural-ART NPU and memories execute a vision model. - You will be able to compile, profile and validate a model on the board with stedgeai, n6_loader and validate. - You will be able to quantise a model to full int8 and check what runs on the NPU versus the CPU. - You will be able to configure the camera, ISP and DCMIPP pipes and write a tested preprocessing contract. - You will be able to decode detector outputs, run IoU-based NMS and count objects on a moving belt in C. - You will be able to measure latency, memory and power on the device and report them with conditions. - You will be able to apply model-side and compiler-side optimisation, including compiler profiles and memory pools. - You will be able to take a prototype to boot from flash with a self-test, watchdog and fail-safe outputs.

What you'll learn

  • Explain how the STM32N6's Cortex-M55, Neural-ART NPU and memories execute a vision model
  • Compile, profile and validate a model on the board with stedgeai, n6_loader and validate
  • Quantise a model to full int8 and check what runs on the NPU versus the CPU
  • Configure the camera, ISP and DCMIPP pipes and write a tested preprocessing contract
  • Decode detector outputs, run IoU-based NMS and count objects on a moving belt in C
  • Measure latency, memory and power on the device and report them with conditions
  • Apply model-side and compiler-side optimisation, including compiler profiles and memory pools
  • Take a prototype to boot from flash with a self-test, watchdog and fail-safe outputs

Course content

Chapter 1 · Module 1: The STM32N6 and the Neural-ART NPU

  • Code lab: Why Edge Vision on a MicrocontrollerA tomato pack-house near Udumalpet in Tiruppur district receives crates from about two hundred small farmers every morning.20 topics · 55 min
  • Code lab: Inside the STM32N657: Cortex-M55, Neural-ART and MemoryWhen GradeCam's first model ran slower than expected, Arjun's instinct was to blame the model.21 topics · 60 min
  • Code lab: The STM32N6570-DK: Boot Modes, Flashing and a First LabMost people who give up on the STM32N6 in the first week do not fail at AI.24 topics · 60 min

Chapter 2 · Module 2: The ST Edge AI Toolchain

  • Code lab: The Tool Landscape: ST Edge AI Core, STM32Cube AI Studio and CubeIDEAI, ST Edge AI Core, the ST Edge AI Developer Cloud, STM32CubeMX, STM32Cube AI Studio and the model zoo scripts, written across several years and versions.20 topics · 50 min
  • Code lab: Compiling a Model with stedgeai generateThe moment a trained model becomes firmware is one command: stedgeai generate.19 topics · 60 min
  • Code lab: Validating on the Board: NPU_Validation, n6_loader and validateA model that compiles is not a model that works. Quantisation, a wrong input type or a memory-placement problem can all produce a network that runs happily on the NPU and gives wrong answers.25 topics · 60 min

Chapter 3 · Module 3: Models and int8 Quantisation

  • Code lab: Choosing a Model from the STM32 Model ZooArjun's first plan for GradeCam was to train a large detector from scratch on a cloud GPU.19 topics · 55 min
  • Code lab: int8 Quantisation Maths and Full-Integer PTQThe Neural-ART NPU accelerates integer arithmetic. A model trained in float32 has to be converted so that its weights and activations are 8-bit integers before the NPU can run it fast.21 topics · 65 min
  • Code lab: What Runs on the NPU and What Falls Back to the CPU99, and ran four times slower than the zoo model it was based on.26 topics · 55 min

Chapter 4 · Module 4: The Camera and ISP Pipeline

  • Code lab: Image Sensors, Raw Bayer and MIPI CSI-2A vision model is only as good as the pixels it receives. Arjun's grader scored 93 percent on photos from his phone and 71 percent on frames from the board's camera.22 topics · 55 min
  • Code lab: DCMIPP Pipes: Crop, Downscale, ISP and Aspect RatioThe camera on the discovery kit produces frames far larger than any model input: a 5-megapixel sensor against a classifier that wants 128 x 128 or a detector that wants 480 x 480.20 topics · 60 min
  • Code lab: The Preprocessing Contract: Formats, Buffers and the DisplayBetween the camera pipe and the network there is an unwritten contract: the byte layout, the colour order, the value range and the memory location of the input buffer.26 topics · 55 min

Chapter 5 · Module 5: Classification and Detection on the Board

  • Code lab: Image Classification: Deploying a Produce GraderEverything so far has been preparation: the chip, the tools, a quantised model, a camera pipeline with a written contract.19 topics · 60 min
  • Code lab: Object Detection Outputs: Grids, Anchors and DecodingThe singulated lane is a luxury. On the main belt at Udumalpet, tomatoes arrive three and four abreast, touching each other, at random positions.20 topics · 60 min
  • Code lab: IoU, NMS, Post-processing and CountingAfter decoding, a detector reports the same tomato five or ten times: neighbouring cells and anchors all see it and all pass the confidence threshold.25 topics · 60 min

Chapter 6 · Module 6: Measuring Latency, Memory and Power

  • Code lab: Measuring Latency and Frame Rate Honestly" Arjun had a number ready from the validation app: the inference time of the detector.20 topics · 55 min
  • Code lab: Memory Budgets: Reading the ReportsOn a laptop, running out of memory is an error message. On a microcontroller it is a corrupted frame buffer, a stack overwriting the NPU's activations, or a hard fault three hours into a shift.20 topics · 55 min
  • Code lab: Power and Energy per InferenceSome pack-houses near Udumalpet lose grid power for an hour or two most days in summer.25 topics · 55 min

Chapter 7 · Module 7: Optimisation and Production

  • Code lab: Model-Side OptimisationChapter 6 gave GradeCam an honest datasheet, and the datasheet showed a problem: with the display and tracking running, the detector's end-to-end p95 left too little margin for the reject lamp at…20 topics · 60 min
  • Code lab: Compiler-Side Optimisation: Profiles, Memory Pools and EpochsOnce the model is right, the same network can still run noticeably faster or slower depending on how the Neural-ART compiler maps it: which memories hold which buffers, whether the epoch controller…21 topics · 60 min
  • Code lab: From Dev Mode to a Field ProductEverything so far has run in development mode, loaded by a debugger into RAM and gone at the next power cut.27 topics · 65 min

Chapter 8 · Module 8: Capstone: The GradeCam Produce-Grading Camera

  • Code lab: Capstone Brief and RequirementsYou have built every part of GradeCam in pieces: the chip and boot chain, the toolchain, a quantised grader, the camera contract, detection post-processing, measurement and a production release.12 topics · 40 min
  • Code lab: Build GuideA capstone fails most often not on a hard problem but on integration order: a team trains for two weeks, then discovers on the board that the camera delivers BGR, the model has a SW epoch in the…21 topics · 70 min
  • Code lab: Deliverables and RubricSubmit one folder (or repository) named gradecam_capstone with the following.8 topics · 40 min

Assessments and certificate

  • Module 1 quiz: The STM32N6 and the Neural-ART NPU7 questions · 15 min · pass mark 70%
  • Module 2 quiz: The ST Edge AI Toolchain7 questions · 15 min · pass mark 70%
  • Module 3 quiz: Models and int8 Quantisation7 questions · 15 min · pass mark 70%
  • Module 4 quiz: The Camera and ISP Pipeline7 questions · 15 min · pass mark 70%
  • Module 5 quiz: Classification and Detection on the Board7 questions · 15 min · pass mark 70%
  • Module 6 quiz: Measuring Latency, Memory and Power7 questions · 15 min · pass mark 70%
  • Module 7 quiz: Optimisation and Production7 questions · 15 min · pass mark 70%
  • Module 8 quiz: Capstone: The GradeCam Produce-Grading Camera7 questions · 15 min · pass mark 70%
  • Edge-AI Vision on the STM32N6 NPU: Models, Quantisation and Camera Pipelines — final assessment20 questions · 40 min · pass mark 70%

Related courses

Frequently asked questions

Can I get a refund for Edge-AI Vision on the STM32N6 NPU: Models, Quantisation and Camera Pipelines?

Yes. You can request a full refund within 7 days of purchase, provided you have completed no more than 25% of the lessons, not started the final exam and not been issued a certificate. Pre-orders of a course that has not launched yet can be refunded in full any time before launch. Email refunds@trainskool.com with your order reference; approved refunds go back to your original payment method.

How long do I have access to the course?

Lifetime access. A one-time payment of ₹2,999 keeps the course in your TrainSkool learning dashboard, on the web and in the TrainSkool apps, with no subscription to cancel.

Do I get a certificate?

Yes. TrainSkool issues a certificate when you meet the course requirements, including passing its 9 graded assessments. Every certificate has a public verification link that employers can check.

Are there any prerequisites?

No other course is required. The course level is advanced, so check the curriculum to confirm it matches your experience.

How is the course delivered?

Online and self-paced: 8 modules and 24 lessons, about 22h 50m of study, with graded assessments. Learn in your browser or the TrainSkool Android and Windows apps.