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

Is this somehow possible?

Hello :)

I am new to 8051 family programming and I have a question. I would like to know if there is anyway, somehow, to put another software in a memory and load it from 8051 to run on it. It would work similar to plugins :)

Speaking in C language, it would be like a function inside the memory that do something. That function receives a pointer to a structure that has many other functions that the main software inside the microcontroller has, like display things on a screen. Well, is very similar to plugins :)

Is this possible? With other microcontroller maybe?

If I said something wrong or confuse please, let me know!
Thank you!

Parents
  • One of the possibilities to do this is to have separate regions in flash that are dedicated to a certain functionality, and will be programmed by separate targets of a uv3/4 project or a separate project. so, the main program will reside starting at the well know entry point to flash, and when necessary it will jump to and execute code residing somewhere else. you can distinguish between these zones with a scatter file or have a separate such file per "plugin". do note that you would have to introduce a mechanism that would prevent the chip going astray if no "plugin" is really installed...

Reply
  • One of the possibilities to do this is to have separate regions in flash that are dedicated to a certain functionality, and will be programmed by separate targets of a uv3/4 project or a separate project. so, the main program will reside starting at the well know entry point to flash, and when necessary it will jump to and execute code residing somewhere else. you can distinguish between these zones with a scatter file or have a separate such file per "plugin". do note that you would have to introduce a mechanism that would prevent the chip going astray if no "plugin" is really installed...

Children