Endpreise in CHF – Versand inklusive Schweizer Unternehmen · 076 792 63 50 (WhatsApp/SMS)
Kurse › Arduino › Stufe 32
Arduino · Advanced · Stufe 32 / 40

STM32 with the Arduino Core

Apply your skills to ARM Cortex-M boards, use a hardware debugger and exploit STM32 peripherals.

Advanced freischalten · CHF 29.90 Stufen 27–40, einmalig, kein Abo

10 Lektionen in dieser Stufe

  1. ARM Cortex-M versus AVR: What Changes for Your Code
    Compare word size, memory model, speed and peripheral richness and their effect on existing sketches. · Lab: Run a timing benchmark and print type sizes on both architectures.
  2. Setting Up the STM32 Arduino Core and a Debug Probe
    Install the core, wire the SWD probe and upload reliably. · Lab: Flash Blink over SWD and identify the chip's flash and RAM size.
  3. Clock Tree, Alternate Pin Functions and 5 V Tolerance
    Read a pin table to choose pins for each peripheral and avoid damaging non-tolerant inputs. · Lab: Remap a serial port to alternative pins and build a pin plan from the datasheet.
  4. 12-Bit ADC, DAC and Hardware Timers on STM32
    Use higher-resolution analog and flexible timers through the core's API. · Lab: Generate a waveform with the DAC or timer PWM and read it back with the ADC.
  5. Step-Through Debugging with Breakpoints and Watches
    Halt the processor, step through code and inspect variables and registers. · Lab: Find a planted bug using breakpoints instead of serial prints.
  6. Hard Faults: Reading the Stack Frame to Find the Cause
    Interpret fault status and the stacked program counter after a crash. · Lab: Trigger a null-pointer fault and locate the offending line from the fault handler output.
  7. Native USB: Appearing as a Serial Device or Keyboard
    Use the chip's own USB peripheral for virtual serial and HID functions. · Lab: Make the board enumerate as a serial device and then as a one-key keyboard.
  8. Calling HAL Functions from a Sketch for DMA Sampling
    Reach beyond the Arduino API to vendor functions for high-speed data transfer. · Lab: Capture a block of ADC samples at a fixed high rate into a buffer using DMA.
  9. Independent Watchdog, Reset Causes and Backup Registers
    Supervise firmware with a hardware watchdog and keep small data across resets. · Lab: Report the cause of the last reset and count watchdog resets in a backup register.
  10. Porting an AVR Project to STM32 Step by Step
    Plan and execute a port covering pins, timing, libraries and voltage levels. · Lab: Port your data logger or controller and verify each feature against a checklist.

Abschlussprojekt

An existing AVR project ported to an STM32 board with debugger-verified behaviour, native USB interface, watchdog and a written porting report.

Teile für diese Stufe

  • 1 × STM32 development board with Cortex-M3 or M4
  • 1 × ST-Link compatible debug probe
  • 1 × USB cable matching the board
  • 1 × Solderless breadboard 830 points
  • 1 × Jumper wire set male-male and male-female
  • 1 × USB-to-serial adapter 3.3 V and 5 V
  • 1 × Potentiometer 10 kilohm
  • 4 × LED 5 mm assorted
  • 4 × Resistor 220 ohm
  • 2 × Tactile push button
  • 1 × OLED display 0.96 inch I2C 128x64
  • 1 × BME280 pressure, humidity and temperature module
  • 1 × USB logic analyzer 8 channel
  • 1 × Digital multimeter

In jeder Lektion legst du die passenden Teile direkt in den Warenkorb. Arduino-kompatibel →

Voraussetzung: Levels 1–31: register-level thinking, PlatformIO, 3.3 V design and interrupt handling.

🔒 Sichere Zahlung · 3D Secure 🔐 SSL-verschlüsselt 🚚 Versand in die ganze Schweiz 🇨🇭 Schweizer Unternehmen