I've tried to port the USB firmware for C8051F320 (available at
http://www.silabs.com/products/downloads/AN139SW.zip ) from Keil to SDCC.
The original firmware compiled with Keil works perfectly with my board
(http://www.ise.pw.edu.pl/~wzab/cygnal), however the patched SDCC
version (i've attached my patches) doesn't...
The changes I've made were minimal - just to make sources compile under
The whole thing compiles with:
$sdcc -c *.c
However then it just doesn't receive even the first USB control packet...
The generated assembly code in the LST files looks good. May be there is
just a problem with subtle differences between directives or so?
Or may be SDCC is just more stack consuming?
It would be nice to get this thing running when compiled with SDCC,
however the long term solution should comprise the clean room
implementation (putting the original
Cygnal firmware under GPL or "Artistic" license is rather problematic).
If there is anybody interested in getting this firmware running, please
take a look. Maybe you'll find something I've missed?
TIA & Best regards,