VOGONS


HIDman - USB to PS/2 converter (Open Source)

Topic actions

Reply 200 of 220, by Eivind

User metadata
Rank Member
Rank
Member
rasteri wrote on 2023-09-10, 15:52:

Excellent! However I think I'm going to keep developing the CH559 as it allows for a much simpler circuit.

True, it's way easier to integrate. I'll definitely stick with the ch559 if I can't get the rp2040 solution working. Have you had any luck with hub support lately btw? That was kinda the reason why I wanted to experiment with the rp2040 in the first place! 😁

The LlamaBlaster sound card
ITX-Llama motherboard
TinyLlama SBC

Reply 201 of 220, by rasteri

User metadata
Rank Member
Rank
Member
Eivind wrote on 2023-09-10, 17:02:

True, it's way easier to integrate. I'll definitely stick with the ch559 if I can't get the rp2040 solution working. Have you had any luck with hub support lately btw? That was kinda the reason why I wanted to experiment with the rp2040 in the first place! 😁

Hopefully I'll have some time soon. Been a busy couple of months!

Reply 203 of 220, by yugokoral

User metadata
Rank Newbie
Rank
Newbie

Hello all. I am new to this project.
Shortly - How can i compile source code to bin and than upload it to the CH559L? Also which file should be compiled, that reads all that needed .c and .h files? I was looking on google, and i see that i need sth like SDCC, and than something to convert it to bin file. Also there is no any good tutorial available. I am a bit lost 😒
Anyway, will there be any update on this project or is it final now? I am just curious, because it is one of the most useful projects around 😁

Thank you for your help

Reply 204 of 220, by kmeaw

User metadata
Rank Newbie
Rank
Newbie

You would need SDCC (I am using 4.2.0) and GNU Make to build the project. Run "make" and it will produce the target files in the "build" directory.
There are multiple *.c files that need to be compiled and linked, but everything is taken care of by the Make, the build system - the "Makefile" file defines the build process in a form that GNU Make can process.
At the end of the build process, sdobjcopy (a part of SDCC toolchain) would be called, that would generate the bin file.
Once you have your bin, use ch552tool to flash it to the target.

Reply 207 of 220, by kmeaw

User metadata
Rank Newbie
Rank
Newbie
DFL wrote on 2024-02-10, 21:32:

Can the adapter work for French AZERTY keyboards? (converting for AZERTY PS/2, of course)

Yes, the adapter will work with AZERTY keyboards because there is no such thing as AZERTY USB HID scan codes or AZERTY PS/2.
The HID Usage Tables 1.5 document provided by USB-IF says (on page 89):

Due to the variation of keyboards from language to language, it is not feasible to specify exact key mappings for every language […]
Show full quote

Due to the variation of keyboards from language to language,
it is not feasible to specify exact key mappings for every language. Where this list is not specific for a key
function in a language, the closest equivalent key position should be used, so that a keyboard may be modified
for a different language by simply printing different keycaps. One example is the Y key on a North American
keyboard. In Germany this is typically Z. Rather than changing the keyboard firmware to put the Z Usage
into that place in the descriptor list, the vendor should use the Y Usage on both the North American and
German keyboards. This continues to be the existing practice in the industry, in order to minimize the number
of changes to the electronics to accommodate other languages.

So an AZERTY USB keyboard would report KEY_Q (0x14) when you press the 'A' key denoting a location of the key as opposed to the character that is indicated on the keycap. The interpretation of KEY_Q as 'A' is done in your computer's software - your OS handles the conversion of scancodes to characters for a given keyboard layout.

Reply 208 of 220, by yugokoral

User metadata
Rank Newbie
Rank
Newbie
kmeaw wrote on 2024-01-23, 22:34:
You would need SDCC (I am using 4.2.0) and GNU Make to build the project. Run "make" and it will produce the target files in the […]
Show full quote

You would need SDCC (I am using 4.2.0) and GNU Make to build the project. Run "make" and it will produce the target files in the "build" directory.
There are multiple *.c files that need to be compiled and linked, but everything is taken care of by the Make, the build system - the "Makefile" file defines the build process in a form that GNU Make can process.
At the end of the build process, sdobjcopy (a part of SDCC toolchain) would be called, that would generate the bin file.
Once you have your bin, use ch552tool to flash it to the target.

Thank you for your help.
I installed SDCC and i realized that GNU Make is for linux, so i tried MinGW and also chocolatey in PowerShell, and i got some strange warnings and at the end one error about .bin file.
I have no clue what to do 🙁

Here is what i got in PowerShell:

PS C:\HIDman-main> make.exe
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/ch559.rel ch559.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "ch559.c"
ch559.c:34: error 257: Failed to open output file 'build/ch559.asm' (No such file or directory)
make: *** [Makefile:68: build/ch559.rel] Error 1
PS C:\HIDman-main> md build


Directory: C:\HIDman-main


Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2/17/2024 3:42 PM build


PS C:\HIDman-main> make.exe
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/ch559.rel ch559.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "ch559.c"
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/ch559.rel" "build/ch559".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/gpio.rel gpio.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "gpio.c"
gpio.h:44: warning 283: function declarator with no prototype
gpio.h:54: warning 283: function declarator with no prototype
gpio.c:91: warning 84: 'auto' variable 'Pn_DIR' may be used before initialization
gpio.c:92: warning 84: 'auto' variable 'Pn_PU' may be used before initialization
gpio.c:60: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG
gpio.c:141: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG
gpio.c:178: warning 283: function declarator with no prototype
gpio.c:195: warning 283: function declarator with no prototype
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/gpio.rel" "build/gpio".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/keyboardled.rel keyboardled.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "keyboardled.c"
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/keyboardled.rel" "build/keyboardled".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/main.rel main.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "main.c"
util.h:11: warning 283: function declarator with no prototype
util.h:15: warning 283: function declarator with no prototype
util.h:31: warning 283: function declarator with no prototype
uart.h:16: warning 283: function declarator with no prototype
uart.h:17: warning 283: function declarator with no prototype
uart.h:19: warning 283: function declarator with no prototype
ps2protocol.h:8: warning 283: function declarator with no prototype
ps2protocol.h:10: warning 283: function declarator with no prototype
ps2.h:55: warning 283: function declarator with no prototype
menu.h:14: warning 283: function declarator with no prototype
mouse.h:25: warning 283: function declarator with no prototype
main.c:95: warning 283: function declarator with no prototype
main.c:98: warning 112: function 'InitSystem' implicit declaration
main.c:177: warning 112: function 'Menu_Task' implicit declaration
main.c:179: warning 112: function 'ProcessUsbHostPort' implicit declaration
main.c:180: warning 112: function 'ProcessKeyboardLed' implicit declaration
main.c:98: warning 84: 'auto' variable 'InitSystem' may be used before initialization
main.c:177: warning 84: 'auto' variable 'Menu_Task' may be used before initialization
main.c:179: warning 84: 'auto' variable 'ProcessUsbHostPort' may be used before initialization
main.c:180: warning 84: 'auto' variable 'ProcessKeyboardLed' may be used before initialization
main.c:246: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG
main.c:248: warning 126: unreachable code
main.c:249: warning 126: unreachable code
main.c:250: warning 126: unreachable code
Show last 198 lines
main.c:251: warning 126: unreachable code
main.c:253: warning 126: unreachable code
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/main.rel" "build/main".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/parsedescriptor.rel parsedescriptor.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "parsedescriptor.c"
ps2protocol.h:8: warning 283: function declarator with no prototype
ps2protocol.h:10: warning 283: function declarator with no prototype
ps2.h:55: warning 283: function declarator with no prototype
util.h:11: warning 283: function declarator with no prototype
util.h:15: warning 283: function declarator with no prototype
util.h:31: warning 283: function declarator with no prototype
andyalloc.h:3: warning 283: function declarator with no prototype
parsedescriptor.c:100: warning 84: 'auto' variable 'pItfDescr' may be used before initialization
parsedescriptor.c:156: warning 116: left shifting more than size of object changed to zero
parsedescriptor.c:230: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG
parsedescriptor.c:268: warning 126: unreachable code
parsedescriptor.c:390: warning 84: 'auto' variable 'currSegPnt' may be used before initialization
parsedescriptor.c:321: warning 85: in function ParseReportDescriptor unreferenced function argument : 'port'
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/parsedescriptor.rel" "build/parsedescriptor".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/system.rel system.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "system.c"
system.c:16: warning 283: function declarator with no prototype
system.c:34: warning 158: overflow in implicit constant conversion
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/system.rel" "build/system".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/task.rel task.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "task.c"
gpio.h:44: warning 283: function declarator with no prototype
gpio.h:54: warning 283: function declarator with no prototype
uart.h:16: warning 283: function declarator with no prototype
uart.h:17: warning 283: function declarator with no prototype
uart.h:19: warning 283: function declarator with no prototype
ps2protocol.h:8: warning 283: function declarator with no prototype
ps2protocol.h:10: warning 283: function declarator with no prototype
task.c:96: warning 283: function declarator with no prototype
task.c:117: warning 283: function declarator with no prototype
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/task.rel" "build/task".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/timer2.rel timer2.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "timer2.c"
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/timer2.rel" "build/timer2".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/usbhost.rel usbhost.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "usbhost.c"
menu.h:14: warning 283: function declarator with no prototype
util.h:11: warning 283: function declarator with no prototype
util.h:15: warning 283: function declarator with no prototype
util.h:31: warning 283: function declarator with no prototype
usbhost.c:68: warning 85: in function InitHubPortData unreferenced local variable : 'k'
usbhost.c:225: warning 283: function declarator with no prototype
usbhost.c:393: warning 158: overflow in implicit constant conversion
usbhost.c:410: warning 158: overflow in implicit constant conversion
usbhost.c:695: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-int literal'
to type 'unsigned-int generic* auto'
usbhost.c:818: warning 84: 'auto' variable 's' may be used before initialization
usbhost.c:922: warning 85: in function EnumerateHubPort unreferenced local variable : 'i'
usbhost.c:1231: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG
usbhost.c:1277: warning 85: in function regrabinterfaces unreferenced local variable : 'j'
usbhost.c:1422: warning 112: function 'andyclearmem' implicit declaration
usbhost.c:1422: warning 84: 'auto' variable 'andyclearmem' may be used before initialization
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/usbhost.rel" "build/usbhost".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/recvbuffer.rel recvbuffer.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "recvbuffer.c"
ps2protocol.h:8: warning 283: function declarator with no prototype
ps2protocol.h:10: warning 283: function declarator with no prototype
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/recvbuffer.rel" "build/recvbuffer".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/data.rel data.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "data.c"
ps2.h:55: warning 283: function declarator with no prototype
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/data.rel" "build/data".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/menu.rel menu.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "menu.c"
menu.h:14: warning 283: function declarator with no prototype
util.h:11: warning 283: function declarator with no prototype
util.h:15: warning 283: function declarator with no prototype
util.h:31: warning 283: function declarator with no prototype
uart.h:16: warning 283: function declarator with no prototype
uart.h:17: warning 283: function declarator with no prototype
uart.h:19: warning 283: function declarator with no prototype
ps2.h:55: warning 283: function declarator with no prototype
ps2protocol.h:8: warning 283: function declarator with no prototype
ps2protocol.h:10: warning 283: function declarator with no prototype
menu.c:109: warning 283: function declarator with no prototype
menu.c:153: warning 283: function declarator with no prototype
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/menu.rel" "build/menu".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/ps2protocol.rel ps2protocol.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "ps2protocol.c"
util.h:11: warning 283: function declarator with no prototype
util.h:15: warning 283: function declarator with no prototype
util.h:31: warning 283: function declarator with no prototype
uart.h:16: warning 283: function declarator with no prototype
uart.h:17: warning 283: function declarator with no prototype
uart.h:19: warning 283: function declarator with no prototype
ps2.h:55: warning 283: function declarator with no prototype
ps2protocol.h:8: warning 283: function declarator with no prototype
ps2protocol.h:10: warning 283: function declarator with no prototype
menu.h:14: warning 283: function declarator with no prototype
mouse.h:25: warning 283: function declarator with no prototype
ps2protocol.c:38: warning 283: function declarator with no prototype
ps2protocol.c:86: warning 283: function declarator with no prototype
ps2protocol.c:199: warning 84: 'auto' variable 'pressed' may be used before initialization
ps2protocol.c:305: warning 59: function 'ParseReport' must return value
ps2protocol.c:358: warning 59: function 'ParseReport' must return value
ps2protocol.c:358: warning 85: in function ParseReport unreferenced local variable : 'tmp'
ps2protocol.c:358: warning 85: in function ParseReport unreferenced function argument : 'len'
ps2protocol.c:362: warning 283: function declarator with no prototype
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/ps2protocol.rel" "build/ps2protocol".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/ps2.rel ps2.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "ps2.c"
util.h:11: warning 283: function declarator with no prototype
util.h:15: warning 283: function declarator with no prototype
util.h:31: warning 283: function declarator with no prototype
uart.h:16: warning 283: function declarator with no prototype
uart.h:17: warning 283: function declarator with no prototype
uart.h:19: warning 283: function declarator with no prototype
ps2.h:55: warning 283: function declarator with no prototype
ps2protocol.h:8: warning 283: function declarator with no prototype
ps2protocol.h:10: warning 283: function declarator with no prototype
ps2.c:162: warning 126: unreachable code
ps2.c:199: warning 126: unreachable code
ps2.c:222: warning 126: unreachable code
ps2.c:238: warning 126: unreachable code
ps2.c:421: warning 126: unreachable code
ps2.c:438: warning 126: unreachable code
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/ps2.rel" "build/ps2".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/util.rel util.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "util.c"
util.h:11: warning 283: function declarator with no prototype
util.h:15: warning 283: function declarator with no prototype
util.h:31: warning 283: function declarator with no prototype
util.c:10: warning 283: function declarator with no prototype
util.c:66: warning 283: function declarator with no prototype
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/util.rel" "build/util".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/andyalloc.rel andyalloc.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "andyalloc.c"
andyalloc.h:3: warning 283: function declarator with no prototype
andyalloc.c:29: warning 283: function declarator with no prototype
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/andyalloc.rel" "build/andyalloc".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/pwm.rel pwm.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "pwm.c"
util.h:11: warning 283: function declarator with no prototype
util.h:15: warning 283: function declarator with no prototype
util.h:31: warning 283: function declarator with no prototype
uart.h:16: warning 283: function declarator with no prototype
uart.h:17: warning 283: function declarator with no prototype
uart.h:19: warning 283: function declarator with no prototype
ps2protocol.h:8: warning 283: function declarator with no prototype
ps2protocol.h:10: warning 283: function declarator with no prototype
ps2.h:55: warning 283: function declarator with no prototype
menu.h:14: warning 283: function declarator with no prototype
mouse.h:25: warning 283: function declarator with no prototype
pwm.c:89: warning 85: in function InitPWM3 unreferenced function argument : 'polar'
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/pwm.rel" "build/pwm".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/mouse.rel mouse.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "mouse.c"
util.h:11: warning 283: function declarator with no prototype
util.h:15: warning 283: function declarator with no prototype
util.h:31: warning 283: function declarator with no prototype
uart.h:16: warning 283: function declarator with no prototype
uart.h:17: warning 283: function declarator with no prototype
uart.h:19: warning 283: function declarator with no prototype
ps2.h:55: warning 283: function declarator with no prototype
ps2protocol.h:8: warning 283: function declarator with no prototype
ps2protocol.h:10: warning 283: function declarator with no prototype
menu.h:14: warning 283: function declarator with no prototype
mouse.h:25: warning 283: function declarator with no prototype
mouse.c:23: warning 283: function declarator with no prototype
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/mouse.rel" "build/mouse".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/uart.rel uart.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "uart.c"
uart.h:16: warning 283: function declarator with no prototype
uart.h:17: warning 283: function declarator with no prototype
uart.h:19: warning 283: function declarator with no prototype
uart.c:13: warning 283: function declarator with no prototype
uart.c:29: warning 283: function declarator with no prototype
uart.c:48: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG
uart.c:73: warning 283: function declarator with no prototype
uart.c:124: warning 283: function declarator with no prototype
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/uart.rel" "build/uart".asm
sdcc -c -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o build/uart1.rel uart1.c
+ C:\PROGRA~2\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c11 -I"/" -D"FREQ_SYS=48000000" -D"BOARD_AXP" -D"OPT_DEFAULT" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=0 -D__SDCC=4_4_0 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=4 -D__SDCC_VERSION_PATCH=0 -DSDCC=440 -D__SDCC_REVISION=14620 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files (x86)\SDCC\bin\..\include\mcs51" -isystem "C:\Program Files (x86)\SDCC\bin\..\include" -xc "uart1.c"
util.h:11: warning 283: function declarator with no prototype
util.h:15: warning 283: function declarator with no prototype
util.h:31: warning 283: function declarator with no prototype
uart.h:16: warning 283: function declarator with no prototype
uart.h:17: warning 283: function declarator with no prototype
uart.h:19: warning 283: function declarator with no prototype
ps2.h:55: warning 283: function declarator with no prototype
ps2protocol.h:8: warning 283: function declarator with no prototype
ps2protocol.h:10: warning 283: function declarator with no prototype
menu.h:14: warning 283: function declarator with no prototype
uart1.c:40: warning 283: function declarator with no prototype
uart1.c:57: warning 283: function declarator with no prototype
uart1.c:134: warning 283: function declarator with no prototype
+ C:\PROGRA~2\SDCC\bin\sdas8051.exe -plosgffw "build/uart1.rel" "build/uart1".asm
sdcc ./build/ch559.rel ./build/gpio.rel ./build/keyboardled.rel ./build/main.rel ./build/parsedescriptor.rel ./build/system.rel ./build/task.rel ./build/timer2.rel ./build/usbhost.rel ./build/recvbuffer.rel ./build/data.rel ./build/menu.rel ./build/ps2protocol.rel ./build/ps2.rel ./build/util.rel ./build/andyalloc.rel ./build/pwm.rel ./build/mouse.rel ./build/uart.rel ./build/uart1.rel -V -mmcs51 --model-large --stack-auto --xram-size 0x1600 --xram-loc 0x0200 --code-size 0xEFFF -I/ -DFREQ_SYS=48000000 -DBOARD_AXP -DOPT_DEFAULT -o ./build/hidman.ihx
+ C:\PROGRA~2\SDCC\bin\sdld.exe -nf "./build/hidman.lk"
sdobjcopy -I ihex -O binary ./build/hidman.ihx ./build/hidman.bin
make: *** [Makefile:79: build/hidman.bin] Error -1073741515

Reply 210 of 220, by yugokoral

User metadata
Rank Newbie
Rank
Newbie
florian3 wrote on 2024-02-17, 20:04:

When I compiled this I used SDCC via WSL.

In WSL i got this error:
file.php?mode=view&id=185706

EDIT: I created "build" folder manually, but i still got some strange warnings and errors:
file.php?mode=view&id=185709

Attachments

  • wsll.png
    Filename
    wsll.png
    File size
    53.3 KiB
    Views
    525 views
    File license
    Public domain
  • wsl.png
    Filename
    wsl.png
    File size
    58.9 KiB
    Views
    532 views
    File license
    Public domain

Reply 212 of 220, by yugokoral

User metadata
Rank Newbie
Rank
Newbie
florian3 wrote on 2024-02-18, 13:12:

Looks like the include of ch559.h in util.c should be lower case.

I thought all of those were fixed at some point, maybe it regressed.

Thank you. Now i kinda got .bin file. I flashed it with an original WCHISPTool. The program flashed it, also verified it. I made 3 converters. I ordered all original parts from digikey, and CH559L chips from aliexpress. The LED is on - it is green. When i am pressing keys on my usb keyboard, the green led is flashing. But my 486 computer does not detect any keyboard - "Keyboard error or no keyboard present". Should i flash bin file with this https://github.com/MarsTechHAN/ch552tool tool?

