Skip to content

Commit

Permalink
meson: stlink, swlink, blackpill-f4: Default to Async TraceSWO
Browse files Browse the repository at this point in the history
  • Loading branch information
ALTracer committed Aug 18, 2024
1 parent 9afe520 commit 992f871
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/platforms/common/blackpill-f4/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ probe_blackpill_load_address = bmd_bootloader ? '0x08004000' : '0x08000000'
probe_blackpill_args = [
f'-DDFU_SERIAL_LENGTH=@probe_blackpill_dfu_serial_length@',
f'-DAPP_START=@probe_blackpill_load_address@',
'-DTRACESWO_PROTOCOL=2',
]

blackpill_alternative_pinout = get_option('alternative_pinout')
Expand Down
3 changes: 3 additions & 0 deletions src/platforms/stlink/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ stlink_swim_nrst_as_uart = get_option('stlink_swim_nrst_as_uart')

if probe == 'stlink' and stlink_swim_nrst_as_uart
probe_stlink_args += ['-DSWIM_NRST_AS_UART=1']
probe_stlink_dependencies += fixme_platform_stm32_traceswo
probe_stlink_args += ['-DTRACESWO_PROTOCOL=1']
else
probe_stlink_dependencies += fixme_platform_stm32_traceswoasync
probe_stlink_args += ['-DTRACESWO_PROTOCOL=2']
endif

probe_host = declare_dependency(
Expand Down
1 change: 1 addition & 0 deletions src/platforms/swlink/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ probe_swlink_dfu_sources = files(

probe_swlink_args = [
'-DDFU_SERIAL_LENGTH=9',
'-DTRACESWO_PROTOCOL=2',
]

probe_swlink_common_link_args = [
Expand Down

0 comments on commit 992f871

Please sign in to comment.