Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
c449ab9f
Commit
c449ab9f
authored
8 years ago
by
DipSwitch
Browse files
Options
Downloads
Plain Diff
Merge pull request #5336 from OTAkeys/print_ipsr
cortexm_common: print trapped interrupt from ipsr
parents
fa44132c
63c0e9be
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/cortexm_common/panic.c
+16
-0
16 additions, 0 deletions
cpu/cortexm_common/panic.c
with
16 additions
and
0 deletions
cpu/cortexm_common/panic.c
+
16
−
0
View file @
c449ab9f
/*
/*
* Copyright (C) 2015 INRIA
* Copyright (C) 2015 INRIA
* Copyright (C) 2015 Eistec AB
* Copyright (C) 2015 Eistec AB
* Copyright (C) 2016 OTA keys
*
*
* This file is subject to the terms and conditions of the GNU Lesser General
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* Public License v2.1. See the file LICENSE in the top level directory for more
...
@@ -16,14 +17,29 @@
...
@@ -16,14 +17,29 @@
*
*
* @author Oliver Hahm <oliver.hahm@inria.fr>
* @author Oliver Hahm <oliver.hahm@inria.fr>
* @author Joakim Nohlgård <joakim.nohlgard@eistec.se>
* @author Joakim Nohlgård <joakim.nohlgard@eistec.se>
* @author Toon Stegen <toon.stegen@altran.com>
*/
*/
#include
"cpu.h"
#include
"cpu.h"
#include
"lpm.h"
#include
"lpm.h"
#include
"log.h"
#ifdef DEVELHELP
static
void
print_ipsr
(
void
)
{
uint32_t
ipsr
=
__get_IPSR
()
&
IPSR_ISR_Msk
;
if
(
ipsr
)
{
/* if you get here, you might have forgotten to implement the isr
* for the printed interrupt number */
LOG_ERROR
(
"Inside isr %d
\n
"
,
((
int
)
ipsr
)
-
16
);
}
}
#endif
void
panic_arch
(
void
)
void
panic_arch
(
void
)
{
{
#ifdef DEVELHELP
#ifdef DEVELHELP
print_ipsr
();
/* The bkpt instruction will signal to the debugger to break here. */
/* The bkpt instruction will signal to the debugger to break here. */
__asm__
(
"bkpt #0"
);
__asm__
(
"bkpt #0"
);
/* enter infinite loop, into deepest possible sleep mode */
/* enter infinite loop, into deepest possible sleep mode */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment