Live PhotoFrame Tutorial: Step 10

Step 10.1 - Pre-requisites for debugging the application


Copy the index.htm from
apps\training\middleware\live_photoframe\live_photoframe_lab\dev_files\sdcard_files to your SD Card.


The host PC and the MEBII board should be in the same network domain. Find a snapshot of the setup below.
Connect the MEB II board to a router via an ethernet cable. Connect your host PC to the router via another ethernet cable.



Connect a Type A male-to-micro AB USB cable between the host PC and J4 connector of the Starter Kit on the MEBII board.


Step 10.2 - Debugging the Application


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.


Put a breakpoint in the APP_TCPIP_WAIT_INIT state in the app.c APP_Tasks() function. Hitting the breakpoint will indicate that SD Card is successfully mounted.



Debug your application. Click the Debug Main Project Debug_Button_Symbol.png button.


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.


Put a breakpoint in the APP_TCPIP_TRANSACT state in the app.c APP_Tasks() function.



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.


Remove all break points and click the F5 key to allow the application to run.


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


Open a terminal emulator program and open the serial port which is emulated by USB as shown in the figure.



Once the terminal is open, Click the ENTER key. You can see the IP address assigned to the board by the Dynamic Host Configuration Protocol (DHCP) server running on the router side..



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.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.