Vaclav Peroutka schrieb:
> Hi Raphael,
> 
> thank you very much for your quick response! I corrected the lines as you 
> suggested and it looks much better.
> 
> I have following output (maybe some problems with gputils) - there is EEPROM 
> memory. I noticed it in some other projects as well so it is not a bug of USB 
> code or SDCC itself.

I used the nuts&volts code to implement a USB-CDC device. For this i had
add the following lines to a local copy of the 18f2550.lkr file.

SECTION    NAME=CONFIG     ROM=config
SECTION    NAME=bank1      RAM=gpr1
SECTION    NAME=usbram4    RAM=usb4
SECTION    NAME=usbram5    RAM=usb5
SECTION    NAME=eeprom     ROM=eedata

IIrc i also had to add

-Wl-s$(lkr_PIC_TYPE).lkr,-m -mpic16 -p$(sdcc_PIC_TYPE)

with $lkr_PIC_TYPE=PIC18F2550 and $sdcc_PIC_TYPE=18f2550 to the compile
options in the Makefile.

Hope this helps

ja


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to