Skip to content

8. Errata

ronf-ucb edited this page Jan 18, 2021 · 1 revision
  1. Windows filenames: If you get `ccache: error: Failed to create temporary file'
    Windows is limited to 260 character paths by default, and it looks like the total path length for some of these build files is pushing up against that. Use short directory names

  2. `float' cannot be used in interrupt service routines. (probably due to saving state of FPU registers?) Be careful on this. double is ok, and it may be possible to save FPU state.

  3. If get weird errors in compiling, use 'PlatformIO: Clean' (the empty trash symbol). This will clean out temporary files, and a fresh build should be working again.

  4. If adding extra files to src, make sure to manually add file to 'CMakelists.txt' CMakeLists.txt: idf_component_register(SRCS "hello_world_main.c" “other1.c” INCLUDE_DIRS "")

  5. Running out of stack space (printf uses a lot of stack space) for a task

  6. Starving the ``idle’’ process (will cause a crash). Make sure every process has 'vTaskDelay()' to allow a lower priority process to run

  7. When creating tasks, make sure stack space is sufficient (good to use for debugging)