Ports and Interfaces > USB

Problem with Pic 18f4550 USB

(1/3) > >>

selvabha:
Hi,
 
I used microc compiler to write firmware for pic 18f4550.and i used generic Hid template from lakeview.
It seems working fine in some of my systems.But it failed to work with my new i3 processor pc Machine and in some of our pcs.

The problem is the device was detected in all of our pcs as hid but it failed to communicate with application after some 5mts or 10 mts of time.
Also At that time i am getting a Error in application .

"UNEXPECTED EXCEPTION"
EXCEPTION:SAFE HANDLE HAS BEEN CLOSED
MODULE:HID
METHOD:CANCELIO


I tried in My computer ->manage and i see my device was detected and it stilll remains "after a scan for hardware changes".

so i tried by closing my application and disabled->enabled my hid driver, after this i opened the app and it seems to communicate for some time after that same thing happens again.

also if i restart the microcontroller it seems to work fine.
i can't figure exactly where the problem is because in some systems it is working fine.

Please guide me to figure it out .........

Thankyou

Jan Axelson:
Use whatever debugging tools you have to isolate the problem.

If my example firmware works OK, start with that and make incremental changes.

A protocol analyzer will show what is happening on the bus.

Use watch variables, etc. in MPLAB.

Jan

selvabha:
Dear Jan,

The problem is my chip hangs while executing the firmware.
This thing happens only on my i3 core processor desktop.............
Why it happens? due to selfpower
Any Advice from your side will be greatly appreciated

Thanks......

Jan Axelson:
You need to find out where the firmware is hanging and go from there.

Jan

selvabha:
Dear Jan,

According to you, can you say about the pic 18f4550 performance?
is it perfectly detected by all the systems and is it working fine without any problem all the times for you?

Because if the performance is not good ,I will change my chip...

Thanks for the help and Advice.

Navigation

[0] Message Index

[#] Next page

Go to full version