Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/11/01 09:55
Read: times


 
#13135 - boot, applicative progr. with interrupts
Here is my configuration address:
Boot program (EPROM) 0000-3FFF
Application (RAM) 4000-FFFF
Interrupt vectors are from 0000 to 007B,
i.e. fixed in EPROM. My boot program doesn't used any interrupt, but my applicative downloaded program use them.

ItBoot.c:
#pragma SRC
void ITx(void) interrupt x using y {
#pragma asm
LJMP $40x0
#pragma endasm
}

ItAppli.c:
void ITx(void) interrupt x using y {
MyITx();
}
void MyITx(void) {
TreamentMyITx();
}
void TreamentMyITx(void) {
... // My treament of IT vector x
}
NB:MyITx() function is fixed in address 40x0H with linker directive

Today this the only way I can see to solve my problem.

1) Does it work? Can I use longjmp() routine? how?
2) Does any other solution (with less call of functions) exist?
3) And if I need interrupt routine for my boot program?

Thank you for your help,
Yann


(Siemens C505CA)

List of 4 messages in thread
TopicAuthorDate
boot, applicative progr. with interrupts            01/01/70 00:00      
RE: boot, applicative progr. with interrupts            01/01/70 00:00      
RE: boot, applicative progr. with interrupts            01/01/70 00:00      
RE: boot, applicative progr. with interrupts            01/01/70 00:00      

Back to Subject List