diff --git a/va416xx/gen-helper.sh b/va416xx/gen-helper.sh index 635e214..d40dfff 100755 --- a/va416xx/gen-helper.sh +++ b/va416xx/gen-helper.sh @@ -16,6 +16,11 @@ if [ -x "$(${svd2rust_bin} --version)" ]; then exit fi ${svd2rust_bin} -i svd/va416xx-base.svd +result=$? +if [ $result -ne 0 ]; then + echo "svd2rust failed with code $result" + exit +fi rm -rf src form -i lib.rs -o src/ && rm lib.rs cargo fmt diff --git a/va416xx/svd/va416xx-base.svd b/va416xx/svd/va416xx-base.svd index 889981d..15d895f 100644 --- a/va416xx/svd/va416xx-base.svd +++ b/va416xx/svd/va416xx-base.svd @@ -12871,4 +12871,4 @@ the counter from the value in the WDOGLOAD Register - \ No newline at end of file +