Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 508 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 508 Bytes

trace-xyyx

Simple C Tracing example, for x86 and raspberry pi pico.

Steps to build it:

  1. export PICO_SDK_FETCH_FROM_GIT=true or export PICO_SDK_PATH = <path>
  2. mkdir build
  3. cd build
  4. cmake ..
  5. make -j 8
  6. then copy trace-xyyx.uf2 to your pico-pi for fun!

To add a trace point, edit the metadata file. Then run xxd -i metadata > metadata.h to override the metadata.h file.

This needs more work, it is still non-functional.

To test on x86, run gcc ctf.c xyyx.c -o xyyx.c