This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rem === Batch file to generate build information from the git tag and log information.=== | |
@rem === Get Git Build Info === | |
@git describe --tags --abbrev=4 --dirty --always > tmp.txt | |
@set /p BUILD_INFO=<tmp.txt | |
@del tmp.txt | |
@rem ------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This is the path where we will create a C header | |
BUILD_INFO_FILE=./Src/app_state_machines/build_info.h | |
echo "Getting metadata from last local commit on current branch" | |
BUILD_DATE=$(git log -1 --format="%at" | xargs -I{} date -d @{} +%Y/%m/%d) | |
BUILD_TIME=$(git log -1 --format="%at" | xargs -I{} date -d @{} +%H:%M:%S) | |
BUILD_INFO=$(git describe --tags --abbrev=4 --dirty --always) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do | |
( | |
syspath="${sysdevpath%/dev}" | |
devname="$(udevadm info -q name -p $syspath)" | |
[[ "$devname" == "bus/"* ]] && continue | |
eval "$(udevadm info -q property --export -p $syspath)" | |
[[ -z "$ID_SERIAL" ]] && continue | |
echo "/dev/$devname - $ID_SERIAL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uint32_t * get_chip_uuid() | |
{ | |
static uint32_t uuid[3] = { 0 }; | |
uuid[0] = *(volatile uint32_t *)0x0080A00C; | |
uuid[1] = *(volatile uint32_t *)0x0080A040; | |
uuid[2] = *(volatile uint32_t *)0x0080A044; | |
uuid[3] = *(volatile uint32_t *)0x0080A048; | |
return uuid; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an delta-control board with a single STM32F429VETx chip | |
# | |
# Generated by System Workbench for STM32 | |
# Take care that such file, as generated, may be overridden without any early notice. Please have a look to debug launch configuration setup(s) | |
#source [find interface/stlink.cfg] | |
source [find interface/jlink.cfg] | |
transport select swd | |
set WORKAREASIZE 0x8000 |