From mboxrd@z Thu Jan 1 00:00:00 1970 From: "???" To: Subject: Re: [ECOS] MPC823 interrupt problem? Date: Wed, 04 Apr 2001 06:00:00 -0000 Message-id: <00c301c0bd07$26c0bc80$8267608c@e> References: <019b01c0b6c8$aa250080$8267608c@e> X-SW-Source: 2001-04/msg00018.html > >Hi everyone: I am porting eCos on my custom > >board. The CPU on my board is MPC823. Redboot is > >ready for my borad. But I try to run hello > >example using default template, it will stop on > >undefine code. I use Trace32 to debug the hello > >program. When the code enable interrupt in > >cyg_Scheduler::start(), it will stop on undefine > >code ( at CYGARC_PPC_EXCEPTION_DECREMENT+0x888) > >What problem may I meet?? or What should I set or > >unset option at configuration tool?? > > CYGARC_PPC_EXCEPTION_DECREMENT is a preprocessor symbol which is used > to adjuste the stack on exceptions. It should never form part of an > address and I'm surprised that the debugger knows about it at all. > > Sounds like the problem is caused by interrupts though, so that's > probably where you want to be looking. > > Jesper Hi : I find out the problem. Because I download hello.exe via Trace32. Hello.exe is a ram_base application. It doesn't install exception vectors. When the hello.exe code turn on interrupt, it will be down. Sorry I don't notice the option(copy exception vectors to ram). Turn it on, everything is OK. Ken