Reply 213 of 220, by rasteri

User metadata
Rank Member
Rank
Member
sofakng wrote on 2024-01-29, 14:42:

Any plans to further update this project? Github shows no updates for 8 months 🙁

Yes I definitely will, I've been moving house but it's next on my list when I get my shop set up again.

Reply 214 of 220, by rasteri

User metadata
Rank Member
Rank
Member
florian3 wrote on 2024-02-18, 13:12:

Looks like the include of ch559.h in util.c should be lower case.

I thought all of those were fixed at some point, maybe it regressed.

OK it's fixed now. I also finally merged the pull requests after a year...

Also latest updates add keyboard LED support.

Next will be hub support. I don't seem to have any hubs atm though 🤣

Reply 215 of 220, by florian3

User metadata
Rank Newbie
Rank
Newbie
rasteri wrote on 2024-03-24, 12:05:
OK it's fixed now. I also finally merged the pull requests after a year... […]
Show full quote
florian3 wrote on 2024-02-18, 13:12:

Looks like the include of ch559.h in util.c should be lower case.

I thought all of those were fixed at some point, maybe it regressed.

OK it's fixed now. I also finally merged the pull requests after a year...

Also latest updates add keyboard LED support.

Next will be hub support. I don't seem to have any hubs atm though 🤣

I had added limited support for hubs to my fork https://github.com/hkr/HIDman/tree/hubs2. It worked with my KVM but has compatibility issues with some hubs and fails when devices are disconnected. Maybe it helps anyway.

Reply 216 of 220, by rasteri

User metadata
Rank Member
Rank
Member
florian3 wrote on 2024-03-24, 18:23:

I had added limited support for hubs to my fork https://github.com/hkr/HIDman/tree/hubs2. It worked with my KVM but has compatibility issues with some hubs and fails when devices are disconnected. Maybe it helps anyway.

The original CH559 USB source code has these problems too. I wonder if anyone has written a better USB stack for WCH devices

Reply 217 of 220, by rasteri

User metadata
Rank Member
Rank
Member
rasteri wrote on 2024-03-25, 00:39:

The original CH559 USB source code has these problems too. I wonder if anyone has written a better USB stack for WCH devices

Hmm yeah even if I recompile the original CH559 SDK under Keil instead of SDCC we still have problems on some hubs. It fixes the disconnection stuff though...

Reply 218 of 220, by jarp

User metadata
Rank Newbie
Rank
Newbie

My T5720 thin client has very dodgy USB legacy support so this project seems to be awesome for the need as I really do not want to use old peripherals. That being said, I have problems with mouse support I seem not to be able to figure out. I am using CH559 dev board which works but one LED is connected to P4.3 which conflicts with mouse data but aux output works. I also compiled custom firmware and mapped primary mouse to P2.2 and P2.3. Everything works when it works, however...

- T5720 usually does not recognize PS/2 mouse, no tricks seem to work
- "Something" happens and mouse is detected after which is always detected as long as I work with the machine
- "Something" happens again and mouse is no longer detected, usually after machine has been sitting unused
- Soft boot, cold boot, nothing seems to help but sometimes soft boot helps

For me this sounds hardware problem, dodgy wiring or something, but swapping kb and mouse does not help - kb works and mouse does not. Real PS/2 mouse always works. Sadly, I have no other computers with PS/2 ports...

Anybody have any ideas what could be going on...?

Ps. @serisman I think your schematics in GitHub has clk and data lines swapped for aux ports?

IMG_20240426_183935_396.jpg
Filename
IMG_20240426_183935_396.jpg
File size
33.71 KiB
Views
29 views
File license
CC-BY-4.0

Reply 219 of 220, by rasteri

User metadata
Rank Member
Rank
Member
jarp wrote on Yesterday, 17:59:

Anybody have any ideas what could be going on...?

No idea I'm afraid. There's so much different in your setup from mine (different board, mice, keyboard, PC, port pins, etc) that any one of them could be causing the problem.

Maybe grab one of those cheapo logic analyzers, then you can investigate further?