Content originally posted in LPCWare by hcanova on Thu Jan 10 10:26:28 MST 2013
Hi Daniel and the community
I need to restart this discussion again!, I will try to describe better my question (sorry for my bad english), I have one code with many functions and relative big, in this code has an function called user_code(), this function basicaly is an code that call another function and have some logic like the normal programming with if,else and variable declarations, this function must be customized by the user, I dont want to give the full code for the user, because that way he will need to recompile and write with some tool on the mcu (ISP,JTAG or anothers).
I wanto to pre-flash the MCU with my code (like an bootloader), and give the possibility to the user, write user_code, calling the function he want and with your own logic, download the code into the flash and execute.
My problem is: how the user code will know where is the function or variables in the pre-flashed code?
Maybe I need to create an table with the functions address and tell this to the user code, but I dont know how can I do this.
can you help me.
thanks