Skip to main content
Ctrl+K
Alexandru Maxiniuc - Home Alexandru Maxiniuc - Home
  • About me
  • Blogs
  • Presentations
  • Teaching
  • GitHub
  • LinkedIn
  • Blog RSS feed
  • About me
  • Blogs
  • Presentations
  • Teaching
  • GitHub
  • LinkedIn
  • Blog RSS feed

Recent Posts

  • 15 October - SPL components in YANGA
  • 03 October - SPLED meets Arduino Uno
  • 26 September - What you did not want to know about your code
  • 24 September - Why unit tests crashed on windows but worked on the microcontroller
  • 08 March - Coding Dojo - Detect CI Context

Archives

  • 2025 (7)
  • 2024 (3)
  • Posts tagged pointer

Posts tagged pointer

Why unit tests crashed on windows but worked on the microcontroller

  • 24 September 2025
  • learning
  • c gtest pointer portability

When writing cross-platform code, it’s easy to forget that pointers don’t always have the same size. This caused a segmentation fault in one of our unit tests.

On the Aurix MCU, pointers are 32-bit. In the code a pointer (memory address) was stored in a uint32_t variable. That worked fine on the target.

Read more ...


© Copyright 2024, Alexandru Maxiniuc.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.