This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

tsc2007 BUG: scheduling while atomic: swapper /0x00000103/0, CPU#0 Problem

Other Parts Discussed in Thread: TSC2007

Hi

I modified the tsc2007 driver which was given in its page according to our needs. Our firm made its own DM365 board. In This board we used TSC2007 and connected PENIRQ pin to GPIO0 of DM365. It is being seen OK on driver. when i touch to touchscreen cursor is moving but at the same time i am getting

BUG: scheduling while atomic: swapper /0x00000103/0, CPU#0

warning and embedded linux is being crashed. there are 2 files that i modified and uploadded to www.muhendislikhizmeti.com/touchscreen.zip one is with timer the other is not. it is giving this error all time

is anyboy have any idea how to solve this problem.

thanks to all

  • More info is needed to debug such a problem. Thus, may you send me the harware design schematic and software driver code?

    BR,
    Wendy F. 

  • Thanks for your quick respond Wendy

    I have added schematic of TSC2007 to the file that i uploaded to www.muhendislikhizmeti.com/touchscreen.zip before. this file is including drivers and schematic. I am using montavista 2.6.18_pro kernel.

    As i read on internet i do need to create a workqueue and use schedule_work() API to use this workqueue, But they are so blur for me right now. If the problem is this, could you guide me where to start

    Thanks

    Ali Bingöl

     

  • Hi Ali,

    The schematic seems OK, and not related to your current problem. Noted that: (1) I can not find the pull-ups for the I2C lines; (2) it is a good practice to ground the unused analog input pin (AUX); and (3) you may ground all NC pins of the TSC2007. Your schamtic says that the TSC2007 slave I2C address is 1001000b; and you are using /PENIRQ to trigger the TSC driver.

    From the source code, it seems that, from the Linux driver TI provided, you made a lot updates to work with your processor and system.  Thus, it is likely that the issue here may related to your system and/or API, not simply the TSC driver, as you suspected.

    I may suggest you get in touch with the experts for your precssor and system to help!

    BR,
    Wendy F.

  • Hi Wendy

    thanks for your suggestion about schematics. I will modify as you suggested.

    I don't think that there is a problem with system because AIC which we installed to our board is using i2c and it is working without any problem.

    All components  are working without any problem exclude tsc2007. I think that the driver is the only  problem that we need to solve.  the rest is already solved.

    If i found a solution i share it from here

     

    Thanks

    Ali Bingöl

  • Hi Ali,

    Is it possible some problem at the system setup for the touch interrupt (/PENIRQ)?

    Please share when you found the cause of the problem!

    BR,
    Wendy F.