.. _sec-viewing-memory-buffer:

CCS Memory Buffer
=====================

This section describes the steps needed to setup and view the memory buffer 
when using a proprf PHY on the |DEVICE|. It is useful to view the memory buffer
in order to confirm packet contents were received correctly, and as way to output
the packets.

This section was based off of the SLA version, for more implementation detail please 
visit the `TX and RX SLA <https://dev.ti.com/tirex/explore/node?node=A__AeHe7V8q1.l0KUN3EXyKmw__SIMPLELINK-ACADEMY-CC23XX__gsUPh5j__LATEST&placeholder=true>`_.

Setup 
----- 

To read payload data, we will need to reference the buffer section of the memory
on the RX device after it has received packets, follow the following steps:

1. Enter debug mode.

2. In the toolbar, select ``View`` and open ``Memory Browser``.

.. figure:: /cc23xx/resources/open_memory_browser.png
    :align: center

3. Once the Memory Browser is open navigate to the buffers address.
   - In this case, the memory location for buffer is 0x20002420.
   - Remember to change the view to `8-Bit Hex - TI Style`.

.. figure:: /cc23xx/resources/memory_view_buffer_data.png
    :align: center

4. While in debug mode place a breakpoint in defaultCallback 
and press play, you should see the buffer fill up with packet data, 
and your payload is contained within the captured data in the buffer.  


