ld script but actually linking on it's own, am i right ? so i can't compare and i can't currently do the conversion. if i had the time i would defiantly try out the segger linker instead i'm sure it will behave properly, but i'm also sure it doesn't generate. You can see my memory map xml in the beginning of this thread. hex files myself but i really don't see how it is a problem in my configurations :-\ You can arrange this ses example according to your wishes. This example directly created on segger, does not be imported form keil project. Also, You can find a segger project on '.\examplessegger\bleperipheral\bleapptemplate\pca10028\s130\sesofficial'. In any case if you compare an ld script we manually wrote to the one generated by segger studio you can clear see the difference. In this address, you must use 'examplessegger' folder to use segger embedded studio. If i'm missing something here do let me know. This is what i mean and this is why i want to make it read only, memory regions that are just memory mapped regions like bootloader start address or secure bootloader settings address should be readonly since it's not writable memory in reality (you just can't write to it as it's not ram.) In the ld script a memory region that is defined RO only means that this region if written to by the program should generate compile time\link time error.Īll flash regions should be defined RO according to best practice since write to flash is not done by copying from register to mem but using a controller buffer. I'm not 100% we are talking about the same thing. I have verified the same behavior with various nrf sdk 15.2 examples, changing the permissions in the memory map results in the same ld script permissions. I'm using segger studio for nordic nrf52840, the flash memory is not writable in any case, but memory map should also define peripherals and registers which are also read only, what's the point defining it right if eventually the ld script does not enforce it ? I tried to look in the generated ld script to see if i see somewhere lese restrictions for read only sections but i cannot find any. I verified using all kind of parameters and trying to use options->build->memory segment playing with various RWX permissions, i always get (RW) eventually in the ld script.
0 Comments
Leave a Reply. |