File tree Expand file tree Collapse file tree 3 files changed +9
-26
lines changed Expand file tree Collapse file tree 3 files changed +9
-26
lines changed Original file line number Diff line number Diff line change 1
- [target.thumbv7em- none-eabihf ]
1
+ [target.'cfg(all(target_arch = "arm", target_os = " none"))' ]
2
2
runner = 'probe-run'
3
3
rustflags = [
4
4
"-C", "link-arg=-Tlink.x",
5
5
"-C", "link-arg=-Tdefmt.x",
6
6
]
7
7
8
- [target.thumbv7m-none-eabi]
9
- runner = 'probe-run'
10
- rustflags = [
11
- "-C", "link-arg=-Tlink.x",
12
- "-C", "link-arg=-Tdefmt.x"
13
- ]
14
8
15
9
[build]
16
10
# Pick ONE of these compilation targets
17
11
# target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
18
- # target = "thumbv7m-none-eabi" # Cortex-M3
12
+ target = "thumbv7m-none-eabi" # Cortex-M3
19
13
# target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU)
20
- target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
14
+ # target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
Original file line number Diff line number Diff line change
1
+ fn main ( ) {
2
+ #[ cfg( feature = "stm32f1xx-hal" ) ]
3
+ println ! ( "cargo:rustc-link-search=memory.x" )
4
+ }
Original file line number Diff line number Diff line change 1
- /* STM32F429 */
2
1
MEMORY
3
2
{
4
- FLASH (rx ) : ORIGIN = 0x8000000 , LENGTH = 2048 K
5
- RAM (xrw ) : ORIGIN = 0x20000000 , LENGTH = 112 K
6
- RAM2 (xrw ) : ORIGIN = 0x2001C000 , LENGTH = 16 K
7
- RAM3 (xrw ) : ORIGIN = 0x20020000 , LENGTH = 64 K
8
- CCMRAM (rw ) : ORIGIN = 0x10000000 , LENGTH = 64 K
3
+ FLASH : ORIGIN = 0x08000000 , LENGTH = 128 k
4
+ RAM : ORIGIN = 0x20000000 , LENGTH = 32 K
9
5
}
10
- _stack_start = ORIGIN (RAM ) + LENGTH (RAM );
11
- _heap_size = LENGTH (RAM ) - 4 K ;
12
-
13
- /* STM32F107 */
14
- /*
15
- MEMORY
16
- {
17
- FLASH : ORIGIN = 0x08000000, LENGTH = 128K
18
- RAM : ORIGIN = 0x20000000, LENGTH = 32K
19
- }
20
- */
You can’t perform that action at this time.
0 commit comments