View previous topic :: View next topic |
Author |
Message |
Petr_
Joined: 24 Mar 2010 Posts: 66
|
Posted: Mon Nov 26, 2012 7:24 pm Post subject: |
|
|
Found the reason the error.
You need to add these lines to the code. Code: | #if _build >= 20076
Config Error = Ignore , 380 = Ignore
#endif | But I'm not sure that the version 2.0.7.6, _build = 20076. |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Nov 26, 2012 10:44 pm Post subject: |
|
|
no the best solution is to fix the code so arrays are properly used. the config error is a solution if you have no time to change the source. but best is to fix up the source.
it is explained in the history.txt. i probably can remove the autoshow option in the next update _________________ Mark |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Wed Nov 28, 2012 3:40 pm Post subject: |
|
|
Quick and dirty solution:
(2012-12-04: below i inserted a download with changes...)
there are more than 3....
replace all faulty lines like this:
replace Txstate with _usb_tx_rawbuffer
...and enjoy
best Michael _________________ For technical reasons, the signature is on the back of this message.
Last edited by six1 on Tue Dec 04, 2012 7:49 am; edited 1 time in total |
|
Back to top |
|
|
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia
|
Posted: Fri Nov 30, 2012 4:38 am Post subject: |
|
|
Easy way to do it:
Press "Replace All" and enjoy.
Thanks Mister six1! |
|
Back to top |
|
|
DK5BU
Joined: 06 Aug 2012 Posts: 23
|
Posted: Fri Nov 30, 2012 3:07 pm Post subject: |
|
|
Well,
thanks to six1 and Mrshilov for their suggestions.
But it did not work for me.
I tried to fix my swusb-morsekeyboard. It compiled but did not work.
It was recognized by the PC, but jumped into nirvana when I released the morse key.
As Petr_ reported in his message, the incompatibility started already with Version 2.0.7.5:
Quote: |
"In BASCOM-AVR 2.0.7.6, software-USB, does not compile.
There are 3 error messages.
In BASCOM-AVR 2.0.7.5, the code compiles but does not work."
|
As I don't need the benefits of Version 2.X, I deinstalled Version 2.0.7.6, took out my old BASCOM CD and switched back to Version 1.11.9.6.
Ralf |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri Nov 30, 2012 3:49 pm Post subject: |
|
|
i do not use this software usb since i always use the hardware usb chips, but you can check this :
- in 2075, add $noframeprotect to your code. the usb lib might not support this option.
- in 2076, check for passing/declaring arrays the proper way. see also the help for Declare. _________________ Mark |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Tue Dec 04, 2012 7:31 am Post subject: |
|
|
edited Files swusb_declarations.inc and swusb_routines.inc _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia
|
Posted: Tue Dec 11, 2012 12:36 pm Post subject: |
|
|
Mr. six1,
replacing Txstate with _usb_tx_rawbuffer not working on device with two interfaces (for example keyboard+multimedia). |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Tue Dec 11, 2012 12:46 pm Post subject: |
|
|
please try with above downloadable files! _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia
|
Posted: Tue Dec 11, 2012 11:39 pm Post subject: |
|
|
Thanks Mr. six1, it works!!! |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Wed Dec 12, 2012 1:01 pm Post subject: |
|
|
happy to help _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
omidkarkhi
Joined: 11 Feb 2012 Posts: 2
|
Posted: Sun Jan 13, 2013 4:17 pm Post subject: |
|
|
Hi everybody.
how can i use multimedia keyboard keys such as mute, volume up or down or play button?
all my keyboard keys work well but these key codes are not working !!!
and what is usage page 12 (0C) in keys below and how can i use them? (Usage page of other keys are 07 )
Scan Next Track 0C 00B5
Scan Previous Track 0C 00B6
Stop 0C 00B7
Play/ Pause 0C 00CD
Mute 0C 00E2
Volume Up 0C 00E9
Volume Down 0C 00EA |
|
Back to top |
|
|
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia
|
|
Back to top |
|
|
omidkarkhi
Joined: 11 Feb 2012 Posts: 2
|
Posted: Mon Jan 14, 2013 2:51 pm Post subject: |
|
|
That was Great.
Thank you for your help !
O.K. |
|
Back to top |
|
|
ollopa
Joined: 03 Sep 2007 Posts: 233 Location: California
|
Posted: Thu Feb 07, 2013 12:50 pm Post subject: Wow! |
|
|
Hi all,
I'm really pleased to see how much progress the community has been making with swusb! Thanks a lot to DK5BU for the additional examples and implementing the mouse example I never had the time to do. By the way, yes, you may distribute the library with your examples.
I'm so behind that my BASCOM is still on 2.0.7.3. Thank you six1 for updating the array passing! Are these changes compatible with older versions of BASCOM? I'll need to update the files on my website. |
|
Back to top |
|
|
|