summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-06-03 11:03:57 -0700
committerGerrit <chrome-bot@google.com>2012-06-22 10:13:36 -0700
commitd47905ce270b5934a2e8952a64bcc316fd27fda0 (patch)
tree127e36fe5e8c5060a41cb15435c022b7c26476e8 /README
parentbf376505e933f438b6fb6c1033f442e19c457ced (diff)
downloadchrome-ec-d47905ce270b5934a2e8952a64bcc316fd27fda0.tar.gz
Make ASSERT() report assertion failures
Rather than just reset the board, report assertion failures to aid debugging. To enable this, use CONFIG_ASSERT_HELP. BUG=chrome-os-partner:10149 TEST=manual Enable the option for snow, add a failing ASSERT() to the rw command and see the a nice message is printed now. ASSERTION FAILURE 'address' in command_read_word() at common/memory_commands.c:00000037 Change-Id: Ice59434c5daf610832dd0e1fcfa5630dc847bb67 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/25411
Diffstat (limited to 'README')
-rw-r--r--README6
1 files changed, 6 insertions, 0 deletions
diff --git a/README b/README
index 9d9484f79f..c03731c032 100644
--- a/README
+++ b/README
@@ -54,3 +54,9 @@ Build Options
Precise data bus error, Forced hard fault, Vector catch, bfar = 60000000
mmfs = 00008200, shcsr = 00000000, hfsr = 40000000, dfsr = 00000008
+- CONFIG_ASSERT_HELP
+
+ Report assertion failures in a vebose manner to aid debugging. When
+ enabled an ASSERT() which fails will produce message in the form:
+
+ ASSERTION FAILURE '<expr>' in function() at file:line