diff --git a/.gitignore b/.gitignore index 9b5a1ba..f4cb8c4 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,8 @@ # Build files build/ +*.nix + # Prerequisites *.d diff --git a/flash.cfg b/flash.cfg new file mode 100644 index 0000000..a5a00f1 --- /dev/null +++ b/flash.cfg @@ -0,0 +1,14 @@ +# OpenOCD Configuration Script + +set STM_TARGET_NAME "stm32f4" + +source [find target/${STM_TARGET_NAME}x.cfg] + +# Set the adapter speed +adapter speed 5000 + +# find elf +set elf_file "build/MSB-FW.elf" + +# Program the ELF file +program $elf_file verify reset exit \ No newline at end of file