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

howto: function library in separated hex-file

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?

Parents
  • "Lack of flash-size" ,"extend code-space by using RAM"

    The thing is, with most microcontrollers, the RAM size is significantly smaller than the Flash size - so this doesn't generally make a lot of sense.

    Rather than try to make the architecture do things it was never intended to, might it be better to seek-out a chip that's actually equipped for your task?

    Are you stuck with the C167CS ?

Reply
  • "Lack of flash-size" ,"extend code-space by using RAM"

    The thing is, with most microcontrollers, the RAM size is significantly smaller than the Flash size - so this doesn't generally make a lot of sense.

    Rather than try to make the architecture do things it was never intended to, might it be better to seek-out a chip that's actually equipped for your task?

    Are you stuck with the C167CS ?

Children
  • @Andrew:
    yes i am stuck with the C167CS! I want to do software maintenance for hardware which is out in the field. And I have 512KB RAM (~256KB free) and total 1MB Flash. Moving code-fragements of size ~5-10KB to the RAM would already meet my purpose.
    So it is worth to look into this.