zephyr/samples/subsys/tracing
Marc Herbert 2cd51a33ce samples: make find_package(Zephyr...) REQUIRED
This provides a better error message when building with CMake and
forgetting ZEPHYR_BASE or not registering Zephyr in the CMake package
registry. See parent commit for more details (split from parent for
better readability).

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-05-29 10:47:25 +02:00
..
src
CMakeLists.txt samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
README.txt
prj.conf
prj_native_posix.conf
prj_native_posix_ctf.conf
prj_uart.conf
prj_uart_ctf.conf
prj_usb.conf
prj_usb_ctf.conf
sample.yaml samples: clean test identifiers 2020-05-11 17:00:26 +02:00

README.txt

Title: Send Tracing Formated Packet To The Host With Supported Backends

Description:

This application can be used to demonstrate the tracing feature. The tracing
formated packet will be sent to the host with the currently supported tracing
backend under tracing generic infrastructure.

--------------------------------------------------------------------------------

Usage for UART Tracing Backend:

Build a UART-tracing image with:

    cmake -DBOARD=mps2_an521 -DCONF_FILE=prj_uart.conf ..

or:

    cmake -DBOARD=mps2_an521 -DCONF_FILE=prj_uart_ctf.conf ..

After the application has run for a while, check the trace output file.

--------------------------------------------------------------------------------

Usage for USB Tracing Backend

Build a USB-tracing image with:

    cmake -DBOARD=sam_e70_xplained -DCONF_FILE=prj_usb.conf ..

or:

    cmake -DBOARD=sam_e70_xplained -DCONF_FILE=prj_usb_ctf.conf ..

After the serial console has stable output like this:

    threadA: Hello World!
    threadB: Hello World!
    threadA: Hello World!
    threadB: Hello World!

connect the board's USB port to the host device and
run the trace_capture_usb.py script on the host:

    sudo python3 trace_capture_usb.py -v 0x2FE9 -p 0x100 -o channel0_0

The VID and PID of USB device can be configured, just adjusting it accordingly.

--------------------------------------------------------------------------------

Usage for POSIX Tracing Backend

Build a POSIX-tracing image with:

    cmake -DBOARD=native_posix -DCONF_FILE=prj_native_posix.conf ..

or:

    cmake -DBOARD=native_posix -DCONF_FILE=prj_native_posix_ctf.conf ..

After the application has run for a while, check the trace output file.