Open nguyenlkdn opened 1 year ago
This is a definite pain point. You have the right fix to move the start of ram to a higher address.
Until we have suitable PIC support in LLVM there isn't much we can do. My temporary best alternative is in https://github.com/tock/libtock-rs/pull/509. We can compile for many candidate addresses and let tockloader decide which one to actually use.
https://github.com/tock/libtock-rs/blob/master/build_scripts/src/lib.rs#L18
("nrf52840" , "0x00030000", "0x00D0000", "0x20008000", "46K" ),
But in Kernel already used to >0x200081D4
with above config, after installed leds sample application, it doens't work. after i changed build_scripts/src/lib.rs
("nrf52840" , "0x00030000", "0x00D0000", "0x20009000", "46K" ),
It is able to work well.So how can we know exactly OS(RAM, ROM) enough size for TockOS v2.1