This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

create image or dll for flash possible

Hi!

I'm working on a project with one part of the source code (code_check) is checksum controlled and certified and the other one (code_standard) makes the system startup and boundary condition control, like temperature management.
There are functions in code_check that are called from code_standard.
I would like to create a const image for code_check, which should not be changed if a code adaption in code_standard e.g. for tempearture is necessary.

I tried to make this with an included lib for code_check, but does not work as on a change in code_standard the code_check is changed too and the checksum is not equal any more.

Is it possible to create a image or a dll of code_check, so that the checksum is always the same? Any other possibilities?
BR
Holger

  • This is hard to do in a HLL, since you are not in control of the included functions from the runtime library.

    You would basically have to create two separate programs (to make sure that the fixed part does not contain any references into the modifyable part. You would then have to create one or more entry points at absolute addreses, so the modifyable part of the code will alwas jump to the correct place even if the project doesn't contain these functions.

    The fixed part is quite similar to the BIOS of a PC.