mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
8c23e178f3
* Rework timer_queue and monotonic architecture Goals: * make Monotonic purely internal * make Monotonic purely tick passed, no fugit involved * create a wrapper struct in the user's code via a macro that then converts the "now" from the tick based monotonic to a fugit based timestamp We need to proxy the delay functions of the timer queue anyway, so we could simply perform the conversion in those proxy functions. * Update cargo.lock * Update readme of rtic-time * CI: ESP32: Redact esp_image: Too volatile * Fixup: Changelog double entry rebase mistake --------- Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
31 lines
844 B
Bash
Executable file
31 lines
844 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ $# -eq 0 ]
|
|
then
|
|
echo "No arguments supplied! Provide path to ELF as argument"
|
|
fi
|
|
|
|
outputfilenamecargo=$1
|
|
outputfilename="$outputfilenamecargo".bin
|
|
|
|
logfile=qemu.log
|
|
|
|
qemuexec=qemu-system-riscv32
|
|
|
|
# Building ESP32-C3 image
|
|
espflash save-image --chip esp32c3 --merge "$outputfilenamecargo" "$outputfilename" 1>&2
|
|
|
|
# Get stats
|
|
esptool.py image_info --version 2 "$outputfilename" 1>&2
|
|
|
|
# Run in QEMU
|
|
$qemuexec -nographic -monitor tcp:127.0.0.1:55555,server,nowait -icount 3 -machine esp32c3 -drive file="$outputfilename",if=mtd,format=raw -serial file:"$logfile" &
|
|
|
|
# Let it run
|
|
sleep 3s
|
|
|
|
# Kill QEMU nicely by sending 'q' (quit) over tcp
|
|
echo q | nc -N 127.0.0.1 55555
|
|
# Output that will be compared, remove the esp_image segments as they change
|
|
# between runs
|
|
cat "$logfile" | sed 's/esp_image: .*$/esp_image: REDACTED/'
|