8 years, 6 months ago.

Seperate section of code

Hi, for legal reasons (weights and measures) I need to split my code in two (legal and operational) and place them in separate locations in memory. Can anyone suggest how this can be done? I'm compiling the project in Keil. Thanks

1 Answer

8 years, 6 months ago.

Wait, you need to split where different code ends up in your memory for legal reason? That quite frankly sounds really questionable. One option that also should work in Keil is shown here: https://developer.mbed.org/users/Sissors/code/Bootloader_K64F/. But still, I would ask your legal department again if they are really sure about that.

Unless you are using some form of quantum computer you can't have two pieces of code in the same memory location so they must be in different locations ;-)

Given the average lawyers understanding of technology they probably don't know the difference between different memory locations and different source files. A requirement to put the legally controlled pieces of code in a separate file or library would make sense and be far easier to do.

posted by Andy A 03 May 2016

Agreed, seperate files makes sense, seperating them in memory specifically makes no sense.

posted by Erik - 03 May 2016