Tag: C++

C++ is a high-level programming language that offers both procedural and object-oriented features, known for its efficiency, flexibility, and widespread use in software development.

  • How to decode the exception backtrace of an ESP32

    How to decode the exception backtrace of an ESP32

    By

    in

    When the execution of code on an ESP32 throws an exception, the output might look like this: The Espressif tools contain a binary called xtensa-esp32-elf-addr2line which will decode the backtrace addresses and return details about the source files, lines and function names, etc. To run the tool, call: In the command above, simply…

    Read more

  • ESP32: Stack canary watchpoint triggered (loopTask)

    ESP32: Stack canary watchpoint triggered (loopTask)

    By

    in ,

    Recently, I stumble upon the following error on an ESP32: The reason for this was an infinite loop that was caused by two methods that where called from each other. So the execution of the first method never ended. The code looked something like this (extremly simplified): Foto von Vishnu Mohanan auf Unsplash

    Read more

  • How to set C, C++ or Fortran compiler for CMake

    By

    in ,

    To use a different compiler (e.g. Intel Compiler, CLANG or PGI) or a different version then CMake uses by default, one can either set environment variables or modify the CMakeLists.txt file. CMake evaluates the environment variables CC for the C compiler, CXX for the C++ compiler and FC for the Fortran compiler: For a more…

    Read more