Step 10.1 - Pre-requisites for debugging the application
1
Copy the index.htm from
apps\training\middleware\live_photoframe\live_photoframe_lab\dev_files\sdcard_files to your SD Card.
Step 10.2 - Debugging the Application
1
Before you start the debugger, you may want to set a breakpoint in the application file to verify that important stages of the application (like mounting of the file system on SD Card, TCP/IP stack initialization, etc.) were executed successfully.
3
4
The breakpoint will not be immediately hit. Insert the micro SD Card into the micro SD Card slot (J8) on the MEB II board. The breakpoint will be hit.
6
Click the F5 key to allow the application to run. The breakpoint set in the above step will be hit, indicating the TCP/IP initialization is successful.
7
Remove all break points and click the F5 key to allow the application to run.
8
You should see the output of the camera sensor on the graphical LCD.
After pressing switch S1 on the MEBII board, there should be a brief pause on the LCD screen, indicating that the image is being captured.
Since the camera PIN is shared with the MPLAB® REAL ICE™ debug pins, there could be intermittent functionality issues with respect to the quality of the image displayed on the graphical LCD when the application demo is run in the Debug mode. The application demo works well when running in Release mode.
Step 10.3 - Viewing images on a web-browser
3
Open a web browser on the host PC and type the IP address obtained in the above step.
You can see the images captured by the camera and stored in the SD Card are scrolled on the web-page. Currently, the demo supports a maximum of three images to be stored in SD Card at any time.