adds tracing to thread demo

this hardcodes the trace buffer
This commit is contained in:
2026-04-10 10:13:14 +02:00
parent 27438ef6a5
commit 764ccd4a52
2 changed files with 6 additions and 0 deletions

View File

@@ -28,11 +28,14 @@ if(NX_DEBUG)
target_compile_definitions(netxduo PRIVATE NX_DEBUG NX_DEBUG_PACKET NX_ENABLE_PACKET_DEBUG_INFO)
endif()
if(TX_TRACE)
target_compile_definitions(threadx PUBLIC TX_ENABLE_EVENT_TRACE)
target_compile_definitions(threadx_smp PUBLIC TX_ENABLE_EVENT_TRACE)
target_compile_definitions(netxduo PUBLIC TX_ENABLE_EVENT_TRACE)
endif()
###############################################################################
project(threadx_demo C ASM)
option(NX_DEBUG "compile netxduo debug output in" OFF)
option(TX_TRACE "Enable dump of traces to be read by TraceX" OFF)
set(TARGET_MEM "ram" CACHE STRING "memory map to use")
set(CMAKE_EXECUTABLE_SUFFIX_C ".elf")