Page 1 of 1

I have a big Problem with the USB-Driver

Posted: Fri Jun 24, 2011 1:41 pm
by HjH
I have a big Problem with the USB-Driver.

- My operating system is Windows 7 64bit "Home premium".
- My test board is a "Low Pin Count USB Development Kit" from Microchip.
- I have written a USB progam in Flowcode.
- I transmitted this program in the 18F14K50 controller, without errors
- I start the USB program in the 18F14K50
- I plug in the USB cable in the Low Pin Count USB Development Kit USB plug
- After that an error message will appear on the screen. "driver not found"
- I download the inf - file from the Formular USB component.
- I will install the "mchpcdc,inf". This experiment ends with the error message "The INF file your selected does not support this method of installation"

- With Microchip test program runs the USB serial connection

What I doing wrong

Re: I have a big Problem with the USB-Driver

Posted: Fri Jun 24, 2011 2:22 pm
by Benj
Hello,

Which USB component are you using and are you generating the driver inf file from the USB component property page?

Have you tried going into device manager, selecting the device, clicking install driver and then pointing the wizard at the Flowcode generated inf file?

Re: I have a big Problem with the USB-Driver

Posted: Fri Jun 24, 2011 2:53 pm
by HjH
Hi

I generate the inv File, with Flowcode "Generate Drive File" button from the USB component property page.

"Have you tried going into device manager, selecting the device, clicking install driver and then pointing the wizard at the Flowcode generated inf file"
I did this. I got the error message "Driver is up to date"

Re: I have a big Problem with the USB-Driver

Posted: Fri Jun 24, 2011 3:23 pm
by Benj
Hello,

So which USB component are you using and also which version of Flowcode are you running. It will tell you this in the Help -> About window.

Re: I have a big Problem with the USB-Driver

Posted: Fri Jun 24, 2011 3:55 pm
by HjH
Hi

The version looks after from Matrix (v4.5). They told me I should consult the forum.

The USB component see File.
Unbenannt.JPG
Unbenannt.JPG (65.62 KiB) Viewed 7575 times

Re: I have a big Problem with the USB-Driver

Posted: Mon Jun 27, 2011 11:06 am
by Benj
Hello,

Sorry I'll try to be more clear.

Which Flowcode USB component are you using in your program?

Which version of Flowcode are you using?

Can you attach your Flowcode program to the forums?

Re: I have a big Problem with the USB-Driver

Posted: Wed Jun 29, 2011 10:30 pm
by HjH
Hi

Which Flowcode USB component are you using in your program?
The Flowcode USB component is "Flowcode USB Serial"

Can you attach your Flowcode program to the forums?
I've been told I may not publish my program in the forum.

Re: I have a big Problem with the USB-Driver

Posted: Thu Jun 30, 2011 10:17 am
by Benj
Hello,

You can attach your program to the forums or you can PM me with it. Either way it should be noted that you are using the v4.5 beta so it will not load on versions of Flowcode before this.

Re: I have a big Problem with the USB-Driver

Posted: Thu Jun 30, 2011 11:05 pm
by HjH
Hi

Here is my file
USB_Test_3.zip
(3.53 KiB) Downloaded 304 times

Re: I have a big Problem with the USB-Driver

Posted: Fri Jul 01, 2011 9:53 am
by Benj
Hello,

Your configuration for the chip was not setup so I have put in the right settings and this should now run correctly on the device. It looks like you will need a fixed crystal frequency of 12MHz to allow the chip to run at the right speed of 48MHz.

Re: I have a big Problem with the USB-Driver

Posted: Sun Jul 03, 2011 2:41 pm
by HjH
Hi

thank you for the help.

Now I have a new problem. Your programm breaks up, if I write the hex file in the 18F14K50. You can see the error in the attachment
error.JPG
error.JPG (109.12 KiB) Viewed 7448 times

Re: I have a big Problem with the USB-Driver

Posted: Mon Jul 11, 2011 5:32 pm
by Benj
Hello HJH,

Is this problem when using HiTech or the new BoostC? You sent Steve a PM which suggests you are using HiTech to do this.

Re: I have a big Problem with the USB-Driver

Posted: Sun Jul 17, 2011 11:29 pm
by HjH
Hi

this Problem will occur at BootC on. With HITECH let the program does not compile without error

Re: I have a big Problem with the USB-Driver

Posted: Mon Jul 25, 2011 10:03 am
by Benj
Hello,

I have had a look into this for you and the 0's that appear at the start of the file are NOP instructions. i.e. no operation so it could just be a delay or something similar before the USB starts up. The program stops before address 0xA90 so I am surprised you are getting a write error for this memory location. Could the device perhaps be damaged or are you able to program other hex files on to it ok?