Hi,
Will something interesting happen when the text segment on a nRF51 DK exceeds 64k? I am using Eclipse/gcc for developing, based on the tutorial provided by Nordic.
Anything special i need to do regarding compiler or linker flags?
regards, //Elm
Hi,
Will something interesting happen when the text segment on a nRF51 DK exceeds 64k? I am using Eclipse/gcc for developing, based on the tutorial provided by Nordic.
Anything special i need to do regarding compiler or linker flags?
regards, //Elm
No. As long as your code fits into available flash (and the linker would tell you if it didn't) 64kB has no meaning at all. Some of the ARM standard (ie not long-call) calls can't go over 4Mb, but that's not going to be a problem for the nrf51, nrf52 or quite a few versions more.
What problem were you expecting with 64kB of text?
I guess (s)he's thinking that the nRF51 is an 8051 ... ?
(or some other 8-bit processor - where 64K is a Big Deal).
Damn .. don't tell me the nRF52 is a 6502 then ...
Don't be silly - it's obviously going to be an 8052...
;-)
I am well aware of 8 bit processors; I grew up programming an IMSAI 8080 (!). And I am aware that the ARM has larger address space. But I am sufficiently unfamiliar with it to be afraid that there is something (e.g. 16 bit JUMPs) that can cause problems. (I once tried programming an 8088, it was horrible.)
regards, Elm