Skip to content

factory-setup: Remove C implementation of RTT #1391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ bootloader-btc-production: | build
$(MAKE) -C build bootloader-btc-production.elf
factory-setup: | build
$(MAKE) -C build factory-setup.elf
factory-setup-debug: | build-debug
$(MAKE) -C build-debug factory-setup.elf
docs: | build
$(MAKE) -C build doc
rust-docs: | build
Expand Down Expand Up @@ -139,6 +141,8 @@ rtt-client:
telnet localhost 19021
run-debug:
arm-none-eabi-gdb -x scripts/jlink.gdb build-debug/bin/firmware.elf
run-factory-setup-debug:
arm-none-eabi-gdb -x scripts/jlink.gdb build-debug/bin/factory-setup.elf
dockerinit:
./scripts/container.sh build --pull --force-rm --no-cache -t shiftcrypto/firmware_v2:$(shell cat .containerversion) .
dockerpull:
Expand Down
11 changes: 0 additions & 11 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,17 +255,6 @@ add_library(ctaes
)
target_include_directories(ctaes SYSTEM PUBLIC ctaes)

add_library(rtt
SEGGER_RTT_V796b/RTT/SEGGER_RTT.c
)
target_compile_options(rtt PRIVATE "-Wno-cast-qual")
# Define RTT config vars. The default DOWN buffer size (buffer for reading from host) is 64, which
# is too small for our need. The default UP buffer size (buffer for writing to host) is 1024, but
# we define it anyway here in case the default changes.
target_compile_definitions(rtt PUBLIC "BUFFER_SIZE_DOWN=(1024)" "BUFFER_SIZE_UP=(1024)")
target_include_directories(rtt SYSTEM PUBLIC SEGGER_RTT_V796b/RTT SEGGER_RTT_V796b/Config)


# optiga-trust-m
# The below build instructions are loosely based on optiga-trust-m/tests/linux_i2c.cmake
aux_source_directory(optiga-trust-m/src/cmd SRC_CMD_FILES)
Expand Down
425 changes: 0 additions & 425 deletions external/SEGGER_RTT_V796b/Config/SEGGER_RTT_Conf.h

This file was deleted.

43 changes: 0 additions & 43 deletions external/SEGGER_RTT_V796b/Examples/Main_RTT_InputEchoApp.c

This file was deleted.

70 changes: 0 additions & 70 deletions external/SEGGER_RTT_V796b/Examples/Main_RTT_MenuApp.c

This file was deleted.

118 changes: 0 additions & 118 deletions external/SEGGER_RTT_V796b/Examples/Main_RTT_PrintfTest.c

This file was deleted.

69 changes: 0 additions & 69 deletions external/SEGGER_RTT_V796b/Examples/Main_RTT_SpeedTestApp.c

This file was deleted.

36 changes: 0 additions & 36 deletions external/SEGGER_RTT_V796b/LICENSE.md

This file was deleted.

Loading