Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

SWI Software Interrupt

SWI Software Interrupt

2004-05-24 by Rob R

Hi,

I'm using Keil & GNU to compile an example program that does simple GPIO
manipulation and sends some data through the UART, but for some reason,
there is a software interrupt (SWI_Handler??) for no apparent reason.

This shows in the simulator, and on the board it just freezes.

I don't know what could be causing this as I've just string together a load
of code that works individually (i.e. tested Uart stuff, tested the GPIO
stuff).. 

 

Just wondered if anyone had any ideas.

 

Thanks

Rob

http://www.robs-projects.com/

Re: [lpc2000] SWI Software Interrupt

2004-05-25 by Charles Manning

SWIs are sometimes used to handle the "OS specific" calls that live inside 
printf and other libc callsetc. If you are using these then you might be 
generating SWIs.

Set a breakpt on the swi handler and do a backtrace when this goes off. Might 
give you some hints where it came from.
Show quoted textHide quoted text
On Tuesday 25 May 2004 05:27, Rob R wrote:
> Hi,
>
> I'm using Keil & GNU to compile an example program that does simple GPIO
> manipulation and sends some data through the UART, but for some reason,
> there is a software interrupt (SWI_Handler??) for no apparent reason.
>
> This shows in the simulator, and on the board it just freezes.
>
> I don't know what could be causing this as I've just string together a load
> of code that works individually (i.e. tested Uart stuff, tested the GPIO
> stuff)..
>
>
>
> Just wondered if anyone had any ideas.
>
>
>
> Thanks
>
> Rob
>
> http://www.robs-projects.com/

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.