import: pb5700_sdk-FPGA package
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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)
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user