Skip to content

Commit

Permalink
misc: boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
rrbutani committed Apr 22, 2020
1 parent a984c59 commit 062ff2d
Show file tree
Hide file tree
Showing 6 changed files with 568 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "gdb-multiarch -q -x .gdbconfig"

rustflags = [
"-C", "link-arg=-Tlink.x",
]

[build]
target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
19 changes: 19 additions & 0 deletions .gdbconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
target remote | openocd -c "source [find board/ek-tm4c123gxl.cfg]" -c "gdb_port pipe; log_output target/openocd.log"

# print demangled symbols
set print asm-demangle on

# detect unhandled exceptions, hard faults and panics
break DefaultHandler
break UserHardFault
break rust_begin_unwind

# *try* to stop at the user entry point (it might be gone due to inlining)
break main

monitor arm semihosting enable

load

# start the process
stepi
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on: [ push, pull_request ]

name: assembler
name: tm4c

jobs:
check:
Expand All @@ -9,13 +9,13 @@ jobs:
strategy:
fail-fast: false
matrix:
crate: [ assembler ]
crate: [ utp-tm4c ]
os: [ windows-latest, ubuntu-latest, macOS-latest ]
rust:
- stable
- beta
- nightly
- 1.38.0
- 1.42.0

runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
strategy:
fail-fast: false
matrix:
crate: [ lc3-baseline-sim ]
crate: [ utp-tm4c ]
os: [ ubuntu-latest ]
rust: [ stable, nightly ]

Expand Down
Loading

0 comments on commit 062ff2d

Please sign in to comment.