Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 24339

bf533, linux and libusb

$
0
0

Greetings!

 

I have a custom board with ADSP-BF533 processor. There is blackfin uclinux on it.

 

I`m developing user-level driver for some USB device. For that purpose I`ve built libusb with bfin-linux-uclibc toolchain and I`m using libusb`s API for interaction with USB device.  The problem is that I constanlty get kernel OOPS while running my driver with test application. About 90% of runs of test application ends in OOPS. Other 10% are successful. OOPS usually happens after calling poll() or ioctl() inside libusb during data exchange. Error message of OOPS is usually one of the following:

  • NULL pointer
  • Misaligned address violation
  • Invalid instruction

 

Mudflap shows only violations inside istream and vprintf. I compile with -mstack-check-l1

 

My questions are:

  1. How it is intended to debug such issues on this platform?
  2. Do you have any ideas what`s going on?
  3. Are there any libraries to replace libusb on this platform?

 

Thank you.


Viewing all articles
Browse latest Browse all 24339


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>