gnupic: Thread: Re: MCHPFSUSB AN950, AN956, ...


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Re: MCHPFSUSB AN950, AN956, ...
From: ####@####.####
Date: 7 Nov 2005 10:34:21 +0000
Message-Id: <1131359659.webexpressdV3.1.f@smtp.freesurf.ch>

Thanx for sharing Julian

For everybody who's interested, I uploaded it to my site:

http://electro.easyb.ch/files/MCHPFSUSB.tgz

Although when I tried to build it the other day, it failed. Gota have a 
closer look as soon as I have time.

BTW, I ordered USB connectors, so I'm soon ready to test the 
functionality.

Cheers,
Ezra.
---------Nachricht integriert----------
>Date: Sun, 6 Nov 2005 13:42:02 -0800
>From: "julian green" ####@####.####
>Reply-To: "julian green" ####@####.####
>To: ####@####.####
>Subject: MCHPFSUSB  AN950, AN956, ...
>
>Here is the tar file of the MCHPFSUSB code -
>microchips applicaion note for implementing a RS232
>device over USB.  I am sorry I have no idea if the
>code works as I do not have a programmer yet.
>
>Untar the file then:
>
>  cd MCHPFSUSB/fw/Cdc
>  make
>
>This is the version of sdcc I have - I had to compile
>from source.
>
>[viper1@joshua Cdc]$ sdcc -v
>SDCC :
>mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08
>2.5.3 #1111 (Sep 19 2005) (UNIX) 
>
>(sent from my non-work email account)
>
>Julian
>
>
>	
>		
>__________________________________ 
>Yahoo! Mail - PC Magazine Editors' Choice 2005 
>http://mail.yahoo.com UID 4020
---------Ende ursprüngliche Nachricht----------
----
sunrise ADSL: gratis und so sicher wie noch nie
http://www.sunrise.ch/home/proint/proint_ads-2.htm
----
sunrise ADSL: Gratuit et plus sûr que jamais!
http://www.sunrise.ch/fr/home/proint/proint_ads-2.htm
----
sunrise ADSL: Gratis e sicuro come non mai!
http://www.sunrise.ch/it/home/proint/proint_ads-2.htm
----


Subject: Re: MCHPFSUSB AN950, AN956, ...
From: Easy B ####@####.####
Date: 10 Nov 2005 21:48:01 +0000
Message-Id: <C0800679-903D-40F3-A6B0-36BDF163A9E7@freesurf.ch>

I submitted the bug at sourceforge. Hope it helps...

Cheers,
Ezra.

Am 10.11.2005 um 15:38 schrieb Xiaofan Chen:

> My Linux machine has an older version of SDCC compiled from CVS  
> source.
> It builds the SDCC CDC port. I am not so sure if this works though.  
> Maybe
> I can try this with PICkit 2.
>
> Therefore somehow the latest SDCC CVS introduced some bugs.
>
> Regards,
> Xiaofan
>
> mcuee@ubuntu:~/Desktop/coding/MCHPFSUSB/fw/Cdc$ sdcc -v
> SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/ 
> hc08
> 2.5.3 #1122 (Oct 19 2005) (UNIX)
>
> mcuee@ubuntu:~/Desktop/coding/MCHPFSUSB/fw/Cdc$ make -i
> sdcc -mpic16 -p18f2550 -I . -c -c system/usb/usbdrv/usbdrv.c -o
> system/usb/usbdrv/usbdrv.o
> Processor: 18f2550
> sdcc -mpic16 -p18f2550 -I . -c -c system/usb/usbmmap.c -o system/ 
> usb/usbmmap.o
> Processor: 18f2550
> sdcc -mpic16 -p18f2550 -I . -c -c main.c -o main.o
> Processor: 18f2550
> sdcc -mpic16 -p18f2550 -I . -c -c system/usb/usb9/usb9.c -o
> system/usb/usb9/usb9.o
> Processor: 18f2550
>         MOVFF   PREINC1, r0x00
> pcoderegs.c:367: removing reg r0x00 because it is used only once
>         MOVFF   PREINC1, r0x01
> pcoderegs.c:367: removing reg r0x01 because it is used only once
> sdcc -mpic16 -p18f2550 -I . -c -c autofiles/usbdsc.c -o autofiles/ 
> usbdsc.o
> Processor: 18f2550
> sdcc -mpic16 -p18f2550 -I . -c -c system/usb/usbctrltrf/usbctrltrf.c
> -o system/usb/usbctrltrf/usbctrltrf.o
> Processor: 18f2550
> sdcc -mpic16 -p18f2550 -I . -c -c user/user.c -o user/user.o
> Processor: 18f2550
> sdcc -mpic16 -p18f2550 -I . -c -c system/usb/class/cdc/cdc.c -o
> system/usb/class/cdc/cdc.o
> Processor: 18f2550
> system/usb/class/cdc/cdc.c:106: warning 110: conditional flow changed
> by optimizer: so said EVELYN the modified DOG
> gplink -t 64 -s /usr/local/share/gputils/lkr/18f2550.lkr
> -I/usr/local/share/sdcc/lib/pic16 -o main.hex crt0i.o pic18f2550.lib
> libsdcc.lib system/usb/usbdrv/usbdrv.o system/usb/usbmmap.o main.o
> system/usb/usb9/usb9.o autofiles/usbdsc.o
> system/usb/usbctrltrf/usbctrltrf.o user/user.o
> system/usb/class/cdc/cdc.o
> warning: processor mismatch in "system/usb/usbdrv/usbdrv.o"
> warning: processor mismatch in "system/usb/usbmmap.o"
> warning: processor mismatch in "main.o"
> warning: processor mismatch in "system/usb/usb9/usb9.o"
> warning: processor mismatch in "autofiles/usbdsc.o"
> warning: processor mismatch in "system/usb/usbctrltrf/usbctrltrf.o"
> warning: processor mismatch in "user/user.o"
> warning: processor mismatch in "system/usb/class/cdc/cdc.o"
>
> mcuee@ubuntu:~/Desktop/coding/MCHPFSUSB/fw/Cdc$ ls -la *.hex
> -rw-r--r--  1 mcuee mcuee 20956 2005-11-10 22:38 main.hex
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>

Subject: Re: MCHPFSUSB AN950, AN956, ...
From: John Swensen ####@####.####
Date: 12 Nov 2005 06:51:59 +0000
Message-Id: <loom.20051112T074813-171@post.gmane.org>

Chen Xiao Fan <xiaofan <at> sg.pepperl-fuchs.com> writes:

> 
> The same error occurs here under Windows SDCC.
> 
> Regards,
> Xiaofan
> 
> Assertion failed: IS_DATA_PTR(operandType(left)), 
> file gen.c, line 10532
> 
> 

I kept getting this, even with a recent snapshot.  So I used his package as a
model and went back and tried to make as few changes as possible.  I finally got
it working on various new and old version of sdcc.  It can be found at

http://swenmac.homeip.net:8080/MC2.tbz

I think there might be some startup and interrupt issues that need resolved, but
I am pretty sure it will compile for any somewhat-recent version of sdcc.

John



Subject: Re: MCHPFSUSB AN950, AN956, ...
From: John Swensen ####@####.####
Date: 13 Nov 2005 00:44:14 +0000
Message-Id: <loom.20051113T014038-954@post.gmane.org>

Easy B <easy-b <at> freesurf.ch> writes:

> 
> Hi John
> 
> I saw that you use the 18f4455. What other changes did you perform?  
> While building Julians code the SIGABRT is gone now. But instead I  
> get a SIGSEGV while compiling usbctrltrf.c. I just don't get why sdcc  
> crashes with one code and with the other one it doesn't.
> 
> Cheers,
> Ezra.
> 
> Am 12.11.2005 um 07:50 schrieb John Swensen:
> 
> 

I went back and did a diff on my sources and realized that mine is derived from
the Hitech-C port found at http://www.microchipc.com/sourcecode/ , not the one
linked to in this thread.  I am pretty sure the only things I changed was some
#includes and the definition of #define rom in the system/typedefs.h file and
change the slashes in all the #include directives in all files.  There was also
some bracketing issues in the static declarations of the descriptors in
autofiles/autodsc.c.
If there were any other changes, I think they were pretty trivial.  Like I said
though, I haven't had a chance to test it yet.  My whole reason for working on
this is because I want to create a single chip low-voltage ICSP that uses USB
for those other Mac users (an others) who don't have a serial or parallel port.
 You could put a charge pump on the board and do non-lowvoltage too, using only
the power supplied by the USB bus.

I actually was able to get this to compile for 18f2450/2455/2550/2555 also.

John


[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.