TI E2E Community
Other Analog & Touch
tsc2007 BUG: scheduling while atomic: swapper /0x00000103/0, CPU#0 Problem
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?
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
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!
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
Is it possible some problem at the system setup for the touch interrupt (/PENIRQ)?
Please share when you found the cause of the problem!
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.