27 lines
463 B
Markdown
27 lines
463 B
Markdown
sys_exception
|
|
---
|
|
|
|
This example is a demo project to trigger exception event with software
|
|
|
|
+ It will register the exception handlers (ecall) from App layer
|
|
|
|
+ Trigger exception event with instructions (ecall)
|
|
|
|
```c
|
|
// at main.c
|
|
__ECALL();
|
|
```
|
|
|
|
## Log
|
|
|
|
Use serial port with baudrate 115200, 8bit, no parity check.
|
|
|
|
+ `ecall`
|
|
|
|
```
|
|
Jul 17 2025 10:05:43
|
|
Software triggers exception event
|
|
=> enter ecall handler (cause= 11)
|
|
|
|
```
|