Posts tagged c

What you did not want to know about your code

As any other engineer, I also like to hack around in the weekends at six o’clock in the morning when the family is still asleep. This time I wanted to play around with the new Matter smart home connectivity standard and add some temperature and humidity sensors to my smart home setup.

I bought some esp32-h2 development boards (they support WiFi, Thread and BLE), some SHT31-D sensors and started the old fashioned read the docs to get started. I must say the espressif docs are well written and the community is very active.

dependency graph

Read more ...


Why unit tests crashed on windows but worked on the microcontroller

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 ...