kflash.py icon indicating copy to clipboard operation
kflash.py copied to clipboard

Workaround with 0xffffffff80000000 address in ELF SRAM mode

Open andreytkachenko opened this issue 6 years ago • 2 comments

Please add 0xffffffff80000000 address space as alias of 0x80000000 in ELF SRAM mode.

Described here

andreytkachenko avatar May 27 '19 10:05 andreytkachenko

lgtm. In fact, we can avoid -mcmodel=medany by using address range 0xffffffff80000000 to 0x7fffffff. (I can confirm that for uint32_t X and Y, any address Y is aliased with (X << 32) | Y for any X, and the cpu doesn't support execution from uncached address space.)

minux avatar May 27 '19 19:05 minux

LGTM

vowstar avatar May 28 '19 15:05 vowstar