Clean up embedded test memory configuration
This commit is contained in:
parent
425b528e41
commit
206c648869
|
@ -94,6 +94,6 @@ jobs:
|
||||||
- name: Run
|
- name: Run
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-C link-arg=-Tlink.x"
|
RUSTFLAGS: "-C link-arg=-Tlink.x"
|
||||||
CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -m 1G -nographic -semihosting-config enable=on,target=native -kernel"
|
CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel"
|
||||||
run: cd embedded && cargo run --target thumbv7m-none-eabi
|
run: cd embedded && cargo run --target thumbv7m-none-eabi
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
export RUSTFLAGS="-C link-arg=-Tlink.x"
|
export RUSTFLAGS="-C link-arg=-Tlink.x"
|
||||||
export CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER="qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -m 1G -nographic -semihosting-config enable=on,target=native -kernel"
|
export CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER="qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel"
|
||||||
|
|
|
@ -25,7 +25,7 @@ use cortex_m_semihosting::{debug, hprintln};
|
||||||
#[global_allocator]
|
#[global_allocator]
|
||||||
static ALLOCATOR: CortexMHeap = CortexMHeap::empty();
|
static ALLOCATOR: CortexMHeap = CortexMHeap::empty();
|
||||||
|
|
||||||
const HEAP_SIZE: usize = 1024 * 512; // 512 KB
|
const HEAP_SIZE: usize = 1024 * 256; // 256 KB
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
|
|
Loading…
Reference in New Issue