File tree 4 files changed +12
-20
lines changed
4 files changed +12
-20
lines changed Original file line number Diff line number Diff line change @@ -6,37 +6,29 @@ matrix:
6
6
rust : nightly
7
7
addons :
8
8
apt :
9
- sources :
10
- - debian-sid
11
9
packages :
12
- - binutils -arm-none-eabi
10
+ - gcc -arm-none-eabi
13
11
14
12
- env : TARGET=thumbv7m-none-eabi
15
13
rust : nightly
16
14
addons :
17
15
apt :
18
- sources :
19
- - debian-sid
20
16
packages :
21
- - binutils -arm-none-eabi
17
+ - gcc -arm-none-eabi
22
18
23
19
- env : TARGET=thumbv7em-none-eabi
24
20
rust : nightly
25
21
addons :
26
22
apt :
27
- sources :
28
- - debian-sid
29
23
packages :
30
- - binutils -arm-none-eabi
24
+ - gcc -arm-none-eabi
31
25
32
26
- env : TARGET=thumbv7em-none-eabihf
33
27
rust : nightly
34
28
addons :
35
29
apt :
36
- sources :
37
- - debian-sid
38
30
packages :
39
- - binutils -arm-none-eabi
31
+ - gcc -arm-none-eabi
40
32
41
33
before_install : set -e
42
34
Original file line number Diff line number Diff line change @@ -12,11 +12,13 @@ version = "0.3.0"
12
12
cortex-m = " 0.5.0"
13
13
cortex-m-rt = " 0.5.0"
14
14
cortex-m-semihosting = " 0.3.0"
15
- panic-itm = " 0.1.1"
16
15
panic-semihosting = " 0.2.0"
17
16
17
+ # Uncomment for the panic example.
18
+ # panic-itm = "0.1.1"
19
+
18
20
# Uncomment for the allocator example.
19
- # alloc-cortex-m = "0.3.6 "
21
+ # alloc-cortex-m = "0.3.4 "
20
22
21
23
# Uncomment for the device example.
22
24
# [dependencies.stm32f103xx]
@@ -26,4 +28,4 @@ panic-semihosting = "0.2.0"
26
28
[profile .release ]
27
29
codegen-units = 1 # better optimizations
28
30
debug = true
29
- lto = true
31
+ lto = true
Original file line number Diff line number Diff line change 9
9
cat > memory.x << 'EOF '
10
10
MEMORY
11
11
{
12
- /* NOTE K = KiBi = 1024 bytes */
13
12
FLASH : ORIGIN = 0x08000000, LENGTH = 256K
14
13
RAM : ORIGIN = 0x20000000, LENGTH = 40K
15
14
}
34
33
cargo build --target $TARGET --example $ex --release
35
34
36
35
examples+=( $ex )
37
-
38
36
fi
39
37
40
38
# Allocator example needs an extra dependency
41
39
cat >> Cargo.toml << 'EOF '
42
40
[dependencies.alloc-cortex-m]
43
- version = "0.3.3 "
41
+ version = "0.3.4 "
44
42
EOF
45
43
46
44
local ex=allocator
47
- cargo build --target $TARGET --example $ex
48
45
cargo build --target $TARGET --example $ex --release
49
46
50
47
examples+=( $ex )
54
51
cat >> Cargo.toml << 'EOF '
55
52
[dependencies.stm32f103xx]
56
53
features = ["rt"]
57
- version = "0.9 .0"
54
+ version = "0.10 .0"
58
55
EOF
59
56
60
57
local ex=device
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ extern crate cortex_m_rt as rt;
18
18
extern crate panic_semihosting;
19
19
20
20
// Logs panic messages using the ITM (Instrumentation Trace Macrocell)
21
+ // NOTE to use this you need to uncomment the `panic-itm` dependency in Cargo.toml
21
22
// extern crate panic_itm;
22
23
23
24
use rt:: ExceptionFrame ;
You can’t perform that action at this time.
0 commit comments