Skip to content

Instantly share code, notes, and snippets.

@jsgf
Created August 1, 2017 06:25
Show Gist options
  • Save jsgf/d0e526595290388870044a6a32565b47 to your computer and use it in GitHub Desktop.
Save jsgf/d0e526595290388870044a6a32565b47 to your computer and use it in GitHub Desktop.
Stack overflow
ISL29035: Light Intensity: 31
SI7021: Temperature: 25 deg C
SI7021: Humidity: 43%
FXOS8700CQ: X: -16
FXOS8700CQ: Y: -356
FXOS8700CQ: Z: 943
ISL29035: Light Intensity: 0
SI7021: Temperature: 25 deg C
SI7021: Humidity: 43%
FXOS8700CQ: X: -17
FXOS8700CQ: Y: -353
FXOS8700CQ: Z: 934
ISL29035: Light Intensity: 31
SI7021: Temperature: 25 deg C
SI7021: Humidity: 43%
FXOS8700CQ: X: -14
Kernel panic at /home/jeremy/git/tockos/tock/kernel/src/process.rs:793:
"Process sensors had a fault"
Kernel version 0b000a6b
---| Fault Status |---
Memory Management Unstacking Fault: true
Memory Management Stacking Fault: true
Forced Hard Fault: true
Fault Status Register (CFSR): 0x00000018
Hard Fault Status Register (HFSR): 0x40000000
---| App Status |---
App: sensors - [Fault]
Events Queued: 0 Syscall Count: 45077 Last Syscall: COMMAND
╔═══════════╤══════════════════════════════════════════╗
║ Address │ Region Name Used | Allocated (bytes) ║
╚0x20006000═╪══════════════════════════════════════════╝
│ ▼ Grant 392 | 392
0x20005E78 ┼───────────────────────────────────────────
│ Unused
0x200051F0 ┼───────────────────────────────────────────
│ ▲ Heap 1736 | 4944 S
0x20004B28 ┼─────────────────────────────────────────── R
│ Data 808 | 808 A
0x20004800 ┼─────────────────────────────────────────── M
│ ▼ Stack 2080 | 2048 EXCEEDED!
0x20003FE0 ┼───────────────────────────────────────────
│ Unused
0x20004000 ┴───────────────────────────────────────────
.....
0x00032000 ┬─────────────────────────────────────────── F
│ App Flash 8104 L
0x00030058 ┼─────────────────────────────────────────── A
│ Protected 88 S
0x00030000 ┴─────────────────────────────────────────── H
R0 : 0x00000000 R6 : 0x200049B0
R1 : 0x00000000 R7 : 0x20004B20
R2 : 0x00000000 R8 : 0x200051D0
R3 : 0x00000000 R10: 0x20004990
R4 : 0x0000000A R11: 0x20004968
R5 : 0x00000000 R12: 0x00000000
R9 : 0x20004800 (Static Base Register)
SP : 0x20003FE0 (Process Stack Pointer)
LR : 0x00000000
PC : 0x00000000
YPC : 0x00030636
APSR: N 0 Z 0 C 0 V 0 Q 0
GE 0 0 0 0
IPSR: Exception Type - Thread Mode
EPSR: ICI.IT 0x00
ThumbBit false !!ERROR - Cortex M Thumb only!
To debug, run `make debug RAM_START=0x20004000 FLASH_INIT=0x30081`
in the app's folder and open the .lst file.
App: accel-leds - [Yielded]
Events Queued: 0 Syscall Count: 3392806 Last Syscall: YIELD
╔═══════════╤══════════════════════════════════════════╗
║ Address │ Region Name Used | Allocated (bytes) ║
╚0x20008000═╪══════════════════════════════════════════╝
│ ▼ Grant 360 | 360
0x20007E98 ┼───────────────────────────────────────────
│ Unused
0x20007040 ┼───────────────────────────────────────────
│ ▲ Heap 1528 | 5200 S
0x20006A48 ┼─────────────────────────────────────────── R
│ Data 584 | 584 A
0x20006800 ┼─────────────────────────────────────────── M
│ ▼ Stack 344 | 2048
0x200066A8 ┼───────────────────────────────────────────
│ Unused
0x20006000 ┴───────────────────────────────────────────
.....
0x00034000 ┬─────────────────────────────────────────── F
│ App Flash 8096 L
0x00032060 ┼─────────────────────────────────────────── A
│ Protected 96 S
0x00032000 ┴─────────────────────────────────────────── H
R0 : 0x00000000 R6 : 0x200068E4
R1 : 0x200068E0 R7 : 0x200067E8
R2 : 0x00000000 R8 : 0x200067E4
R3 : 0x200067EC R10: 0x00000000
R4 : 0x00000000 R11: 0x00000000
R5 : 0x00000000 R12: 0x200067E8
R9 : 0x20006800 (Static Base Register)
SP : 0x20006798 (Process Stack Pointer)
LR : 0x0003221B
PC : 0x200068D4
YPC : 0x000321FE
APSR: N 0 Z 0 C 0 V 0 Q 0
GE 0 0 1 1
IPSR: Exception Type - (Unknown! Illegal value?)
EPSR: ICI.IT 0x08
ThumbBit false !!ERROR - Cortex M Thumb only!
To debug, run `make debug RAM_START=0x20006000 FLASH_INIT=0x32089`
in the app's folder and open the .lst file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment