From johan at edab.nu Tue Oct 20 02:18:39 2009 From: johan at edab.nu (=?ISO-8859-1?Q?Johan_Wallstr=F6m?=) Date: Tue Oct 20 03:30:37 2009 Subject: [Icc-avr] AT328 In-Reply-To: <200909260730.n8Q7Ux1O099821@mail.imagecraft.com> References: <200909260730.n8Q7Ux1O099821@mail.imagecraft.com> Message-ID: <4ADD806F.9040604@edab.nu> Dear Mailing List, I'm trying to port my bootloader for at168 to at328.. The data sheet say that while the at328 has 32k of flash, the bootloader area is still placed just below 16k. When checking the fuses with Atmel AVR Studio, the text for the bootloader size section seems to indicate the same. However, iccavr puts the bootloader code below 32k. It does seem strange that they would put the bootloader area in the middle of the device... Does anyone know if this is a misprint in the datasheet? There also seems to be no include file in icc avr for this device.. Best cheers Johan Wallstr?m From tim at sabretechnology.co.uk Tue Oct 20 02:43:58 2009 From: tim at sabretechnology.co.uk (Tim Mitchell) Date: Tue Oct 20 03:55:51 2009 Subject: [Icc-avr] AT328 Message-ID: <04671BB8D269034BBC4BB6BA894867261CBC7F@sserver.SabreTechnology.local> ----Original Message---- From: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] On Behalf Of Johan Wallstr?m Sent: 20 October 2009 10:19 To: Discussion list for ICCAVR and ICCtiny Users. You do NOT need tosubscribe to icc-announce if you are a member of this. Subject: [Icc-avr] AT328 > Dear Mailing List, > > I'm trying to port my bootloader for at168 to at328.. > The data sheet say that while the at328 has 32k of flash, > the bootloader > area is still placed > just below 16k. When checking the fuses with Atmel AVR > Studio, the text > for the bootloader size > section seems to indicate the same. However, iccavr puts > the bootloader > code below 32k. > It does seem strange that they would put the bootloader > area in the > middle of the device... > Does anyone know if this is a misprint in the datasheet? > > There also seems to be no include file in icc avr for > this device.. It doesn't say this in the datasheet I've got - it says the bootloader starts at 0x3F00 / 0x3E00 / 0x3C00 / 0x3800 depending on the BOOTSZ fuses. This is on p291 of the datasheet revised 10/09 - maybe it was wrong in an earlier version? There is definitely an include file in my installation of iccavr, it is called iom328pv.h -- Tim Mitchell From richard-lists at imagecraft.com Tue Oct 20 02:56:08 2009 From: richard-lists at imagecraft.com (Richard Man) Date: Tue Oct 20 04:08:11 2009 Subject: [Icc-avr] AT328 In-Reply-To: <04671BB8D269034BBC4BB6BA894867261CBC7F@sserver.SabreTechno logy.local> References: <04671BB8D269034BBC4BB6BA894867261CBC7F@sserver.SabreTechnology.local> Message-ID: <200910201108.n9KB8AlC083388@mail.imagecraft.com> Is there some confusion stemmed from Atmel use of byte addressing for something and word addressing for others? At 02:43 AM 10/20/2009, Tim Mitchell wrote: >It doesn't say this in the datasheet I've got - it says the >bootloader starts at 0x3F00 / 0x3E00 / 0x3C00 / 0x3800 depending on >the BOOTSZ fuses. This is on p291 of the datasheet revised 10/09 - >maybe it was wrong in an earlier version? > >There is definitely an include file in my installation of iccavr, it >is called iom328pv.h > >-- >Tim Mitchell // richard // http://rfman.wordpress.com // http://www.imagecraft.com/pub/Portfolio09/ From richard at imagecraft.com Tue Oct 20 03:06:42 2009 From: richard at imagecraft.com (Richard Man) Date: Tue Oct 20 04:18:46 2009 Subject: [Icc-avr] The future is now, next-gen IDE Message-ID: <200910201118.n9KBIiLt083481@mail.imagecraft.com> http://imagecraft.wordpress.com/2009/10/20/next-gen-ide-codeblocks-pre-alpha/ // richard blog: // mailing list: http://www.dragonsgate.net/mailman/listinfo // photo book: http://www.blurb.com/bookstore/detail/745963 [ For technical support on ImageCraft products, please include all previous replies in your msgs. ] From johan at edab.nu Tue Oct 20 03:15:23 2009 From: johan at edab.nu (=?ISO-8859-1?Q?Johan_Wallstr=F6m?=) Date: Tue Oct 20 04:27:21 2009 Subject: [Icc-avr] AT328 In-Reply-To: <200910201108.n9KB8AlC083388@mail.imagecraft.com> References: <04671BB8D269034BBC4BB6BA894867261CBC7F@sserver.SabreTechnology.local> <200910201108.n9KB8AlC083388@mail.imagecraft.com> Message-ID: <4ADD8DBB.1080602@edab.nu> Yeah this seems to be it, thanks for your responses.. Hmm, I can find the include file for at328, but it's not included in the iccioavr.h file Richard Man skrev: > Is there some confusion stemmed from Atmel use of byte addressing for > something and word addressing for others? > > At 02:43 AM 10/20/2009, Tim Mitchell wrote: > > >> It doesn't say this in the datasheet I've got - it says the >> bootloader starts at 0x3F00 / 0x3E00 / 0x3C00 / 0x3800 depending on >> the BOOTSZ fuses. This is on p291 of the datasheet revised 10/09 - >> maybe it was wrong in an earlier version? >> >> There is definitely an include file in my installation of iccavr, it >> is called iom328pv.h >> >> -- >> Tim Mitchell > > // richard > // http://rfman.wordpress.com > // http://www.imagecraft.com/pub/Portfolio09/ > _______________________________________________ > Icc-avr mailing list > Icc-avr@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-avr > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.422 / Virus Database: 270.14.23/2447 - Release Date: 10/20/09 03:55:00 > > From prsalter at bigpond.net.au Tue Oct 20 03:38:43 2009 From: prsalter at bigpond.net.au (Paul Salter) Date: Tue Oct 20 04:50:31 2009 Subject: [Icc-avr] The future is now, next-gen IDE References: <200910201118.n9KBIiLt083481@mail.imagecraft.com> Message-ID: <80DAFC57E4504A5FAB3034315EAF5645@home> ok, downloaded and extracted and when i try to run the exe I get an error stating the application failed to sart because mingwm10.dll was not found. Regards Paul ----- Original Message ----- From: "Richard Man" To: ; ; ; ; ; Sent: Tuesday, October 20, 2009 9:06 PM Subject: [Icc-avr] The future is now, next-gen IDE > http://imagecraft.wordpress.com/2009/10/20/next-gen-ide-codeblocks-pre-alpha/ > > > > // richard blog: > > // mailing list: http://www.dragonsgate.net/mailman/listinfo > // photo book: http://www.blurb.com/bookstore/detail/745963 > [ For technical support on ImageCraft products, please include all > previous replies in your msgs. ] > _______________________________________________ > Icc-avr mailing list > Icc-avr@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-avr From jassenbaum at htp-tel.de Tue Oct 20 13:59:19 2009 From: jassenbaum at htp-tel.de (Johannes Assenbaum) Date: Tue Oct 20 15:11:10 2009 Subject: [Icc-avr] The future is now, next-gen IDE References: <200910201118.n9KBIiLt083481@mail.imagecraft.com> <80DAFC57E4504A5FAB3034315EAF5645@home> Message-ID: I run into same error. Best regards, Johannes > ok, downloaded and extracted and when i try to run the exe I get an error > stating the application failed to sart because mingwm10.dll was not found. > Regards > Paul > ----- Original Message ----- > From: "Richard Man" > To: ; ; > ; ; > ; > Sent: Tuesday, October 20, 2009 9:06 PM > Subject: [Icc-avr] The future is now, next-gen IDE >> http://imagecraft.wordpress.com/2009/10/20/next-gen-ide-codeblocks-pre-alpha/ >> >> >> >> // richard blog: >> >> // mailing list: http://www.dragonsgate.net/mailman/listinfo >> // photo book: http://www.blurb.com/bookstore/detail/745963 >> [ For technical support on ImageCraft products, please include all >> previous replies in your msgs. ] >> _______________________________________________ >> Icc-avr mailing list >> Icc-avr@imagecraft.com >> http://dragonsgate.net/mailman/listinfo/icc-avr > _______________________________________________ > Icc-avr mailing list > Icc-avr@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-avr From richard-lists at imagecraft.com Tue Oct 20 14:10:34 2009 From: richard-lists at imagecraft.com (Richard Man) Date: Tue Oct 20 15:22:42 2009 Subject: [Icc-avr] The future is now, next-gen IDE In-Reply-To: <80DAFC57E4504A5FAB3034315EAF5645@home> References: <200910201118.n9KBIiLt083481@mail.imagecraft.com> <80DAFC57E4504A5FAB3034315EAF5645@home> Message-ID: <200910202222.n9KMMe4b090254@mail.imagecraft.com> At 03:38 AM 10/20/2009, Paul Salter wrote: >ok, downloaded and extracted and when i try to run the exe I get an >error stating the application failed to sart because mingwm10.dll >was not found. Fixed. I re-uploaded the zip file. You can also just d/l the .dll http://www.imagecraft.com/pub/mingwm10.dll Thanks. // richard // http://rfman.wordpress.com // http://www.imagecraft.com/pub/Portfolio09/ From benjamin_rockwell at yahoo.com Wed Oct 21 05:13:11 2009 From: benjamin_rockwell at yahoo.com (Benjamin Rockwell) Date: Wed Oct 21 06:25:01 2009 Subject: [Icc-avr] Re: The future is now, next-gen IDE Message-ID: <118489.19598.qm@web56402.mail.re3.yahoo.com> > ok, downloaded and extracted and when i try to run the exe I get an error > stating the application failed to sart because mingwm10.dll was not found. I downloaded the mingw dll and added to the directory with codeblocks.exe and it now works. Seems nice so far. The editor is definitely a step forward with code folding and an "intellisense" like code completion functionality. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20091021/e090ec56/attachment.html From Albert.vanVeen at pertronic.co.nz Wed Oct 21 12:22:56 2009 From: Albert.vanVeen at pertronic.co.nz (Albert vanVeen) Date: Wed Oct 21 13:34:48 2009 Subject: [Icc-avr] Re: The future is now, next-gen IDE In-Reply-To: <118489.19598.qm@web56402.mail.re3.yahoo.com> References: <118489.19598.qm@web56402.mail.re3.yahoo.com> Message-ID: <5F8515C5ED67B6439B4F93D7B5E08A36063FDF@sbs.pertronic.local> It may be better to discuss here than in the wordpress columns. After following all directions and hints from that website and this forum, I still get the project compiled with no errors, resulting o and lis files (with correct contents), but empty cof and hex files. Obviously it didn't link, but why not? That's part of build, isn't it? Albert. ________________________________ From: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] On Behalf Of Benjamin Rockwell Sent: Thursday, October 22, 2009 01:13 AM To: icc-avr@imagecraft.com Subject: [Icc-avr] Re: The future is now, next-gen IDE > ok, downloaded and extracted and when i try to run the exe I get an error > stating the application failed to sart because mingwm10.dll was not found. I downloaded the mingw dll and added to the directory with codeblocks.exe and it now works. Seems nice so far. The editor is definitely a step forward with code folding and an "intellisense" like code completion functionality. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20091022/d2ead395/attachment.html From richard-lists at imagecraft.com Wed Oct 21 12:58:19 2009 From: richard-lists at imagecraft.com (Richard Man) Date: Wed Oct 21 14:10:33 2009 Subject: [Icc-avr] Re: The future is now, next-gen IDE In-Reply-To: <5F8515C5ED67B6439B4F93D7B5E08A36063FDF@sbs.pertronic.local > References: <118489.19598.qm@web56402.mail.re3.yahoo.com> <5F8515C5ED67B6439B4F93D7B5E08A36063FDF@sbs.pertronic.local> Message-ID: <200910212110.n9LLAWBf003128@mail.imagecraft.com> An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20091021/f110f85f/attachment.html From Albert.vanVeen at pertronic.co.nz Wed Oct 21 13:45:51 2009 From: Albert.vanVeen at pertronic.co.nz (Albert vanVeen) Date: Wed Oct 21 14:57:41 2009 Subject: [Icc-avr] Re: The future is now, next-gen IDE In-Reply-To: <200910212110.n9LLAWBf003128@mail.imagecraft.com> References: <118489.19598.qm@web56402.mail.re3.yahoo.com><5F8515C5ED67B6439B4F93D7B5E08A36063FDF@sbs.pertronic.local> <200910212110.n9LLAWBf003128@mail.imagecraft.com> Message-ID: <5F8515C5ED67B6439B4F93D7B5E08A36063FE0@sbs.pertronic.local> I have the following files: Directory of c:\iccv7avr\examples.avr\LED\CB_LED\obj\Release 21/10/2009 10:40 AM . 21/10/2009 10:40 AM .. 21/10/2009 10:40 AM 7,404 led.lis 21/10/2009 10:40 AM 2,741 led.o 2 File(s) 10,145 bytes Directory of c:\iccv7avr\examples.avr\LED\CB_LED\bin\Release 21/10/2009 10:40 AM . 21/10/2009 10:40 AM .. 21/10/2009 10:40 AM 0 CB_LED.cof 21/10/2009 10:40 AM 0 CB_LED.hex 2 File(s) 0 bytes ________________________________ From: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] On Behalf Of Richard Man Sent: Thursday, October 22, 2009 08:58 AM To: icc-avr@imagecraft.com Subject: RE: [Icc-avr] Re: The future is now, next-gen IDE Yes, the list is much better for discussions. Have you looked at the follow-on comments on the blog though? You will need to look in the "Release" directory. Let me know if they are not there. It may be better to discuss here than in the wordpress columns. After following all directions and hints from that website and this forum, I still get the project compiled with no errors, resulting o and lis files (with correct contents), but empty cof and hex files. Obviously it didn't link, but why not? That's part of build, isn't it? Albert. // richard < http://www.imagecraft.com > // http://rfman.wordpress.com // http://www.imagecraft.com/pub/Portfolio09/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20091022/985704ca/attachment.html From design at johnfromarran.org.uk Wed Oct 21 16:48:33 2009 From: design at johnfromarran.org.uk (John Baraclough) Date: Wed Oct 21 18:00:26 2009 Subject: [Icc-avr] The future is now, next-gen IDE In-Reply-To: <200910201118.n9KBIiLt083481@mail.imagecraft.com> References: <200910201118.n9KBIiLt083481@mail.imagecraft.com> Message-ID: <4ADF9DD1.1060903@johnfromarran.org.uk> I've just downloaded the zip file and the file that was missing is still not there, however the extra link does fix the problem. I've only had a quick look as it's nearly 1am here and we're only just back from vacation, but the first thing that is going to bug the hell out of me is the change of "Build" from to +, "Rebuild All" from + to + and finally the change of to "Build & Run". Maybe I'm just too old to change my habits! All the best for now, John Richard Man wrote: > http://imagecraft.wordpress.com/2009/10/20/next-gen-ide-codeblocks-pre-alpha/ > > > > > // richard blog: > > // mailing list: http://www.dragonsgate.net/mailman/listinfo > // photo book: http://www.blurb.com/bookstore/detail/745963 > [ For technical support on ImageCraft products, please include all > previous replies in your msgs. ] > _______________________________________________ > Icc-avr mailing list > Icc-avr@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-avr > From jh.bodin at telia.com Wed Oct 21 23:45:07 2009 From: jh.bodin at telia.com (jh.bodin@telia.com) Date: Thu Oct 22 00:56:58 2009 Subject: Sv: RE: [Icc-avr] Re: The future is now, next-gen IDE Message-ID: <18313387.358121256193907687.JavaMail.defaultUser@defaultHost> Albert, did you actually look in the .cof/.hex files? Sometimes Windows doesn't update the file size shown, even if the file has been closed by the program that wrote to it. Try clicking View/Refresh in the folder menu. BTW, the output files from my PIC compiler (.hex etc.) doesn't show up at all (!) until I click View/Refresh or close/reopen the folder... Regards Johan SM6LKM >----Ursprungligt meddelande---- >Fr?n: Albert.vanVeen@pertronic.co.nz >Datum: 2009-10-21 22:45 >Till: "Discussion list for ICCAVR and ICCtiny Users. You do NOT need > tosubscribeto icc-announce if you are a member of this." >?rende: RE: [Icc-avr] Re: The future is now, next-gen IDE > >I have the following files: > > Directory of c:\iccv7avr\examples.avr\LED\CB_LED\obj\Release > >21/10/2009 10:40 AM . >21/10/2009 10:40 AM .. >21/10/2009 10:40 AM 7,404 led.lis >21/10/2009 10:40 AM 2,741 led.o > 2 File(s) 10,145 bytes > > Directory of c:\iccv7avr\examples.avr\LED\CB_LED\bin\Release > >21/10/2009 10:40 AM . >21/10/2009 10:40 AM .. >21/10/2009 10:40 AM 0 CB_LED.cof >21/10/2009 10:40 AM 0 CB_LED.hex > 2 File(s) 0 bytes From pecanh at gmail.com Thu Oct 22 13:18:59 2009 From: pecanh at gmail.com (Pecan) Date: Thu Oct 22 14:30:55 2009 Subject: [Icc-avr] The future is now, next-gen IDE In-Reply-To: <4ADF9DD1.1060903@johnfromarran.org.uk> References: <200910201118.n9KBIiLt083481@mail.imagecraft.com> <4ADF9DD1.1060903@johnfromarran.org.uk> Message-ID: <4AE0BE33.1030100@gmail.com> You can redefine any menu key via MainMenu->Settings->Editor->Keyboard Shortcuts. John Baraclough wrote: >
I've just downloaded the zip file and the > file that was missing is still not there, however the extra link does > fix the problem. I've only had a quick look as it's nearly 1am here > and we're only just back from vacation, but the first thing that is > going to bug the hell out of me is the change of "Build" from to > +, "Rebuild All" from + to + and > finally the change of to "Build & Run". > > Maybe I'm just too old to change my habits! > > All the best for now, > John > > Richard Man wrote: >> http://imagecraft.wordpress.com/2009/10/20/next-gen-ide-codeblocks-pre-alpha/ >> >> >> >> >> // richard blog: >> >> // mailing list: http://www.dragonsgate.net/mailman/listinfo >> // photo book: http://www.blurb.com/bookstore/detail/745963 >> [ For technical support on ImageCraft products, please include all >> previous replies in your msgs. ] >> _______________________________________________ >> Icc-avr mailing list >> Icc-avr@imagecraft.com >> http://dragonsgate.net/mailman/listinfo/icc-avr >> > > >
> From pecanh at gmail.com Thu Oct 22 13:26:27 2009 From: pecanh at gmail.com (Pecan) Date: Thu Oct 22 14:38:22 2009 Subject: [Icc-avr] Re: The future is now, next-gen IDE In-Reply-To: <5F8515C5ED67B6439B4F93D7B5E08A36063FE0@sbs.pertronic.local> References: <118489.19598.qm@web56402.mail.re3.yahoo.com><5F8515C5ED67B6439B4F93D7B5E08A36063FDF@sbs.pertronic.local> <200910212110.n9LLAWBf003128@mail.imagecraft.com> <5F8515C5ED67B6439B4F93D7B5E08A36063FE0@sbs.pertronic.local> Message-ID: <4AE0BFF3.10104@gmail.com> Could show us the full compile log by doing the following.: 1) Make sure that full logging is enables by: main menu->Settings->CompilerAndDebugger->OtherSettings (far right tab). Set Compiler Logging: to Full Command Line. 2) ReBuild your project. 3) Right click on the "Build Log" tab and choose "Copy Contents to Clipboard". then paste that to a message here. regards, pecan Albert vanVeen wrote: > I have the following files: > > Directory of c:\iccv7avr\examples.avr\LED\CB_LED\obj\Release > > 21/10/2009 10:40 AM . > 21/10/2009 10:40 AM .. > 21/10/2009 10:40 AM 7,404 led.lis > 21/10/2009 10:40 AM 2,741 led.o > 2 File(s) 10,145 bytes > Directory of c:\iccv7avr\examples.avr\LED\CB_LED\bin\Release > > 21/10/2009 10:40 AM . > 21/10/2009 10:40 AM .. > 21/10/2009 10:40 AM 0 CB_LED.cof > 21/10/2009 10:40 AM 0 CB_LED.hex > 2 File(s) 0 bytes > > ------------------------------------------------------------------------ > *From:* icc-avr-bounces@imagecraft.com > [mailto:icc-avr-bounces@imagecraft.com] *On Behalf Of *Richard Man > *Sent:* Thursday, October 22, 2009 08:58 AM > *To:* icc-avr@imagecraft.com > *Subject:* RE: [Icc-avr] Re: The future is now, next-gen IDE > > Yes, the list is much better for discussions. Have you looked at the > follow-on comments on the blog though? You will need to look in the > "Release" directory. Let me know if they are not there. > > >> It may be better to discuss here than in the wordpress columns. >> After following all directions and hints from that website and this >> forum, I still get the project compiled with no errors, resulting o >> and lis files (with correct contents), but empty cof and hex files. >> Obviously it didn't link, but why not? That's part of build, isn't it? >> >> Albert. >> > > // richard < http://www.imagecraft.com > > // http://rfman.wordpress.com > // > http://www.imagecraft.com/pub/Portfolio09/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20091022/a2f0cc86/attachment.html From Albert.vanVeen at pertronic.co.nz Thu Oct 22 13:39:26 2009 From: Albert.vanVeen at pertronic.co.nz (Albert vanVeen) Date: Thu Oct 22 14:51:19 2009 Subject: [Icc-avr] Re: The future is now, next-gen IDE In-Reply-To: <4AE0BFF3.10104@gmail.com> References: <118489.19598.qm@web56402.mail.re3.yahoo.com><5F8515C5ED67B6439B4F93D7B5E08A36063FDF@sbs.pertronic.local> <200910212110.n9LLAWBf003128@mail.imagecraft.com><5F8515C5ED67B6439B4F93D7B5E08A36063FE0@sbs.pertronic.local> <4AE0BFF3.10104@gmail.com> Message-ID: <5F8515C5ED67B6439B4F93D7B5E08A36063FE4@sbs.pertronic.local> Here it is: -------------- Clean: Release in CB_LED --------------- Cleaned "CB_LED - Release" -------------- Build: Release in CB_LED --------------- iccavr.exe -c -D__ICC_VERSION=7.22B -D__BUILD=6 -DATMega32 -l -g -Wa-g -MLongJump -MHasMul -MEnhanced led.c -o obj\Release\led.o iccavr.exe -o C:\iccv7avr\examples.avr\LED\CB_LED\CB_LED obj\Release\led.o -g -nb:2 -e:0x8000 -ucrtatmega.o -bfunc_lit:0x54.0x8000 -dram_end:0x85f -bdata:0x60.0x85f -dhwstk_size:16 -beeprom:0.1024 -fihx_coff -S0 -lcatmega Usage: [options] file [file ...] [-l] @ Obtain options from file -btext:expression -bdata:expression -b:expression -d global symbol = expression -F: (AVR|M8C) fill unused memory with -f: -fmots19 | -fintelhex | -fcoff | -fihx_coff -L library search path -l Search library archive lib.a -m Generate map file as .mp -o Name output file -R do not link in startup or library file -Sx Atmel Studio COFF version S0: Studio 3.x; S1: Stduio 4.0 - 4.05; S2: Studio 4.06+ -xcall Generate 22 bits extended call opcode Process terminated with status 1 (0 minutes, 0 seconds) 0 errors, 0 warnings ________________________________ From: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] On Behalf Of Pecan Sent: Friday, October 23, 2009 09:26 AM To: Discussion list for ICCAVR and ICCtiny Users. You do NOT need tosubscribe to icc-announce if you are a member of this. Subject: Re: RE: [Icc-avr] Re: The future is now, next-gen IDE Could show us the full compile log by doing the following.: 1) Make sure that full logging is enables by: main menu->Settings->CompilerAndDebugger->OtherSettings (far right tab). Set Compiler Logging: to Full Command Line. 2) ReBuild your project. 3) Right click on the "Build Log" tab and choose "Copy Contents to Clipboard". then paste that to a message here. regards, pecan Albert vanVeen wrote: I have the following files: Directory of c:\iccv7avr\examples.avr\LED\CB_LED\obj\Release 21/10/2009 10:40 AM . 21/10/2009 10:40 AM .. 21/10/2009 10:40 AM 7,404 led.lis 21/10/2009 10:40 AM 2,741 led.o 2 File(s) 10,145 bytes Directory of c:\iccv7avr\examples.avr\LED\CB_LED\bin\Release 21/10/2009 10:40 AM . 21/10/2009 10:40 AM .. 21/10/2009 10:40 AM 0 CB_LED.cof 21/10/2009 10:40 AM 0 CB_LED.hex 2 File(s) 0 bytes ________________________________ From: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] On Behalf Of Richard Man Sent: Thursday, October 22, 2009 08:58 AM To: icc-avr@imagecraft.com Subject: RE: [Icc-avr] Re: The future is now, next-gen IDE Yes, the list is much better for discussions. Have you looked at the follow-on comments on the blog though? You will need to look in the "Release" directory. Let me know if they are not there. It may be better to discuss here than in the wordpress columns. After following all directions and hints from that website and this forum, I still get the project compiled with no errors, resulting o and lis files (with correct contents), but empty cof and hex files. Obviously it didn't link, but why not? That's part of build, isn't it? Albert. // richard < http://www.imagecraft.com > // http://rfman.wordpress.com // http://www.imagecraft.com/pub/Portfolio09/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20091023/ecd9f646/attachment.html From richard-lists at imagecraft.com Thu Oct 22 13:47:08 2009 From: richard-lists at imagecraft.com (Richard Man) Date: Thu Oct 22 14:59:30 2009 Subject: [Icc-avr] Re: The future is now, next-gen IDE In-Reply-To: <5F8515C5ED67B6439B4F93D7B5E08A36063FE4@sbs.pertronic.local > References: <118489.19598.qm@web56402.mail.re3.yahoo.com> <5F8515C5ED67B6439B4F93D7B5E08A36063FDF@sbs.pertronic.local> <200910212110.n9LLAWBf003128@mail.imagecraft.com> <5F8515C5ED67B6439B4F93D7B5E08A36063FE0@sbs.pertronic.local> <4AE0BFF3.10104@gmail.com> <5F8515C5ED67B6439B4F93D7B5E08A36063FE4@sbs.pertronic.local> Message-ID: <200910222159.n9MLxTfM018205@mail.imagecraft.com> Albert, what version of ICC are you running? Help->About (on normal ICC IDE) tells. I forgot to mention that this requires 7.22 or later, as the linker needs to accept the -nb: switch. Sorry. At 01:39 PM 10/22/2009, you wrote: >Content-class: urn:content-classes:message >Content-Type: multipart/alternative; > boundary="----_=_NextPart_001_01CA5357.BEC57304" > >Here it is: > >-------------- Clean: Release in CB_LED --------------- > >Cleaned "CB_LED - Release" > >-------------- Build: Release in CB_LED --------------- > >iccavr.exe -c -D__ICC_VERSION=7.22B -D__BUILD=6 -DATMega32 -l -g >-Wa-g -MLongJump -MHasMul -MEnhanced led.c -o obj\Release\led.o >iccavr.exe -o C:\iccv7avr\examples.avr\LED\CB_LED\CB_LED >obj\Release\led.o -g -nb:2 -e:0x8000 -ucrtatmega.o >-bfunc_lit:0x54.0x8000 -dram_end:0x85f -bdata:0x60.0x85f >-dhwstk_size:16 -beeprom:0.1024 -fihx_coff -S0 -lcatmega >Usage: [options] file [file ...] [-l] > @ Obtain options from file > -btext:expression > -bdata:expression > -b:expression > -d global symbol = expression > -F: (AVR|M8C) fill unused memory with > -f: -fmots19 | -fintelhex | -fcoff | -fihx_coff > -L library search path > -l Search library archive lib.a > -m Generate map file as .mp > -o Name output file > -R do not link in startup or library file > -Sx Atmel Studio COFF version > S0: Studio 3.x; S1: Stduio 4.0 - 4.05; S2: Studio 4.06+ > -xcall Generate 22 bits extended call opcode >Process terminated with status 1 (0 minutes, 0 seconds) >0 errors, 0 warnings > > > >---------- >From: icc-avr-bounces@imagecraft.com >[mailto:icc-avr-bounces@imagecraft.com] On Behalf Of Pecan >Sent: Friday, October 23, 2009 09:26 AM >To: Discussion list for ICCAVR and ICCtiny Users. You do NOT need >tosubscribe to icc-announce if you are a member of this. >Subject: Re: RE: [Icc-avr] Re: The future is now, next-gen IDE > >Could show us the full compile log by doing the following.: >1) Make sure that full logging is enables by: > main menu->Settings->CompilerAndDebugger->OtherSettings (far > right tab). > Set Compiler Logging: to Full Command Line. >2) ReBuild your project. >3) Right click on the "Build Log" tab and choose "Copy Contents to Clipboard". > then paste that to a message here. > >regards, >pecan > > >Albert vanVeen wrote: >>I have the following files: >> >> Directory of c:\iccv7avr\examples.avr\LED\CB_LED\obj\Release >> >>21/10/2009 10:40 AM . >>21/10/2009 10:40 AM .. >>21/10/2009 10:40 AM 7,404 led.lis >>21/10/2009 10:40 AM 2,741 led.o >> 2 File(s) 10,145 bytes >> Directory of c:\iccv7avr\examples.avr\LED\CB_LED\bin\Release >> >>21/10/2009 10:40 AM . >>21/10/2009 10:40 AM .. >>21/10/2009 10:40 AM 0 CB_LED.cof >>21/10/2009 10:40 AM 0 CB_LED.hex >> 2 File(s) 0 bytes >> >> >>---------- >>From: >>icc-avr-bounces@imagecraft.co >>m [mailto:icc-avr-bounces@imagecraft.com] On Behalf Of Richard Man >>Sent: Thursday, October 22, 2009 08:58 AM >>To: icc-avr@imagecraft.com >>Subject: RE: [Icc-avr] Re: The future is now, next-gen IDE >> >>Yes, the list is much better for discussions. Have you looked at >>the follow-on comments on the blog though? You will need to look in >>the "Release" directory. Let me know if they are not there. >> >> >>>It may be better to discuss here than in the wordpress columns. >>>After following all directions and hints from that website and >>>this forum, I still get the project compiled with no errors, >>>resulting o and lis files (with correct contents), but empty cof >>>and hex files. Obviously it didn't link, but why not? That's part >>>of build, isn't it? >>> >>>Albert. >>> >> >>// richard < http://www.imagecraft.com> >>// http://rfman.wordpress.com >>// http://www.imagecraft.com/pub/Portfolio09/ > >_______________________________________________ >Icc-avr mailing list >Icc-avr@imagecraft.com >http://dragonsgate.net/mailman/listinfo/icc-avr // richard // http://rfman.wordpress.com // http://www.imagecraft.com/pub/Portfolio09/ From Albert.vanVeen at pertronic.co.nz Thu Oct 22 14:10:07 2009 From: Albert.vanVeen at pertronic.co.nz (Albert vanVeen) Date: Thu Oct 22 15:22:01 2009 Subject: [Icc-avr] Re: The future is now, next-gen IDE In-Reply-To: <200910222159.n9MLxTfM018205@mail.imagecraft.com> References: <118489.19598.qm@web56402.mail.re3.yahoo.com><5F8515C5ED67B6439B4F93D7B5E08A36063FDF@sbs.pertronic.local><200910212110.n9LLAWBf003128@mail.imagecraft.com><5F8515C5ED67B6439B4F93D7B5E08A36063FE0@sbs.pertronic.local><4AE0BFF3.10104@gmail.com><5F8515C5ED67B6439B4F93D7B5E08A36063FE4@sbs.pertronic.local> <200910222159.n9MLxTfM018205@mail.imagecraft.com> Message-ID: <5F8515C5ED67B6439B4F93D7B5E08A36063FE5@sbs.pertronic.local> Yes, that could be an interesting detail: V7.18B So that explains it then. Albert. -----Original Message----- From: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] On Behalf Of Richard Man Sent: Friday, October 23, 2009 09:47 AM To: Discussion list for ICCAVR and ICCtiny Users. You do NOT need tosubscribe to icc-announce if you are a member of this. Subject: RE: RE: [Icc-avr] Re: The future is now, next-gen IDE Albert, what version of ICC are you running? Help->About (on normal ICC IDE) tells. I forgot to mention that this requires 7.22 or later, as the linker needs to accept the -nb: switch. Sorry. At 01:39 PM 10/22/2009, you wrote: >Content-class: urn:content-classes:message >Content-Type: multipart/alternative; > boundary="----_=_NextPart_001_01CA5357.BEC57304" > >Here it is: > >-------------- Clean: Release in CB_LED --------------- > >Cleaned "CB_LED - Release" > >-------------- Build: Release in CB_LED --------------- > >iccavr.exe -c -D__ICC_VERSION=7.22B -D__BUILD=6 -DATMega32 -l -g >-Wa-g -MLongJump -MHasMul -MEnhanced led.c -o obj\Release\led.o >iccavr.exe -o C:\iccv7avr\examples.avr\LED\CB_LED\CB_LED >obj\Release\led.o -g -nb:2 -e:0x8000 -ucrtatmega.o >-bfunc_lit:0x54.0x8000 -dram_end:0x85f -bdata:0x60.0x85f >-dhwstk_size:16 -beeprom:0.1024 -fihx_coff -S0 -lcatmega >Usage: [options] file [file ...] [-l] > @ Obtain options from file > -btext:expression > -bdata:expression > -b:expression > -d global symbol = expression > -F: (AVR|M8C) fill unused memory with > -f: -fmots19 | -fintelhex | -fcoff | -fihx_coff > -L library search path > -l Search library archive lib.a > -m Generate map file as .mp > -o Name output file > -R do not link in startup or library file > -Sx Atmel Studio COFF version > S0: Studio 3.x; S1: Stduio 4.0 - 4.05; S2: Studio 4.06+ > -xcall Generate 22 bits extended call opcode >Process terminated with status 1 (0 minutes, 0 seconds) >0 errors, 0 warnings > > > >---------- >From: icc-avr-bounces@imagecraft.com >[mailto:icc-avr-bounces@imagecraft.com] On Behalf Of Pecan >Sent: Friday, October 23, 2009 09:26 AM >To: Discussion list for ICCAVR and ICCtiny Users. You do NOT need >tosubscribe to icc-announce if you are a member of this. >Subject: Re: RE: [Icc-avr] Re: The future is now, next-gen IDE > >Could show us the full compile log by doing the following.: >1) Make sure that full logging is enables by: > main menu->Settings->CompilerAndDebugger->OtherSettings (far > right tab). > Set Compiler Logging: to Full Command Line. >2) ReBuild your project. >3) Right click on the "Build Log" tab and choose "Copy Contents to Clipboard". > then paste that to a message here. > >regards, >pecan > > >Albert vanVeen wrote: >>I have the following files: >> >> Directory of c:\iccv7avr\examples.avr\LED\CB_LED\obj\Release >> >>21/10/2009 10:40 AM . >>21/10/2009 10:40 AM .. >>21/10/2009 10:40 AM 7,404 led.lis >>21/10/2009 10:40 AM 2,741 led.o >> 2 File(s) 10,145 bytes >> Directory of c:\iccv7avr\examples.avr\LED\CB_LED\bin\Release >> >>21/10/2009 10:40 AM . >>21/10/2009 10:40 AM .. >>21/10/2009 10:40 AM 0 CB_LED.cof >>21/10/2009 10:40 AM 0 CB_LED.hex >> 2 File(s) 0 bytes >> >> >>---------- >>From: >>icc-avr-bounces@imagecraft.co >>m [mailto:icc-avr-bounces@imagecraft.com] On Behalf Of Richard Man >>Sent: Thursday, October 22, 2009 08:58 AM >>To: icc-avr@imagecraft.com >>Subject: RE: [Icc-avr] Re: The future is now, next-gen IDE >> >>Yes, the list is much better for discussions. Have you looked at >>the follow-on comments on the blog though? You will need to look in >>the "Release" directory. Let me know if they are not there. >> >> >>>It may be better to discuss here than in the wordpress columns. >>>After following all directions and hints from that website and >>>this forum, I still get the project compiled with no errors, >>>resulting o and lis files (with correct contents), but empty cof >>>and hex files. Obviously it didn't link, but why not? That's part >>>of build, isn't it? >>> >>>Albert. >>> >> >>// richard < http://www.imagecraft.com> >>// http://rfman.wordpress.com >>// http://www.imagecraft.com/pub/Portfolio09/ > >_______________________________________________ >Icc-avr mailing list >Icc-avr@imagecraft.com >http://dragonsgate.net/mailman/listinfo/icc-avr // richard // http://rfman.wordpress.com // http://www.imagecraft.com/pub/Portfolio09/ _______________________________________________ Icc-avr mailing list Icc-avr@imagecraft.com http://dragonsgate.net/mailman/listinfo/icc-avr From richard-lists at imagecraft.com Thu Oct 22 14:24:02 2009 From: richard-lists at imagecraft.com (Richard Man) Date: Thu Oct 22 15:36:23 2009 Subject: [Icc-avr] Re: The future is now, next-gen IDE In-Reply-To: <5F8515C5ED67B6439B4F93D7B5E08A36063FE5@sbs.pertronic.local > References: <118489.19598.qm@web56402.mail.re3.yahoo.com> <5F8515C5ED67B6439B4F93D7B5E08A36063FDF@sbs.pertronic.local> <200910212110.n9LLAWBf003128@mail.imagecraft.com> <5F8515C5ED67B6439B4F93D7B5E08A36063FE0@sbs.pertronic.local> <4AE0BFF3.10104@gmail.com> <5F8515C5ED67B6439B4F93D7B5E08A36063FE4@sbs.pertronic.local> <200910222159.n9MLxTfM018205@mail.imagecraft.com> <5F8515C5ED67B6439B4F93D7B5E08A36063FE5@sbs.pertronic.local> Message-ID: <200910222236.n9MMaLng018760@mail.imagecraft.com> Yes, sorry. Lane, iccavr should have reported an error code, this should get propagate back to C::B. I will email you separately later for a list of changes... Thanks. At 02:10 PM 10/22/2009, Albert vanVeen wrote: >Yes, that could be an interesting detail: > >V7.18B > >So that explains it then. > >Albert. > // richard // http://rfman.wordpress.com // http://www.imagecraft.com/pub/Portfolio09/ From rick.drolet at gmail.com Mon Oct 26 12:19:32 2009 From: rick.drolet at gmail.com (Rick Drolet) Date: Mon Oct 26 13:31:28 2009 Subject: [Icc-avr] port from winavr Message-ID: Hi, I have a WinAVR project that I am trying to port into ImageCraft ICCAVR (V16) but I can't seem to convert a simple macro for a PRINTLN. There are multiple variations of this macro for different arguments, but once I get this one solved this should be a simple task. My wish is to support both compilers as a test project since I need to maintain the original project source. The following code is not really intended to run - just to make correctly. There are 3 variations of PRINTLN - none work. Can someone please help to fix this macro? // ICC test for myprintf macros // GccToIcc.c // 10262009 see also unused.txt #include #include // local Defines #define printf_P cprintf #define prog_char const char /* cprintf has warning as elided */ #define PRINTLN2(x,arg1,arg2) ( \ { \ static prog_char str[] = x"\r\n"; \ printf_P(str,arg1,arg2); \ } \ ) #if 0 #define PRINTLN(x) ( \ { \ cprintf((__flash char *)x)); \ printf_P(PSTR(x)); \ } \ ) #endif #if 1 #define PRINTLN(x) ( \ { \ prog_char str[] = (__flash char *)x"\r\n"; \ printf_P(str); \ } \ ) #endif #if 0 #define PRINTLN(x) ( \ { \ (__flash char *) str[] = x"\r\n"; \ printf_P(str); \ } \ ) #endif int putchar(char c){} // dummy for build void main(void) { char tblk; int size = 22; char * addr = &tblk; // 10262009 requires (__flash char *) // cprintf("\r\nPinging %s with %d bytes of data :\r\n"),addr,size; * // 10262009 warning here as elided * cprintf((__flash char *)"\r\nPinging %s with %d bytes of data :\r\n"),addr,size; * PRINTLN("\r\nPinging %s with %d bytes of data :\r\n"); *} Errors: !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(52):[warning] missing return value !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(66):[warning] expression with no effect elided !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(66):[warning] expression with no effect elided !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): illegal expression !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): syntax error; found `const' expecting `)' !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): skipping `const' `char' !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68):[warning] expression with no effect elided !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): syntax error; found `str' expecting `;' !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): undeclared identifier `str' !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): illegal expression !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): operands of = have illegal types `int' and `pointer to __flash char' !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): lvalue required !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): syntax error; found `;' expecting `]' !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68):[warning] expression with no effect elided !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): type error in argument 1 to `cprintf'; found `int' expected `pointer to __flash char' !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): unrecognized declaration !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68):[warning] empty declaration !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(69): unrecognized declaration C:\iccv7avr_V716\bin\imakew.exe: Error code 1 Done: there are error(s). Exit code: 1. Mon Oct 26 12:42:43 2009 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20091026/a524da7f/attachment.html From tim at sabretechnology.co.uk Tue Oct 27 01:17:12 2009 From: tim at sabretechnology.co.uk (Tim Mitchell) Date: Tue Oct 27 02:29:16 2009 Subject: [Icc-avr] port from winavr Message-ID: <04671BB8D269034BBC4BB6BA894867261CBCCF@sserver.SabreTechnology.local> ----Original Message---- From: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] On Behalf Of Rick Drolet Sent: 26 October 2009 20:20 To: Imagecraft Forum Subject: [Icc-avr] port from winavr > Hi, > > I have a WinAVR project that I am trying to port into > ImageCraft ICCAVR (V16) but I can't seem to convert a > simple macro for a PRINTLN. There are multiple variations > of this macro for different arguments, but once I get > this one solved this should be a simple task. > > My wish is to support both compilers as a test project > since I need to maintain the original project source. > > The following code is not really intended to run - just > to make correctly. > There are 3 variations of PRINTLN - none work. > > Can someone please help to fix this macro? At least one of the problems you are having is because of the split code/data memory map of the AVR. I'm not sure how WinAVR handles this but obviously not the same as ICCAVR. ICCAVR assumes that all strings are copied from flash to ram on startup unless you tick the "Strings in Flash" option in the project settings. So I am not sure what effect casting the format strings using (__flash char *) would have, but it probably is not going to work - if you have plenty of ram you can just leave it and everything will be in ram as C would normally expect, or if you tick the option you need to use a special version of the printf functions with a "c" (for const) in front which will take the format string from flash - eg cprintf instead of printf or csprintf instead of sprintf etc. -- Tim Mitchell From johan at edab.nu Tue Oct 27 03:12:31 2009 From: johan at edab.nu (=?ISO-8859-1?Q?Johan_Wallstr=F6m?=) Date: Tue Oct 27 04:24:24 2009 Subject: [Icc-avr] port from winavr In-Reply-To: References: Message-ID: <4AE6D59F.7010604@edab.nu> Your printf should be cprintf((__flash char *)"\r\nPinging %s with %d bytes of data :\r\n",addr,size); instead of cprintf((__flash char *)"\r\nPinging %s with %d bytes of data :\r\n"),addr,size; ? Rick Drolet skrev: > > Hi, > > I have a WinAVR project that I am trying to port into ImageCraft > ICCAVR (V16) but I can't seem to convert a simple macro for a PRINTLN. > There are multiple variations of this macro for different arguments, > but once I get this one solved this should be a simple task. > > My wish is to support both compilers as a test project since I need to > maintain the original project source. > > The following code is not really intended to run - just to make correctly. > There are 3 variations of PRINTLN - none work. > > Can someone please help to fix this macro? > > > > > // ICC test for myprintf macros > // GccToIcc.c > // 10262009 see also unused.txt > > #include > #include > > // local Defines > #define printf_P cprintf > #define prog_char const char > > /* > cprintf has warning as elided > > > > */ > #define PRINTLN2(x,arg1,arg2) ( \ > { \ > static prog_char str[] = x"\r\n"; \ > printf_P(str,arg1,arg2); \ > } \ > ) > > #if 0 > #define PRINTLN(x) ( \ > { \ > cprintf((__flash char *)x)); \ > printf_P(PSTR(x)); \ > } \ > ) > #endif > > #if 1 > #define PRINTLN(x) ( \ > { \ > prog_char str[] = (__flash char *)x"\r\n"; \ > printf_P(str); \ > } \ > ) > #endif > > #if 0 > #define PRINTLN(x) ( \ > { \ > (__flash char *) str[] = x"\r\n"; \ > printf_P(str); \ > } \ > ) > #endif > > int putchar(char c){} // dummy for build > > > > void main(void) > { > char tblk; > int size = 22; > char * addr = &tblk; > > // 10262009 requires (__flash char *) > // cprintf("\r\nPinging %s with %d bytes of data :\r\n"),addr,size; > > * // 10262009 warning here as elided > * cprintf((__flash char *)"\r\nPinging %s with %d bytes of data > :\r\n"),addr,size; > > * PRINTLN("\r\nPinging %s with %d bytes of data :\r\n"); > *} > > Errors: > > !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(52):[warning] > missing return value > !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(66):[warning] > expression with no effect elided > !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(66):[warning] > expression with no effect elided > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): illegal > expression > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): syntax > error; found `const' expecting `)' > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): skipping > `const' `char' > !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68):[warning] > expression with no effect elided > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): syntax > error; found `str' expecting `;' > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): > undeclared identifier `str' > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): illegal > expression > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): operands > of = have illegal types `int' and `pointer to __flash char' > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): lvalue > required > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): syntax > error; found `;' expecting `]' > !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68):[warning] > expression with no effect elided > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): type > error in argument 1 to `cprintf'; found `int' expected `pointer to > __flash char' > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): > unrecognized declaration > !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68):[warning] > empty declaration > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(69): > unrecognized declaration > C:\iccv7avr_V716\bin\imakew.exe: Error code 1 > Done: there are error(s). Exit code: 1. Mon Oct 26 12:42:43 2009 > > ------------------------------------------------------------------------ > > _______________________________________________ > Icc-avr mailing list > Icc-avr@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-avr > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.423 / Virus Database: 270.14.33/2461 - Release Date: 10/26/09 20:22:00 > > From rick.drolet at gmail.com Tue Oct 27 09:16:57 2009 From: rick.drolet at gmail.com (Rick Drolet) Date: Tue Oct 27 10:28:54 2009 Subject: [Icc-avr] port from winavr In-Reply-To: <4AE6D59F.7010604@edab.nu> References: <4AE6D59F.7010604@edab.nu> Message-ID: Thanks to all. Johan: Yes, this was wrong. When I fixed this the elided messages stopped. Thanks This is a fragment of a winavr program that supports the Wiznet ethernet device and an LCD display for program space messages. There are many source files that use this macro or a variation of it and would be very difficult to change all references. Seems to me that I should be able to influence the 'myprintf.h' macro file to send the program content strings. And yes, the 'Strings in flash' is ticked. In this project, I had added the compiler selection as: #include #if defined(__GNUC__) // GNU Compiler #include #endif #if defined(__IMAGECRAFT__) // ICC C Compiler #warning Imagecraft compile #include "../util/gcc2icc.h" // icc #endif In winavr, *pgmspace.h* provides the access to the memory areas, in this case to program. For Imagecraft, my file gcc2icc.h needs to provide the PRINTLNxx macro support. I was hoping that someone in this forum had experience with both compilers, or could suggest a different solution or casting format that can be used to support the source PRINTLNxx as written. My downfall has always been casting. 2009/10/27 Johan Wallstr?m > Your printf should be > cprintf((__flash char *)"\r\nPinging %s with %d bytes of data > :\r\n",addr,size); > instead of > > cprintf((__flash char *)"\r\nPinging %s with %d bytes of data > :\r\n"),addr,size; > ? > > Rick Drolet skrev: > >> >> Hi, >> >> I have a WinAVR project that I am trying to port into ImageCraft ICCAVR >> (V16) but I can't seem to convert a simple macro for a PRINTLN. There are >> multiple variations of this macro for different arguments, but once I get >> this one solved this should be a simple task. >> >> My wish is to support both compilers as a test project since I need to >> maintain the original project source. >> >> The following code is not really intended to run - just to make correctly. >> There are 3 variations of PRINTLN - none work. >> >> Can someone please help to fix this macro? >> >> >> >> // ICC test for myprintf macros >> // GccToIcc.c >> // 10262009 see also unused.txt >> >> #include >> #include >> >> // local Defines >> #define printf_P cprintf >> #define prog_char const char >> >> /* >> cprintf has warning as elided >> */ >> #define PRINTLN2(x,arg1,arg2) ( \ >> { \ >> static prog_char str[] = x"\r\n"; \ >> printf_P(str,arg1,arg2); \ >> } \ >> ) >> >> #if 0 >> #define PRINTLN(x) ( \ >> { \ >> cprintf((__flash char *)x)); \ >> printf_P(PSTR(x)); \ >> } \ >> ) >> #endif >> >> #if 1 >> #define PRINTLN(x) ( \ >> { \ >> prog_char str[] = (__flash char *)x"\r\n"; \ >> printf_P(str); \ >> } \ >> ) >> #endif >> #if 0 >> #define PRINTLN(x) ( \ >> { \ >> (__flash char *) str[] = x"\r\n"; \ >> printf_P(str); \ >> } \ >> ) >> #endif >> >> int putchar(char c){} // dummy for build >> >> >> void main(void) >> { >> char tblk; >> int size = 22; char * addr = &tblk; >> // 10262009 requires (__flash char *) >> // cprintf("\r\nPinging %s with %d bytes of data :\r\n"),addr,size; >> >> * // 10262009 warning here as elided >> * cprintf((__flash char *)"\r\nPinging %s with %d bytes of data >> :\r\n"),addr,size; >> >> * PRINTLN("\r\nPinging %s with %d bytes of data :\r\n"); >> *} >> >> Errors: >> >> !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(52):[warning] >> missing return value >> !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(66):[warning] >> expression with no effect elided >> !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(66):[warning] >> expression with no effect elided >> !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): illegal >> expression >> !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): syntax error; >> found `const' expecting `)' >> !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): skipping >> `const' `char' >> !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68):[warning] >> expression with no effect elided >> !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): syntax error; >> found `str' expecting `;' >> !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): undeclared >> identifier `str' >> !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): illegal >> expression >> !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): operands of = >> have illegal types `int' and `pointer to __flash char' >> !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): lvalue >> required >> !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): syntax error; >> found `;' expecting `]' >> !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68):[warning] >> expression with no effect elided >> !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): type error in >> argument 1 to `cprintf'; found `int' expected `pointer to __flash char' >> !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): unrecognized >> declaration >> !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68):[warning] >> empty declaration >> !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(69): unrecognized >> declaration >> C:\iccv7avr_V716\bin\imakew.exe: Error code 1 >> Done: there are error(s). Exit code: 1. Mon Oct 26 12:42:43 2009 >> >> ------------------------------------------------------------------------ >> >> >> _______________________________________________ >> Icc-avr mailing list >> Icc-avr@imagecraft.com >> http://dragonsgate.net/mailman/listinfo/icc-avr >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com Version: 8.5.423 / Virus Database: >> 270.14.33/2461 - Release Date: 10/26/09 20:22:00 >> >> >> > _______________________________________________ > Icc-avr mailing list > Icc-avr@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-avr > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20091027/a08eecc9/attachment-0001.html From richard-lists at imagecraft.com Tue Oct 27 11:50:59 2009 From: richard-lists at imagecraft.com (Richard Man) Date: Tue Oct 27 13:03:03 2009 Subject: [Icc-avr] port from winavr In-Reply-To: References: Message-ID: <200910272103.n9RL32I5070042@mail.imagecraft.com> An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20091027/c91fcea1/attachment.html From rick.drolet at gmail.com Tue Oct 27 14:09:42 2009 From: rick.drolet at gmail.com (Rick Drolet) Date: Tue Oct 27 15:21:59 2009 Subject: [Icc-avr] port from winavr In-Reply-To: <200910272103.n9RL32I5070042@mail.imagecraft.com> References: <200910272103.n9RL32I5070042@mail.imagecraft.com> Message-ID: Richard - Thank You Such a simple solution! This worked on the sample provided. Now I am trying this on the entire project so that I can see the results to the display. On Tue, Oct 27, 2009 at 12:50 PM, Richard Man wrote: > If "Strings in FLash" is checked, then just > > #define PRINTLN(x) cprintf(x "\r\n") > #define PRINTLN2(x, x1, x2) cprintf(x "\r\n", x1, x2) > > etc. would work. Let's just say the coding practice is not the best. Love > those Open Source engineers... > > > At 12:19 PM 10/26/2009, Rick Drolet wrote: > > Hi, > > I have a WinAVR project that I am trying to port into ImageCraft ICCAVR > (V16) but I can't seem to convert a simple macro for a PRINTLN. There are > multiple variations of this macro for different arguments, but once I get > this one solved this should be a simple task. > > My wish is to support both compilers as a test project since I need to > maintain the original project source. > > The following code is not really intended to run - just to make correctly. > There are 3 variations of PRINTLN - none work. > > Can someone please help to fix this macro? > > > > > // ICC test for myprintf macros > // GccToIcc.c > // 10262009 see also unused.txt > > #include > #include > > // local Defines > #define printf_P cprintf > #define prog_char const char > > /* > cprintf has warning as elided > > > > */ > #define PRINTLN2(x,arg1,arg2) ( \ > { \ > static prog_char str[] = x"\r\n"; \ > printf_P(str,arg1,arg2); \ > } \ > ) > > #if 0 > #define PRINTLN(x) ( \ > { \ > cprintf((__flash char *)x)); \ > printf_P(PSTR(x)); \ > } \ > ) > #endif > > #if 1 > #define PRINTLN(x) ( \ > { \ > prog_char str[] = (__flash char *)x"\r\n"; \ > printf_P(str); \ > } \ > ) > #endif > > #if 0 > #define PRINTLN(x) ( \ > { \ > (__flash char *) str[] = x"\r\n"; \ > printf_P(str); \ > } \ > ) > #endif > > int putchar(char c){} // dummy for build > > > > void main(void) > { > char tblk; > int size = 22; > char * addr = &tblk; > > // 10262009 requires (__flash char *) > // cprintf("\r\nPinging %s with %d bytes of data :\r\n"),addr,size; > > * // 10262009 warning here as elided > * cprintf((__flash char *)"\r\nPinging %s with %d bytes of data > :\r\n"),addr,size; > > * PRINTLN("\r\nPinging %s with %d bytes of data :\r\n"); > *} > Errors: > > !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(52):[warning] > missing return value > !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(66):[warning] > expression with no effect elided > !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(66):[warning] > expression with no effect elided > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): illegal > expression > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): syntax error; > found `const' expecting `)' > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): skipping > `const' `char' > !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68):[warning] > expression with no effect elided > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): syntax error; > found `str' expecting `;' > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): undeclared > identifier `str' > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): illegal > expression > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): operands of = > have illegal types `int' and `pointer to __flash char' > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): lvalue > required > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): syntax error; > found `;' expecting `]' > !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68):[warning] > expression with no effect elided > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): type error in > argument 1 to `cprintf'; found `int' expected `pointer to __flash char' > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68): unrecognized > declaration > !W C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(68):[warning] empty > declaration > !E C:\AtmelProjects\Wiznet_W5100\GccPortTest\GccToIcc.c(69): unrecognized > declaration > C:\iccv7avr_V716\bin\imakew.exe: Error code 1 > Done: there are error(s). Exit code: 1. Mon Oct 26 12:42:43 2009 > _______________________________________________ > Icc-avr mailing list > Icc-avr@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-avr > > // richard < http://www.imagecraft.com> > // http://rfman.wordpress.com > // http://www.imagecraft.com/pub/Portfolio09/ > > _______________________________________________ > Icc-avr mailing list > Icc-avr@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-avr > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20091027/e5869ca3/attachment.html