Enhancing QP Development with Assert Feedback

QP/C and QP/C++ Q_ASSERT Meta Information

Introducing the qassert-meta repository. This repository provides a C module with means to lookup a meta description of internal QP Q_ASSERT ids. These are the QP internal asserts encountered when developing an application for QP. In many cases, especially when new to QP, hitting one of these asserts might be confusing to new developers. This repository provides immediate feedback on the meaning of the assert, why code might be hitting the assert, and URLs with related documentation.

Use this module in your firmware to enable meta debug print output (when available) on any QP assert encountered while developing the firmware. If the firmware has no means to print during an assert, keep this repository handy to manually search the internal tables.

The best experience however is provided by cpputest-for-qpc (or qpcpp). Follow a TDD methodology and the library will automatically print the meta information. See the screenshot example below:

qassert-meta is MIT licensed. Check it out here: https://github.com/covemountainsoftware/qassert-meta

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Cove Mountain Software

Subscribe now to keep reading and get access to the full archive.

Continue reading