Hi Everybody
I have 2 codes: for example, First code :0x0000-0x1fff second code : 0x3000 - 0x7fff
I want to learn " how can I run these codes together"
can anybody help me or suggest any source?
There are no simple answer to that question. Especially since the question is a bit lacking.
Is your question just how to program a chip with multiple blocks of data? Or is the question how two applications can coexist and cooperate?
Is the first code block a boot loader, and the combination of the two blocks?
Are they completely stand-alone so there are no accesses from one binary into the other, with the exception of the boot loader jumping to a pre-defined startup point (lowest address?) of the application?
What logic have you decided on for the boot loader to figure out if there is an application loaded? Of would the boot loader do if there isn't a valid application? What would it do if there is a valid application, but you want to replace the application with a newer?
Before answering that, it would be helpful if you would explain why you are trying to do this? What are you actually trying to achieve by it?
If you explain what are you actually trying to achieve, people may be able to suggest more effective ways to do it...
hi; my question is "how two applications can cooperate?" I have two programs. 0000-7fff user space - user program can be change and program ISP f800-ffff boot space - main program can be program by parallel programmers.
for example when I give an order, main program can do this (run or stop the user program).
thanks for your interest.
0000-7fff user space - user program can be change and program ISP f800-ffff boot space - main program can be program by parallel programmers.
Any particular reason why you don't just load the whole thing as 1 application by ISP?
"Any particular reason why you don't just load the whole thing as 1 application by ISP?"
Considering there may be a language barrier here, maybe he thinks ISP is In Sircuit Programming ???
(I've seen that one before.)
ISP (In system programming) main program will never change. I can program mcu, no problem. I wonder that can main program control user program?
So what is the advantage in having 2 separate programs?
You're going to have to program something anyhow - so why not just re-program the whole thing??
.