Skip to content

Commit

Permalink
add ner build env support
Browse files Browse the repository at this point in the history
  • Loading branch information
jr1221 committed Oct 11, 2024
1 parent dc92d32 commit c02bae6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# Build files
build/

*.nix

# Prerequisites
*.d

Expand Down
14 changes: 14 additions & 0 deletions flash.cfg
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c02bae6

Please sign in to comment.