[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] Qs on the "sound" example



Could you try running the threaded version of the sound example,
irqthread.c?

You shouldn't need to use breakpoint() to debug this, as any fault in an
RT-thread should be trapped in the debugger.
Note, you can only use RTLinux debugger to debug
RT-threads, and not interrupt hanlders. This is not a restriction
in practice as this example shows. Also, breakpoints and tracing
only work if hardware interrupts are not disabled.

liang.zhu@philips.com (liang.zhu@philips.com) wrote:
> Hi,
> I am kind of newbie of RT-Linux and now experimenting with the examples came with the latest RT-linux 3.0 distribution.  I have trouble in running the "sound" example (under the directory  "example/sound").  Sometimes the run the of sample program either 
> hanged my Dell PC (with General Protection error and "kernel panic" message) or reboot the box.  Does anyone what might be the bug in the code?  
> I tried to use the debugger, by adding "breakpoint()" function in the sound.c source code, but the run of the code would not cause any exceptions so I can't use gdb to debug it.  Are there ways to work around it?  many thanks.
> 
> ***************************
> Liang Zhu
> Philips CFT, NA
> Philips Silicon Valley Center, W4-120
> 1000 West Maude Ave.
> Sunnyvale, CA 94085-2810, USA
> Email: liang.zhu@philips.com