Due to the lack of flash memory i want to move code parts in a separate function library and locate the same in RAM. I thought to use the LIB166 and assign certain code modules to the RAM-address area. In addition i want be able to build and deploy (download) this RAM function library without the need to build&programm the flashed code again. Means i need the hex-files: flashcode.h86 and functionlib.h86. Is there a way to create a functionlib.h86 with the LIB166 and L166 which shares certain interface functions to a flashcode.h86? Or are there any alternative solutions?
@Andrew: ja, even i thought at a 1st glance i've to the whole Dynamic Link Lib bunch. And in fact, that can be solution.
However it think it is not necessarily required. For my embedded device/ use case a general static link could be still sufficient. But what i need is to break up the static link/build into two separated hex-files.
So i've eg. one solution in mind: 1. Reserve a RAM-Area and allign interfacing functions (addresses) to a RAM-Address area. (in case of a need assign for each function a dedicated address) 2. Build (static link) the whole stuff - leads to one total hex-file eg. flashcode.h86 3. Extract from flashcode.h86 the reserved RAM-Area parts to a separate functionlib.h86 4. Flash the flashcode.h86 and later download the functionlib.h86 on demand. 5. In case of required modifications in functionlib.h86, modify the code and do steps #2-#4 again except NOT to program the flashcode.h86 again.
What i dont like at this solution that there will be a lot of proprietary convetions/rules for the build steps. I'd prefer more a tricky solution which could be done with the given C166 Tool chain only.