mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-30 01:46:26 -05:00
072b204d3d
* ch552 firmware: add ch55x support files directly * Add sdcc compiler to docker image, for building CH552 firmware * Rework production test script * Add menu-based test runner * Rewrite production test flows as lists of individual tests * Add both production flows and manual tests to menu * Switch to using included binaries * production test: Update message format * test_txrx_touchpad: Retry if device communications fail * production test: put all binaries in binaries/ folder * binaries/top.bin: replace broken binary * flash_check: Check for explicit flash IDs * Document most test procedures * Test plan documentation * Sample udev rules * Production test: allow external references to be overridden * Remove outdated descriptions * Correct shebang * Update shebangs to comply with PEP 394 Change the python scripts to call python instead of python3, as this works cross platform. See: https://peps.python.org/pep-0394/#for-python-script-publishers * Move production test to higher-level directory * Clarify production test setup * Move USB C connector test to separate directory Co-authored-by: Michael Cardell Widerkrantz <mc@tillitis.se>
35 lines
638 B
Makefile
35 lines
638 B
Makefile
TARGET = usb_device_cdc
|
|
|
|
CH554_SDCC=~/ch554_sdcc/
|
|
CHPROG=chprog
|
|
|
|
|
|
# Adjust the XRAM location and size to leave space for the USB DMA buffers
|
|
# Buffer layout in XRAM:
|
|
# 0x0000 Ep0Buffer[8]
|
|
# 0x0040 Ep1Buffer[8]
|
|
# 0x0080 EP2Buffer[2*64]
|
|
#
|
|
# This takes a total of 256bytes, so there are 768 bytes left.
|
|
XRAM_SIZE = 0x0300
|
|
XRAM_LOC = 0x0100
|
|
|
|
FREQ_SYS = 16000000
|
|
|
|
usb_strings.h: encode_usb_strings.py
|
|
./encode_usb_strings.py
|
|
|
|
C_FILES = \
|
|
main.c \
|
|
include/debug.c
|
|
|
|
pre-flash:
|
|
|
|
|
|
flash_patched: usb_device_cdc.bin
|
|
./inject_serial_number.py -i usb_device_cdc.bin -o patched.bin
|
|
${CHPROG} patched.bin
|
|
rm patched.bin
|
|
|
|
include Makefile.include
|