hello everybody! I am trying to use redboot to debug some application.To those non_interrupt application ,redboot works well!(and the debug channel is ethernet) but when I use redboot to debug "interrupt" application,it become dumpped and unstable. my board is MCU core based ARM7TDMI. below is what I do to add interrupt support in redboot!
as you kown ,when initialization redboot set up IRQ vector ,but program would never reach those place because redboot works in poll mode . It seems easy,because redboot will not use IRQ vector ,why not just set up an interrupt handler in redboot. But IRQ handler in redboot is tightly band with ecos interrupt handle mode (isr and dsr),so you have to set up your own interrupt handler and build it with application(non ecos') together.well then interrupt handler's address is not static ,so you could not build this undefined address in redboot. I think the solution is to set up an fixed address that point your own handler in application. then you could add an instrusion that jump to this fixed address right after redboot's IRQ handler. this would transfer control to your application handler. PS: why interrupt can't jump to application handler? because when redboot works as a rom monitor(include gdb stub),it occupy the memory from address 0~... but in arm architecture,when exception occur ,arm core would jump to 0x0~0x32(normal this place lay exception table),so interrupt control must first be handle in redboot. I am examining the problem, but my board is not stable after I add that jump instruction .what confused me most is it would reset automaticly time after time. any idea about this issue appreciate! -- View this message in context: http://www.nabble.com/how-to-debug-application%28not-based-on-ecos%29-that-trig-interrupt-with-redboot%21-tp15630621p15630621.html Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
