Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Raspberry Pi Pico Panic in rot service ipc #3183

@alexandruradovici

Description

@alexandruradovici

The panic seems to be related to the rot13_callback. If the whole function is commented, there is no panic. If only its last line is commented, it panics.

␀RP2040 Revision 1 ASIC
Initia
panicked at 'Process org.tockos.examples.rot13 had a fault', kernel/src/process_standard.rs:333:17
        Kernel version tock-registers-v0.8-33-ge24d4c9df

---| No debug queue found. You can set it with the DebugQueue component.

---| Cortex-M Fault Status |---
No Cortex-M faults detected.

---| App Status |---
𝐀𝐩𝐩: org.tockos.examples.rot13   -   [Faulted]
 Events Queued: 0   Syscall Count: 8   Dropped Upcall Count: 0
 Restart Count: 0
 Last Syscall: Yield { which: 1, address: 0x0 }
 Completion Code: None


 ╔═══════════╤══════════════════════════════════════════╗
 ║  Address  │ Region Name    Used | Allocated (bytes)  ║
 ╚0x20006000═╪══════════════════════════════════════════╝
             │ Grant Ptrs       56
             │ Upcalls         360
             │ Process         880
  0x20005AF0 ┼───────────────────────────────────────────
             │ ▼ Grant          76
  0x20005AA4 ┼───────────────────────────────────────────
             │ Unused
  0x200049F4 ┼───────────────────────────────────────────
             │ ▲ Heap            0 |   4272               S
  0x200049F4 ┼─────────────────────────────────────────── R
             │ Data            500 |    500               A
  0x20004800 ┼─────────────────────────────────────────── M
             │ ▼ Stack         184 |   2048          
  0x20004748 ┼───────────────────────────────────────────
             │ Unused
  0x20004000 ┴───────────────────────────────────────────
             .....
  0x10020800 ┬─────────────────────────────────────────── F
             │ App Flash      1976                        L
  0x10020048 ┼─────────────────────────────────────────── A
             │ Protected        72                        S
  0x10020000 ┴─────────────────────────────────────────── H

  R0 : 0x00010000    R6 : 0x00000000
  R1 : 0x00000003    R7 : 0x00000000
  R2 : 0x00000001    R8 : 0x200047A8
  R3 : 0x00000000    R10: 0x0000000C
  R4 : 0x00000000    R11: 0x0000001A
  R5 : 0x20004800    R12: 0x0000000A
  R9 : 0x00000001 (Static Base Register)
  SP : 0x20004778 (Process Stack Pointer)
  LR : 0x1002026F
  PC : 0x100203A2
 YPC : 0x1002035A

 APSR: N 0 Z 0 C 0 V 0 Q 0
       GE 0 0 0 0
 EPSR: ICI.IT 0x00
       ThumbBit true 

 Total number of grant regions defined: 7
  Grant  0 : --          Grant  3 : --          Grant  6 0x10000: 0x20005aa4
  Grant  1 : --          Grant  4 : --        
  Grant  2 : --          Grant  5 : --        

 Cortex-M MPU
  Region 0: [0x20004000:0x20006000], length: 8192 bytes; ReadWrite (0x3)
    Sub-region 0: [0x20004000:0x20004400], Enabled
    Sub-region 1: [0x20004400:0x20004800], Enabled
    Sub-region 2: [0x20004800:0x20004C00], Enabled
    Sub-region 3: [0x20004C00:0x20005000], Disabled
    Sub-region 4: [0x20005000:0x20005400], Disabled
    Sub-region 5: [0x20005400:0x20005800], Disabled
    Sub-region 6: [0x20005800:0x20005C00], Disabled
    Sub-region 7: [0x20005C00:0x20006000], Disabled
  Region 1: [0x10020000:0x10020800], length: 2048 bytes; UnprivilegedReadOnly (0x2)
    Sub-region 0: [0x10020000:0x10020100], Enabled
    Sub-region 1: [0x10020100:0x10020200], Enabled
    Sub-region 2: [0x10020200:0x10020300], Enabled
    Sub-region 3: [0x10020300:0x10020400], Enabled
    Sub-region 4: [0x10020400:0x10020500], Enabled
    Sub-region 5: [0x10020500:0x10020600], Enabled
    Sub-region 6: [0x10020600:0x10020700], Enabled
    Sub-region 7: [0x10020700:0x10020800], Enabled
  Region 2: Unused
  Region 3: Unused
  Region 4: Unused
  Region 5: Unused
  Region 6: Unused
  Region 7: Unused

