Skip to content
ecamyEmbedded Code Academy

Embedded Code Academyembedded systems news and exercises

One bit goes to 1.
The LED comes on.

ecamy follows microcontroller, real-time and IoT news, and teaches you to program them one register at a time. Every news item links to its source; every exercise is corrected step by step.

Read the news Try an exercise

  • 8sourced news items
  • 3exercises, solved step by step
  • 0cookies, trackers or third-party resources

test bench · GPIOA, pin PA5

F401RE B1B2 LD2 PA5 · D13
RCC->AHB1ENR |= (1U << 0);      /* clock for port A */GPIOA->MODER |= (1U << 10);     /* PA5 as output */while (1) {    GPIOA->ODR |= (1U << 5);    /* LED on */    delay_ms(500);    GPIOA->ODR &= ~(1U << 5);   /* LED off */    delay_ms(500);}

GPIOA_ODR0x4002 0014

  1. 0
  2. 0
  3. 0
  4. 0
  5. 0
  6. 0
  7. 0
  8. 0
  9. 0
  10. 0
  11. 1
  12. 0
  13. 0
  14. 0
  15. 0
  16. 0

0x0000 0020

3.3 V0 VPA5 500 ms
The code acts, live, on the GPIOA_ODR register (bit 5), pin PA5 and the LD2 LED. ecamy drawing based on the Nucleo-F401RE board: LD2 is wired to PA5 (UM1724 (new tab), rev. 17); registers per RM0368 (new tab), rev. 6, sections 6.3.9, 8.4.1 and 8.4.6. The real LD2 is green; here it takes ecamy's colour.

Top story

Latest news

Tools

Texas Instruments opens CCStudio to AI agents

TI is adding so-called agentic AI features to its CCStudio environment, both standalone and in VS Code. MCP servers give agents knowledge of the software kits, pins and peripherals of its chips, and an assistant helps migrate code from a competing microcontroller. The environment remains a free download.

Source : All About Circuits (new tab)

Microcontrollers

STM32G5: twice the compute for power electronics

ST is launching the STM32G5 series, mixed-signal microcontrollers built around a 280 MHz Cortex-M33 and announced as twice as fast as the STM32G4. They target data-centre power supplies, robotics and motor control, with a high-resolution timer, a 12-bit ADC and a 12-bit DAC. On security: TrustZone, secure boot and post-quantum cryptography libraries.

Source : STMicroelectronics (press release) (new tab)

Microcontrollers

STM32A: the STM32 family moves into automotive

At the STM32 Summit, ST presented a unified STM32 platform for industry, automotive and robotics, built on Cortex-M cores and the STM32Cube ecosystem. First result: the STM32A family (A4, A5 and A9), aimed at systems where functional safety matters. The first parts are sampling, with wide availability planned for 2027.

Source : STMicroelectronics (press release) (new tab)

IoT and radio

Nordic puts Wi-Fi 6, Bluetooth LE and AI on one chip

The nRF71 series combines Wi-Fi 6, Bluetooth LE and Thread with a 256 MHz Cortex-M33; the nRF7120E adds Wi-Fi 6E and a neural-network accelerator. Nordic claims standby power up to 20 times lower than its nRF70 series, a manufacturer figure not yet independently measured. The chips are sampling with selected customers.

Source : CNX Software (new tab)

RTOS and software

Zephyr 4.5: 178 new boards and faster networking

The open-source RTOS Zephyr releases version 4.5.0, adding the Infineon TriCore and Qualcomm Hexagon architectures and new driver classes, including LIN and DALI. TCP throughput gains up to 21% on the zperf benchmark, and QUIC and HTTP/3 make their debut. The software bill of materials (SBOM) moves to the SPDX 3 format.

Source : Zephyr Project (release notes) (new tab)

RTOS and software

Canonical promises up to 15 years of maintenance for Zephyr

Canonical announced Zephyr 26.04 LTS, its distribution of the Zephyr RTOS, with up to 15 years of security maintenance, against 5 years of standard support for the upstream project. As with Ubuntu, an LTS release will ship every two years and an interim release every six months.

Source : Canonical (blog) (new tab)

Embedded security

Cyber Resilience Act: reporting exploited vulnerabilities becomes mandatory

Since 11 September 2026, manufacturers of any product with digital elements sold in the European Union must report actively exploited vulnerabilities and severe incidents. The timeline: early warning within 24 hours, notification within 72 hours, on a single platform run by ENISA. The regulation's other obligations apply from 11 December 2027.

Source : European Commission (new tab)

Exercises of the moment

Two to three minutes each, nothing to install. Wrong answer? We explain why.

Exercise 1Beginner · 2 min

The resistor for an LED

An output pin supplies 5 V to a red LED in series with a resistor. The LED drops 2 V and must carry 15 mA.

Ignore the voltage drop of the pin. What resistance is needed, in ohms?

A number, in ohms. Example: 470

Source : Ohm's law (Wikipedia) (new tab) ; LED circuit, section “Series resistor” (Wikipedia) (new tab)

Exercise 2Intermediate · 3 min

Bit masks on a register

An 8-bit register REG holds 0x0F. The two lines below are executed in order.

What does REG hold afterwards? Answer in hexadecimal.

REG |= (1u << 5);  // set bit 5
REG &= ~(1u << 0); // clear bit 0
Example: 0x3A

Source : Bitwise operators and shifts in C (cppreference) (new tab) ; Compound assignment operators |= and &= (cppreference) (new tab)

Exercise 3Beginner · 2 min

Binary, decimal, hexadecimal

A sensor returns the byte 0b10110110.

Write its value in decimal, then in hexadecimal.

Example: 97
Example: 0x61

Source : Hexadecimal (Wikipedia) (new tab)

Soon

GPIO course demo

A first milestone on driving a microcontroller's pins, with a simulated board in the browser. Still being verified: no date and no price for now.

See what is planned

About

ecamy stands for
Embedded Code Academy.

Embedded Code Academy

A code academy for embedded systems: understand what a microcontroller does, down to the bit. The magazine is the front door; the course comes next.

  1. One source per fact

    Every news item links to the original page. A figure announced by a manufacturer is presented as a claim, not as a measurement.

  2. Our own words

    Titles and summaries are written by ecamy. No text or image is copied from elsewhere.

  3. Nothing hidden

    No cookies, no trackers, no font or script from elsewhere. The language you pick is remembered in your browser, and that is all.

  4. The course is coming

    A microcontroller course, with a simulated board in the browser, is in preparation. No date and no price for now. See the course page.