Comments (5)
SDCC 4.0.7 ...
Compiles with printf_small instead of printf (#define printf printf_small in usbhost.c and UsbHostHub_KM.c) - I have not checked if code was working on real hardware yet.
from ch554_sdcc.
Great! I'll try it on real chips as soon as they arrive. I bought a bunch to play with, and am excited to try them out
from ch554_sdcc.
Code compiles and 'works', but debug information on the Uart output is not the expected one...
Start @chipid=T2X (should be : printf( "Start @chipid=%02X\n", (uint16_t)CHIP_ID ); )
Wait Device In
Query Mouse @␀4X
Query Mouse @␀4X
I think it would be better to remove all printf and replace by some custom putstring/printhex to reduce footprint.
from ch554_sdcc.
I have made some tests on my github repository : the ch554_sdcc debug code as library (the linker will not include getchar for example), and 4 functions to print str/hex2/hex4/linefeed (also as library). Not very clean regarding the Makefile. It fits with full debug in usbhost and Usb_Host_KM.
Result looks like this on TX pin P3.1 (9600bps)
Start @ChipID=54
Wait Device In
USB dev in
EnumUSBDev
Reset USB Port
GetDevDescr: x12 x01 x00 x02 x00 x00 x00 x08 x6D x04 x77 xC0 x00 x72 x01 x02 x00 x01
GetCfgDescr: x09 x02 x22 x00 x01 x01 x00 xA0 x32 x09 x04 x00 x00 x01 x03 x01 x02 x00 x09 x21 x11 x01 x00 x01 x22 x2E x00 x07 x05 x81 x03 x04 x00 x0A
01
AnalyzeHidIntEndp 01
CtrlSetUsbConfig 01
GetHIDReport: x05 x01 x09 x02 xA1 x01 x09 x01 xA1 x00 x05 x09 x19 x01 x29 x03 x15 x00 x25 x01 x95 x08 x75 x01 x81 x02 x05 x01 x09 x30 x09 x31 x09 x38 x15 x81 x25 x7F x75 x08 x95 x03 x81 x06 xC0 xC0 x00 x00 x00 x00 x00 x00 x00 x00 x00 x00 x00 x00 x00 x00 x00 x00 x00 x00
USB-Mouse Ready
Query Mouse @0000
Query Mouse @0000
from ch554_sdcc.
I got my 554's in the mail today! Can confirm that these tweaks work.
Thank you! I'm totally going to poach your library too :)
from ch554_sdcc.
Related Issues (20)
- An arduino wrapper over ch554_sdcc HOT 1
- Win7 needs Zadig driver setup HOT 4
- default CODE_SIZE should be 14kB (0x3800) HOT 2
- make debug.c components optional to save code size HOT 4
- Is it possible to rewrite the description without unnecessary words? HOT 1
- x and x2 should not be volatile HOT 3
- race condition in ring buffer
- bug in UART ISR HOT 1
- reconsider 24Mhz for USB CDC HOT 5
- blink example doesn't work with P3
- ws2812 example doesn't work with default clock setting HOT 3
- ws2812 example does not compile under Windows MinGW HOT 4
- Linux flash tools HOT 7
- example in readme has wrong command HOT 3
- Official English Datasheets! HOT 1
- Chinese characters HOT 4
- ws2812 Makefile correction HOT 1
- Misused `&=` operator in method `ADCInit()` HOT 2
- Some examples broken with SDCC 4.2.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ch554_sdcc.