To debug, run `make debug RAM_START=0x20004000 FLASH_INIT=0x10020071`
in the app's folder and open the .lst file.

𝐀𝐩𝐩: rot13_client   -   [Yielded]
 Events Queued: 0   Syscall Count: 10   Dropped Upcall Count: 0
 Restart Count: 0
 Last Syscall: Yield { which: 1, address: 0x0 }
 Completion Code: None


 ╔═══════════╤══════════════════════════════════════════╗
 ║  Address  │ Region Name    Used | Allocated (bytes)  ║
 ╚0x20008000═╪══════════════════════════════════════════╝
             │ Grant Ptrs       56
             │ Upcalls         360
             │ Process         880
  0x20007AF0 ┼───────────────────────────────────────────
             │ ▼ Grant          76
  0x20007AA4 ┼───────────────────────────────────────────
             │ Unused
  0x20006AE8 ┼───────────────────────────────────────────
             │ ▲ Heap            0 |   4028               S
  0x20006AE8 ┼─────────────────────────────────────────── R
             │ Data            744 |    744               A
  0x20006800 ┼─────────────────────────────────────────── M
             │ ▼ Stack         152 |   2048          
  0x20006768 ┼───────────────────────────────────────────
             │ Unused
  0x20006000 ┴───────────────────────────────────────────
             .....
  0x10022800 ┬─────────────────────────────────────────── F
             │ App Flash      8136                        L
  0x10020838 ┼─────────────────────────────────────────── A
             │ Protected        56                        S
  0x10020800 ┴─────────────────────────────────────────── H

  R0 : 0x00000001    R6 : 0x00000000
  R1 : 0x00000000    R7 : 0x00000000
  R2 : 0x00000000    R8 : 0x10020838
  R3 : 0x20006800    R10: 0x1002251C
  R4 : 0x00000000    R11: 0x80000000
  R5 : 0x20006800    R12: 0xE9696B39
  R9 : 0x20006000 (Static Base Register)
  SP : 0x200067C0 (Process Stack Pointer)
  LR : 0x20006800
  PC : 0x10020DA2
 YPC : 0x10020DA2

 APSR: N 0 Z 0 C 1 V 0 Q 0
       GE 0 0 0 0
 EPSR: ICI.IT 0x00
       ThumbBit true 

 Total number of grant regions defined: 7
  Grant  0 : --          Grant  3 : --          Grant  6 0x10000: 0x20007aa4
  Grant  1 : --          Grant  4 : --        
  Grant  2 : --          Grant  5 : --        

 Cortex-M MPU
  Region 0: [0x20006000:0x20008000], length: 8192 bytes; ReadWrite (0x3)
    Sub-region 0: [0x20006000:0x20006400], Enabled
    Sub-region 1: [0x20006400:0x20006800], Enabled
    Sub-region 2: [0x20006800:0x20006C00], Enabled
    Sub-region 3: [0x20006C00:0x20007000], Disabled
    Sub-region 4: [0x20007000:0x20007400], Disabled
    Sub-region 5: [0x20007400:0x20007800], Disabled
    Sub-region 6: [0x20007800:0x20007C00], Disabled
    Sub-region 7: [0x20007C00:0x20008000], Disabled
  Region 1: [0x10020800:0x10022800], length: 8192 bytes; UnprivilegedReadOnly (0x2)
    Sub-region 0: [0x10020800:0x10020C00], Disabled
    Sub-region 1: [0x10020C00:0x10021000], Enabled
    Sub-region 2: [0x10021000:0x10021400], Enabled
    Sub-region 3: [0x10021400:0x10021800], Enabled
    Sub-region 4: [0x10021800:0x10021C00], Enabled
    Sub-region 5: [0x10021C00:0x10022000], Disabled
    Sub-region 6: [0x10022000:0x10022400], Disabled
    Sub-region 7: [0x10022400:0x10022800], Disabled
  Region 2: Unused
  Region 3: Unused
  Region 4: Unused
  Region 5: Unused
  Region 6: Unused
  Region 7: Unused

To debug, run `make debug RAM_START=0x20006000 FLASH_INIT=0x10020861`
in the app's folder and open the .lst file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Bug

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions