You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/doc/en/basic/app.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,3 +69,8 @@ install_app(pkg_path)
69
69
- Since touchscreens are standard, it is recommended to create a simple interface with touch interaction. You can refer to examples for implementation methods.
70
70
- Avoid making interfaces and buttons too small, as MaixCAM default screen is 2.3 inches with 552x368 resolution and high PPI. Make sure fingers can easily tap without making mistakes.
71
71
- Implement a simple serial interaction for the main functionality of each application based on the [serial protocol](https://github.com/sipeed/MaixCDK/blob/master/docs/doc/convention/protocol.md) (see [example](https://github.com/sipeed/MaixPy/tree/main/examples/communication/protocol)). This way, users can directly use it as a serial module. For instance, in a face detection application, you can output coordinates via serial port when a face is detected.
72
+
73
+
## APP power on auto start
74
+
75
+
Refer to [APP auto start on power up](./auto_start.md).
Copy file name to clipboardExpand all lines: docs/doc/en/basic/python.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ After mastering the basic syntax, you will be able to use MaixPy for programming
60
60
61
61
### Using Built-in Packages
62
62
63
-
Python comes with many commonly used packages and APIs built-in, so if you encounter any issues, you can search for “Python using xxxx” and you might find a solution right away. This applies to various common tasks, such as file handling, networking, system operations, algorithms, and more.
63
+
Python comes with many commonly used packages and APIs built-in, so if you encounter any issues, you can search for “Python using xxxx” and you might find a solution right away. This applies to various common tasks, such as file handling, multi thread, multi process, networking, system operations, algorithms, and more.
64
64
65
65
For example:
66
66
For those who are new to Python and have only dabbled in basic microcontroller development, they might wonder why there are no examples in the documentation for reading and writing to SD/TF cards. The reason is that a file system is already running on the SD/TF card by default, so you can use Python’s file handling APIs to read and write files directly on the SD card:
Copy file name to clipboardExpand all lines: docs/doc/en/faq.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,25 +189,25 @@ This is not an error message. It is a log message indicating that the multimedia
189
189
190
190
By default only support English charactors, if you want to show Chinese, you need to change font, refer to [Custom fonts part of image basic operation](./vision/image_ops.md#Chinese-support-and-custom-fonts)
191
191
192
-
## Program Exits with Prompt: app exit with code: 1
193
-
194
-
This occurs because the program encountered an error and exited abnormally. You need to check the logs to identify the issue. Here's how to check the logs:
195
-
196
-
###Method 1:
197
-
1. First, use **MaixVision** to connect to the device, ensuring all programs occupying the display and camera are closed.
198
-
2. Then connect to the device via **SSH** to access the SSH terminal. For details on connecting, refer to the [Linux Basics](./basic/linux_basic.md).
199
-
3. Execute the following commands:
200
-
- For Python programs:
201
-
```bash
202
-
cd /maixapp/apps/xxx && python main.py
203
-
```
204
-
Here, `xxx` is the ID of the application that encountered the error.
205
-
- For non-Python programs:
206
-
```bash
207
-
cd /maixapp/apps/xxx && ./xxx
208
-
```
209
-
Again, `xxx` is the ID of the application that encountered the error.
210
-
4. Carefully review the logs to check forerrors. Note that errors might not always be at the last line, so check thoroughly from the end upward.
192
+
###Program Exit and Message: "app exit with code: 1, log in /maixapp/tmp/last_run.log"
193
+
194
+
This indicates that the program encountered an error and exited unexpectedly. You need to check the log to find the issue.
195
+
196
+
#### How to Check the Logs:
197
+
198
+
-**Method 1**: View the `/maixapp/tmp/last_run.log` file immediately after the error:
199
+
1. On MaixVision, run the script `MaixPy/examples/tools/show_last_run_log.py` to view the log.
200
+
2. On an SSH terminal, use the command `cat /maixapp/tmp/last_run.log` to view the log.
201
+
202
+
-**Method 2**:
203
+
- First, use MaixVision to connect to the device to exit any programs that are using the display or camera.
204
+
- Then, connect to the device via SSH and enter the SSH terminal. For connection steps, refer to the [Linux Basics](./basic/linux_basic.md).
205
+
- Manually run the program using the following commands:
206
+
- If it's a Python program: `cd /maixapp/apps/xxx && python main.py`, where `xxx` is the ID of the application that encountered the error.
207
+
- If it's not a Python program: `cd /maixapp/apps/xxx && ./xxx`, where `xxx` is the ID of the application that encountered the error.
208
+
- Carefully examine the logs for any errors. Note that the error may not appear on the last line, so check the logs from the bottom upwards.
209
+
210
+
-**Method 3**: If the application is written in Python, use MaixVision to run the source code to view runtime errors and fix them. Again, be aware that the error may not appear on the last line, so check the logs carefully from the bottom upwards.
211
211
212
212
### Method 2:
213
213
If the application is written in Python, use **MaixVision** to run the source code directly, examine the runtime errors, and make corrections. Be aware that errors may not be at the last line, so inspect the logs carefully from the end upward.
0 commit comments