Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

C++ and FreeRTOS

This is not a question.

Just wanted to share a finding/gotcha that got in the way of my development with the NRF52 SDK 15.0.0.

I am using C++ predominantly and pulled in the great work you guys did in the SDK for the FreeRTOS port. However early in my development I noticed the compiler kept asking for an "extra code brace" for things to compile.

Long story short I found the culprit in the stream_buffer.h file of SDK 15.0.0

The bottom of the file has the wrong __cplusplus define. Externs instead of closing the brace for the top of the file.

Sorry if this has been reported before but I couldn't find it mentioned.

Related