Re: [Sdcc-user] USB firmware

2013-03-30 Thread Xiaofan Chen
On Fri, Mar 29, 2013 at 10:41 PM, Luis de Arquer wrote: > I am starting a project on a pic18f2455 using USB, and I was trying to > find any library that I could use off the shelf with sdcc, if any -I > used ccs compiler in the past. > > There is a post here including a few other options, but again

Re: [Sdcc-user] USB firmware

2013-03-30 Thread Kustaa Nyholm
On 29.3.2013 17.07, "Kustaa Nyholm" wrote: >I've got a USB CDC ACM firmware that compiles with latest sdcc, >I'll see if I can put it up on my webpage this weekend. > > Find the update project here: http://www.sparetimelabs.com/usbcdcacm/usbcdcacm.php br Kusti This e-mail may contain confid

Re: [Sdcc-user] USB firmware

2013-03-30 Thread Luis de Arquer
On Sat, Mar 30, 2013 at 8:10 AM, M L wrote: > There are some GPLed USB frameworks laying around, my faworite is > http://openprog.altervista.org/USB_firm_eng.html. > It works fine, but using it for create a bootloader with sdcc is a > bit pointless becouse > SDCC generate a bigger final code than

Re: [Sdcc-user] USB firmware

2013-03-30 Thread M L
There are some GPLed USB frameworks laying around, my faworite is http://openprog.altervista.org/USB_firm_eng.html. It works fine, but using it for create a bootloader with sdcc is a bit pointless becouse SDCC generate a bigger final code than C18. This is a simple test compiling usb firmware from

Re: [Sdcc-user] USB firmware

2013-03-30 Thread Borut Ražem
On 29. 03. 2013 23:49, Luis de Arquer wrote: > Strange though, because that code was said to work with an older > version of gpasm! The bug is not so old: it was introduced 27th of August 2012 (I will not tell you by whom :-[ ). I suppose that there were other older bugs which prevented the code

Re: [Sdcc-user] USB firmware

2013-03-29 Thread Luis de Arquer
Hi Oliver, I would be happy to have a look if I could have a copy. Is your code still LGPL? Regards, Luis On Fri, Mar 29, 2013 at 11:03 PM, Oliver Meier wrote: > Am 29.03.2013 15:41, schrieb Luis de Arquer: >> I am starting a project on a pic18f2455 using USB, and I was trying to >> find any l

Re: [Sdcc-user] USB firmware

2013-03-29 Thread Oliver Meier
Am 29.03.2013 15:41, schrieb Luis de Arquer: > I am starting a project on a pic18f2455 using USB, and I was trying to > find any library that I could use off the shelf with sdcc, if any -I > used ccs compiler in the past. > > I found one from an article published in nuts&volts, and also a port > fr

Re: [Sdcc-user] USB firmware

2013-03-29 Thread Luis de Arquer
Well, actually sorry for not realizing it was a bug myself. I have not worked with macros that much. I thought the macro had an illegal argument really. > Now the original lab2.asm also compiles without errors with gpasm from svn > HEAD. OK, I see, now the definition of inrtgt works, and other d

Re: [Sdcc-user] USB firmware

2013-03-29 Thread Borut Ražem
Luis, actually thank YOU, since you found a gputils bug which I fixed right now, see https://sourceforge.net/p/gputils/bugs/262/. Now the original lab2.asm also compiles without errors with gpasm from svn HEAD. Cheers, Borut On 29. 03. 2013 22:56, Luis de Arquer wrote: Thanks a lot Borut!

Re: [Sdcc-user] USB firmware

2013-03-29 Thread Luis de Arquer
Thanks a lot Borut! It assembled fine now! :) I only had to comment out the line config ICPRT = OFF because it was complaining it did not exist such a config bit for the 2455. Regards, Luis On Fri, Mar 29, 2013 at 7:43 PM, Borut Ražem wrote: > On 29. 03. 2013 19:52, Luis de Arquer wrote: > >

Re: [Sdcc-user] USB firmware

2013-03-29 Thread Borut Ražem
On 29. 03. 2013 19:52, Luis de Arquer wrote: Thanks for all the responses. Joel, I have started downloading Microchip libraries, but seeing what Sebastien is saying I think I should leave that for now. Thanks anyway :) I've got a USB CDC ACM firmware that compiles with latest sdcc, I'll see i

Re: [Sdcc-user] USB firmware

2013-03-29 Thread Luis de Arquer
Thanks for all the responses. Joel, I have started downloading Microchip libraries, but seeing what Sebastien is saying I think I should leave that for now. Thanks anyway :) > I've got a USB CDC ACM firmware that compiles with latest sdcc, > I'll see if I can put it up on my webpage this weekend

Re: [Sdcc-user] USB firmware

2013-03-29 Thread Borut Ražem
On 29. 03. 2013 15:41, Luis de Arquer wrote: > I tried compiling the latter on gpasm (1.1.0) and got a lot of errors. I'm confused: you tried to compile the c (sdcc) source code with gpasm? Probably not. So where the erros came from: sdcc or gpasm? If from gpasm: can you send me the generated as

Re: [Sdcc-user] USB firmware

2013-03-29 Thread Kustaa Nyholm
I've got a USB CDC ACM firmware that compiles with latest sdcc, I'll see if I can put it up on my webpage this weekend. br Kusti On 29.3.2013 16.47, "Joel Davidson" wrote: >Luis- > >Does Microchip have any libraries available on their website that >would provide the functionality you need? It

Re: [Sdcc-user] USB firmware

2013-03-29 Thread Sebastien Lorquet
never ever use microchip usb libraries for any serious project they are buggy, huge, support lots of useless features (including ability to compile for pic32) I found it's easier to build a stack from scratch with inspirations from other codes. At least that's my experience. Best regards Sebast

Re: [Sdcc-user] USB firmware

2013-03-29 Thread Joel Davidson
That's a good data point to have. Thanks Sebastien. Joel On Fri, 29 Mar 2013, it would appear that Sebastien Lorquet wrote: > never ever use microchip usb libraries for any serious project > > they are buggy, huge, support lots of useless features (including ability to > compile for pic32) > >

Re: [Sdcc-user] USB firmware

2013-03-29 Thread Joel Davidson
Luis- Does Microchip have any libraries available on their website that would provide the functionality you need? It's been a while since I've done much pic assembly programming, but I was under the impression that gpasm could compile mplab code pretty easily. Of course I may be totally wrong o

[Sdcc-user] USB firmware

2013-03-29 Thread Luis de Arquer
I am starting a project on a pic18f2455 using USB, and I was trying to find any library that I could use off the shelf with sdcc, if any -I used ccs compiler in the past. I found one from an article published in nuts&volts, and also a port from c18 to sdcc, but it looks like neither has been updat