Search found 15 matches

by uchar
Mon Jul 04, 2011 12:14 pm
Forum: V-USB
Topic: working nicely on my laptop, but fail on my PC?
Replies: 32
Views: 34616

Re: working nicely on my laptop, but fail on my PC?

Dear Christian!

You couldn't give an example filtrations of packets in functions usbFunctionWrite () and usbFunctionWriteOut ()?
by uchar
Mon Apr 04, 2011 8:32 pm
Forum: V-USB
Topic: BootloadHID in AVRStudio, problem.
Replies: 3
Views: 4178

Re: BootloadHID in AVRStudio, problem.

Everything, I have understood :)

In project options there is section Memory Settings, in it it is necessary to add a segment with a name .text:

Image
by uchar
Mon Apr 04, 2011 2:52 pm
Forum: V-USB
Topic: BootloadHID in AVRStudio, problem.
Replies: 3
Views: 4178

Re: BootloadHID in AVRStudio, problem.

Addition: The project managed to be transferred in AVRStudio, now it is compiled. But the HEX-file looks so: :1000000050C06DC269C068C067C066C065C064C0CA :1000100063C062C061C060C05FC05EC05DC05CC0E4 :100020005BC05AC059C00403090412036F00620088 :100030006400650076002E00610074001003480023 That is the cod...
by uchar
Sun Apr 03, 2011 3:34 pm
Forum: V-USB
Topic: BootloadHID in AVRStudio, problem.
Replies: 3
Views: 4178

BootloadHID in AVRStudio, problem.

Dear Christian!

Prompt please how to transfer project BootloadHID to AVRStudio environment.

If to use in the console the utility make the code is compiled, but in AVRStudio errors are always produced :(
by uchar
Sat Mar 06, 2010 12:27 am
Forum: V-USB
Topic: ATtiny85 self programming flash.
Replies: 11
Views: 14844

Re: ATtiny85 self programming flash.

Excuse, has forgotten to write - I use ATMega8. I use AVRStudio, in project customisations has specified compiler AVR-GCC. Function boot_program_page is placed in area bootloader. void BOOTLOADER_SECTION boot_program_page (uint32_t page) { uint16_t i; uint8_t sreg; uint8_t ser_1; uint8_t ser_2; uint...
by uchar
Fri Mar 05, 2010 6:01 pm
Forum: V-USB
Topic: ATtiny85 self programming flash.
Replies: 11
Views: 14844

Re: ATtiny85 self programming flash.

Thanks for the answer, Christian. On your site there is an example - bootloadHID - m I have checked up - it works, but all functions are called from usbFunctionWrite. Explain please why this example works? uchar usbFunctionWrite(uchar *data, uchar len) { union { addr_t l; uint s[sizeof(addr_t)/2]; u...
by uchar
Thu Mar 04, 2010 3:11 pm
Forum: V-USB
Topic: ATtiny85 self programming flash.
Replies: 11
Views: 14844

Re: ATtiny85 self programming flash.

Respected Christian! I use an example hid-data and I too try to write the data in memory of programs - in area NRWW. I use functions boot_page_erase, boot_page_fill and boot_page_write which are in function boot_program_page. Function boot_program_page is placed in bootloader area. It is called from...
by uchar
Thu Jan 21, 2010 3:03 pm
Forum: V-USB
Topic: How to output data to e.g. HID device
Replies: 19
Views: 16586

Re: How to output data to e.g. HID device

Christian, is again necessary to me your help :)

In an example hid-data the exchange goes through default control endpoint. Where it is described descriptor by this endpoint? (In a file usbdrv.c described two endpoint, with numbers 1 and 3)
by uchar
Wed Jan 20, 2010 6:38 pm
Forum: V-USB
Topic: How to output data to e.g. HID device
Replies: 19
Views: 16586

Re: How to output data to e.g. HID device

Excuse, I have understood :)

Has downloaded HID Descriptor Tool and has checked up parametre Report Count - for 512 byte it should be such: 0x96, 0x00, 0x02.

Now all works :)
by uchar
Wed Jan 20, 2010 6:13 pm
Forum: V-USB
Topic: How to output data to e.g. HID device
Replies: 19
Views: 16586

Re: How to output data to e.g. HID device

Yes, I saw this define and have installed it, but it has not helped Also I have changed a report-descriptor : PROGMEM char usbHidReportDescriptor[23] = { /* USB report descriptor */ 0x06, 0x00, 0xff, // USAGE_PAGE (Generic Desktop) 0x09, 0x01, // USAGE (Vendor Usage 1) 0xa1, 0x01, // COLLECTION (App...
by uchar
Tue Jan 19, 2010 6:09 pm
Forum: V-USB
Topic: How to output data to e.g. HID device
Replies: 19
Views: 16586

Re: How to output data to e.g. HID device

Thanks.

I use an example hid-data. I wish to write and read 512 byte in EEPROM.
But for me it is impossible to transfer more than 254 byte. In what there can be a problem?
by uchar
Tue Jan 19, 2010 5:49 pm
Forum: V-USB
Topic: How to output data to e.g. HID device
Replies: 19
Views: 16586

Re: How to output data to e.g. HID device

You can use HID for bidirectional data transfer. However, since you must use feature reports (set and get), you are limited to fixed size data blocks. See the hid-data example, it uses HID feature reports to send and receive data. Respected Christian! You have written about limitation by the fixed ...
by uchar
Thu Dec 03, 2009 12:29 am
Forum: V-USB
Topic: Non-standard HID-device.
Replies: 1
Views: 2336

Non-standard HID-device.

Hello!
I wish to make the HID-device (using example HID-DATA), but I want, that in the Manager of Devices my device was displayed not in Device HID section.
I should alter a file usbconfig.h and write my INF-file?
by uchar
Wed Nov 25, 2009 4:53 pm
Forum: V-USB
Topic: Has anyone used a ceramic resonator with VUSB?
Replies: 3
Views: 3935

Re: Has anyone used a ceramic resonator with VUSB?

We use resonators Murata - compact, but not cheap. The admissible error - 0,5 %, but happens and more.
Model - CSTCE12M0G55-R0
by uchar
Wed Oct 28, 2009 12:42 pm
Forum: V-USB
Topic: USB-device on ATMega8.
Replies: 5
Views: 4230

USB-device on ATMega8.

Prompt please, whether probably to make the USB-device on chip ATMega8, using the built in RC-generator?