From jassenbaum at htp-tel.de Thu Sep 4 13:56:52 2008 From: jassenbaum at htp-tel.de (Johannes Assenbaum) Date: Thu Sep 4 14:59:55 2008 Subject: [Icc-avr] io header files update References: Message-ID: <66AvZOtlZVN6xIIHIROT1AsAm0tFqCPiSiWKo85aPUh@akmail> Hi all, there are new io header files and fixes available at http://avr.jassenbaum.de/iccv7avr/index.html Latest changes address xmegas only. Best regards, Johannes From richard at imagecraft.com Thu Sep 4 22:59:48 2008 From: richard at imagecraft.com (Richard Man) Date: Fri Sep 5 00:03:53 2008 Subject: [Icc-avr] ICCAVR 7.19 Beta0 Message-ID: <200809050703.m8573q0K009651@mail.imagecraft.com> http://www.imagecraft.com/pub/iccv7avr_v719_beta0.exe, from the readmeAVR.txt: IDE - Added Project->"Clean Output Directory" - Added entries for more XMega parts - dongle licensing for command line tools was accidentally broken in 7.18 Linker and tools - Fixed a bug where if the output file name contains a dot ., then the output files would truncate the filenames. Library - Improved malloc()/free() code. It now uses best fit, optimal merging to prevent fragmentation. Header Files - new header files to support all known XMegas // richard blog: On-line orders, support, and listservers available on web site. [ For technical support on ImageCraft products, please include all previous replies in your msgs. ] From benra at imt.liu.se Thu Sep 4 23:34:44 2008 From: benra at imt.liu.se (Bengt Ragnemalm) Date: Fri Sep 5 00:37:44 2008 Subject: [Icc-avr] Installer Message-ID: Richard, there is an annoying thing in the installer that has been there from the very beginning. It is it the point of start menu short-cut. You can not add a sub folder to the installation tree as the installer does not accept \. For example ?dev\ImagecraftDevelopment Tools?. /Bengt Bengt Ragnemalm, Forskningsingenj?r Tel 013-22 24 97 Leveransadress: Faktureringsadress: FAX: +46 13 10 19 02 Link?pings Universitet Link?pings Universitet bengt.ragnemalm@imt.liu.se Inst. f?r Medicinsk Teknik Faktura support http://www.imt.liu.se S-581 85 Link?ping SWEDEN 581 83 Link?ping Ref 1700 Bengt Ragnemalm M?rk med v?rt Best?llningsnr Vi kan g?ra mer ?n du kan dr?mma om men f?r det om?jliga beh?ver vi en liten leveranstid. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080905/b8500be9/attachment.html From benra at imt.liu.se Fri Sep 5 00:25:21 2008 From: benra at imt.liu.se (Bengt Ragnemalm) Date: Fri Sep 5 01:28:22 2008 Subject: [Icc-avr] IDE asks for reload file after compile Message-ID: <2451F85B53554385873C823C2CDCDF9F@Shagrat> In some of the latest versions the IDE have started to ask for reload of all changed files after compile. This is of course very annoying. I tried to save before compile but there was no difference. I have the files on a server. /Bengt Bengt Ragnemalm, Forskningsingenj?r Tel 013-22 24 97 Leveransadress: Faktureringsadress: FAX: +46 13 10 19 02 Link?pings Universitet Link?pings Universitet bengt.ragnemalm@imt.liu.se Inst. f?r Medicinsk Teknik Faktura support http://www.imt.liu.se S-581 85 Link?ping SWEDEN 581 83 Link?ping Ref 1700 Bengt Ragnemalm M?rk med v?rt Best?llningsnr Vi kan g?ra mer ?n du kan dr?mma om men f?r det om?jliga beh?ver vi en liten leveranstid. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080905/a7a1e664/attachment-0001.html From richard-lists at imagecraft.com Fri Sep 5 00:38:40 2008 From: richard-lists at imagecraft.com (Richard Man) Date: Fri Sep 5 01:42:10 2008 Subject: [Icc-avr] IDE asks for reload file after compile In-Reply-To: <2451F85B53554385873C823C2CDCDF9F@Shagrat> References: <2451F85B53554385873C823C2CDCDF9F@Shagrat> Message-ID: <200809050842.m858g8ul011450@mail.imagecraft.com> An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080905/cb419123/attachment.html From paul.aa9gg at gmail.com Fri Sep 5 06:00:12 2008 From: paul.aa9gg at gmail.com (Paul Mateer) Date: Fri Sep 5 07:03:24 2008 Subject: [Icc-avr] ICCAVR 7.19 Beta0 In-Reply-To: <200809050703.m8573q0K009651@mail.imagecraft.com> References: <200809050703.m8573q0K009651@mail.imagecraft.com> Message-ID: <20f5efc40809050600q31ae470fpbfda5b9832c570e3@mail.gmail.com> A dot in the filename!?!?! That was ALWAYS a DOS no no where I come from!!! > - Fixed a bug where if the output file name contains a dot ., then > the output files would truncate the filenames. > -- Paul Mateer, AA9GG Elan Engineering Corp. www.elanengr.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080905/da49bd0a/attachment.html From richard-lists at imagecraft.com Fri Sep 5 11:59:15 2008 From: richard-lists at imagecraft.com (Richard Man) Date: Fri Sep 5 13:02:46 2008 Subject: [Icc-avr] ICCAVR 7.19 Beta0 In-Reply-To: <20f5efc40809050600q31ae470fpbfda5b9832c570e3@mail.gmail.co m> References: <200809050703.m8573q0K009651@mail.imagecraft.com> <20f5efc40809050600q31ae470fpbfda5b9832c570e3@mail.gmail.com> Message-ID: <200809052002.m85K2iXR021713@mail.imagecraft.com> An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080905/64ad0d78/attachment.html From jassenbaum at htp-tel.de Fri Sep 5 12:20:11 2008 From: jassenbaum at htp-tel.de (Johannes Assenbaum) Date: Fri Sep 5 13:23:19 2008 Subject: [Icc-avr] ICCAVR 7.19 Beta0 References: <200809050703.m8573q0K009651@mail.imagecraft.com> <20f5efc40809050600q31ae470fpbfda5b9832c570e3@mail.gmail.com> Message-ID: <7EZkHdZ55HRdEqOZWGPCspt7hWOKxnfZw3mwrKPbLWP@akmail> Today's OSs are bit beyond DOS :-) Best regards, Johannes > A dot in the filename!?!?! That was ALWAYS a DOS no no where I come from!!! >> - Fixed a bug where if the output file name contains a dot ., then >> the output files would truncate the filenames. >> > -- > Paul Mateer, AA9GG > Elan Engineering Corp. > www.elanengr.com From Albert.vanVeen at pertronic.co.nz Sun Sep 7 13:27:45 2008 From: Albert.vanVeen at pertronic.co.nz (Albert vanVeen) Date: Sun Sep 7 14:31:00 2008 Subject: [Icc-avr] ICCAVR 7.19 Beta0 In-Reply-To: <7EZkHdZ55HRdEqOZWGPCspt7hWOKxnfZw3mwrKPbLWP@akmail> References: <200809050703.m8573q0K009651@mail.imagecraft.com><20f5efc40809050600q31ae470fpbfda5b9832c570e3@mail.gmail.com> <7EZkHdZ55HRdEqOZWGPCspt7hWOKxnfZw3mwrKPbLWP@akmail> Message-ID: <5F8515C5ED67B6439B4F93D7B5E08A36063E47@sbs.pertronic.local> The main difference between MS-DOS and MS-Windows was that the MS-bugs were easier to work around in DOS. But it still goes against all grains to have dots within filenames. Albert. -----Original Message----- From: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] On Behalf Of Johannes Assenbaum Sent: Saturday, September 06, 2008 07:20 AM To: icc-avr@imagecraft.com Subject: Re: [Icc-avr] ICCAVR 7.19 Beta0 Today's OSs are bit beyond DOS :-) Best regards, Johannes > A dot in the filename!?!?! That was ALWAYS a DOS no no where I come from!!! >> - Fixed a bug where if the output file name contains a dot ., then >> the output files would truncate the filenames. >> > -- > Paul Mateer, AA9GG > Elan Engineering Corp. > www.elanengr.com _______________________________________________ Icc-avr mailing list Icc-avr@imagecraft.com http://dragonsgate.net/mailman/listinfo/icc-avr Scanned by Bizo Email Filter From g.megia at medicionytransporte.com Mon Sep 8 04:07:08 2008 From: g.megia at medicionytransporte.com (=?iso-8859-1?Q?Guillermo_Meg=EDa_Palma?=) Date: Mon Sep 8 05:10:30 2008 Subject: [Icc-avr] 'text' area size error Message-ID: <000001c911a3$0c4f12e0$24ed38a0$@megia@medicionytransporte.com> Hello, When compiling my application, I receive the following error: ?text area size too large (>64K bytes). Please move some code to another file?. I have read in the file "readmeAVR.txt" for the version 7.06 the following: ? Linker - user ADV/PRO, allow a single .o file to have more than 64K bytes of object code? I have tried with versions 7.16, 7.17 and 7.18B and I get the same error for all of them. My license is PRO and the target is ATMega 128. Is there another solution to solve this error apart from moving some code to another file? Best regards, Guillermo Meg?a Palma -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080908/872e4463/attachment.html From benra at imt.liu.se Mon Sep 8 05:22:25 2008 From: benra at imt.liu.se (Bengt Ragnemalm) Date: Mon Sep 8 06:25:40 2008 Subject: SV: [Icc-avr] IDE asks for reload file after compile In-Reply-To: <200809050842.m858g8ul011450@mail.imagecraft.com> References: <2451F85B53554385873C823C2CDCDF9F@Shagrat> <200809050842.m858g8ul011450@mail.imagecraft.com> Message-ID: <7445C9FAB71E4337897E84D1026D1F72@Shagrat> I checked the file creation time on the COF file on the server and it is the same as on my system. Is that enough or must I check the actual server clock? /Bengt _____ Fr?n: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] F?r Richard Man Skickat: den 5 september 2008 09:39 Till: icc-avr@imagecraft.com ?mne: Re: [Icc-avr] IDE asks for reload file after compile Check the file dates on your system vs. your server's clock? Are they off by much? At 12:25 AM 9/5/2008, you wrote: In some of the latest versions the IDE have started to ask for reload of all changed files after compile. This is of course very annoying. I tried to save before compile but there was no difference. I have the files on a server. // richard (This email is for mailing lists. To reach me directly, please use richard at imagecraft.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080908/cc34a01b/attachment.html From BobGardner at aol.com Mon Sep 8 05:44:33 2008 From: BobGardner at aol.com (BobGardner@aol.com) Date: Mon Sep 8 06:47:48 2008 Subject: [Icc-avr] 'text' area size error Message-ID: Have the optimization boxes checked? In a message dated 9/8/2008 7:08:44 A.M. Eastern Daylight Time, g.megia@medicionytransporte.com writes: Hello, When compiling my application, I receive the following error: ?text area size too large (>64K bytes). Please move some code to another file?. I have read in the file "readmeAVR.txt" for the version 7.06 the following: ? Linker - user ADV/PRO, allow a single .o file to have more than 64K bytes of object code? I have tried with versions 7.16, 7.17 and 7.18B and I get the same error for all of them. My license is PRO and the target is ATMega 128. Is there another solution to solve this error apart from moving some code to another file? Best regards, Guillermo Meg?a Palma _______________________________________________ Icc-avr mailing list Icc-avr@imagecraft.com http://dragonsgate.net/mailman/listinfo/icc-avr **************Psssst...Have you heard the news? There's a new fashion blog, plus the latest fall trends and hair styles at StyleList.com. (http://www.stylelist.com/trends?ncid=aolsty00050000000014) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080908/681699b5/attachment.html From richard-lists at imagecraft.com Mon Sep 8 08:00:51 2008 From: richard-lists at imagecraft.com (Richard Man) Date: Mon Sep 8 09:04:39 2008 Subject: [Icc-avr] 'text' area size error In-Reply-To: <000001c911a3$0c4f12e0$24ed38a0$@megia@medicionytransporte. com> References: <000001c911a3$0c4f12e0$24ed38a0$@megia@medicionytransporte.com> Message-ID: <200809081604.m88G4c3p085089@mail.imagecraft.com> An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080908/ddc0c27c/attachment.html From richard-lists at imagecraft.com Fri Sep 12 13:28:10 2008 From: richard-lists at imagecraft.com (Richard Man) Date: Fri Sep 12 14:32:00 2008 Subject: SV: [Icc-avr] IDE asks for reload file after compile In-Reply-To: <7445C9FAB71E4337897E84D1026D1F72@Shagrat> References: <2451F85B53554385873C823C2CDCDF9F@Shagrat> <200809050842.m858g8ul011450@mail.imagecraft.com> <7445C9FAB71E4337897E84D1026D1F72@Shagrat> Message-ID: <200809122131.m8CLVxSN007678@mail.imagecraft.com> It's not the COF file, but the source file that's open. WHen opening a file, the IDE keeps track of the filedate of the file in the internal data structure. Once in a while, it checks the date of the disk file again and see if it is in sync. It just uses the FileDate() function so I am not entirely sure how it calculates the date. You can turn ff the behavior (Tools->Options) if the behavior is funky, but I'm not sure how it can be happening.... May be there is some implications with the file dates if they are on a network.... At 05:22 AM 9/8/2008, Bengt Ragnemalm wrote: >I checked the file creation time on the COF file on the server and >it is the same as on my system. Is that enough or must I check the >actual server clock? > // richard (This email is for mailing lists. To reach me directly, please use richard at imagecraft.com) From richard at imagecraft.com Sat Sep 13 22:09:20 2008 From: richard at imagecraft.com (Richard Man) Date: Sat Sep 13 23:13:15 2008 Subject: [Icc-avr] Now get an AVR ISP dongle for $1 Message-ID: <200809140613.m8E6DDAI033139@mail.imagecraft.com> ... when you purchase an ADV or PRO license. This is the STK200/300 compatible parallel port dongle. We will have the same deal with a USB STK500 compatible dongle once we get the stock in. // richard From benra at imt.liu.se Sun Sep 14 22:41:01 2008 From: benra at imt.liu.se (Bengt Ragnemalm) Date: Sun Sep 14 23:44:01 2008 Subject: SV: SV: [Icc-avr] IDE asks for reload file after compile In-Reply-To: <200809122131.m8CLVxSN007678@mail.imagecraft.com> References: <2451F85B53554385873C823C2CDCDF9F@Shagrat><200809050842.m858g8ul011450@mail.imagecraft.com><7445C9FAB71E4337897E84D1026D1F72@Shagrat> <200809122131.m8CLVxSN007678@mail.imagecraft.com> Message-ID: <745F70E8ECE94C599590F316F0286277@Shagrat> OK, in that case I just turn it off to get rid of it. This is a rather new behaviour and I am pretty sure it started the same time as I upgraded to 7.18B from some 7.17. I have not updated anything else of the software tools like AVR Studio. But I will check with our network guys if something is changed on the server side. /Bengt > -----Ursprungligt meddelande----- > Fr?n: icc-avr-bounces@imagecraft.com [mailto:icc-avr- > bounces@imagecraft.com] F?r Richard Man > Skickat: den 12 september 2008 22:28 > Till: icc-avr@imagecraft.com > ?mne: Re: SV: [Icc-avr] IDE asks for reload file after compile > > It's not the COF file, but the source file that's open. WHen opening > a file, the IDE keeps track of the filedate of the file in the > internal data structure. Once in a while, it checks the date of the > disk file again and see if it is in sync. It just uses the FileDate() > function so I am not entirely sure how it calculates the date. You > can turn ff the behavior (Tools->Options) if the behavior is funky, > but I'm not sure how it can be happening.... May be there is some > implications with the file dates if they are on a network.... > > > At 05:22 AM 9/8/2008, Bengt Ragnemalm wrote: > >I checked the file creation time on the COF file on the server and > >it is the same as on my system. Is that enough or must I check the > >actual server clock? > > > > // richard (This email is for mailing lists. To reach me directly, > please use richard at imagecraft.com) > > _______________________________________________ > Icc-avr mailing list > Icc-avr@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-avr From sl at ecpower.dk Sun Sep 14 23:26:31 2008 From: sl at ecpower.dk (Steven Lose) Date: Mon Sep 15 00:29:53 2008 Subject: SV: SV: [Icc-avr] IDE asks for reload file after compile In-Reply-To: <745F70E8ECE94C599590F316F0286277@Shagrat> Message-ID: <072D96786BFC014AAEBA9EB07A8070EA4E017D@seattle.ecpower.dk> Hi Bengt. If you believe the change came with 7.18B, try and downgrade to 7.17 to see if the behaviour is ok again. Must also be nice information to Richard. Med venlig hilsen / Best regards / mit freundlichen Gr??en EC POWER A/S Steven Lose Software Ingeni?r Tlf.: +45 87434100 Direkte tlf. +45 58286608 Email: sl@ecpower.dk www.ecpower.dk -----Oprindelig meddelelse----- Fra: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] P? vegne af Bengt Ragnemalm Sendt: 15. september 2008 07:41 Til: 'Discussion list for ICCAVR and ICCtiny Users. You do NOT needtosubscribeto icc-announce if you are a member of this.' Emne: SV: SV: [Icc-avr] IDE asks for reload file after compile OK, in that case I just turn it off to get rid of it. This is a rather new behaviour and I am pretty sure it started the same time as I upgraded to 7.18B from some 7.17. I have not updated anything else of the software tools like AVR Studio. But I will check with our network guys if something is changed on the server side. /Bengt > -----Ursprungligt meddelande----- > Fr?n: icc-avr-bounces@imagecraft.com [mailto:icc-avr- > bounces@imagecraft.com] F?r Richard Man > Skickat: den 12 september 2008 22:28 > Till: icc-avr@imagecraft.com > ?mne: Re: SV: [Icc-avr] IDE asks for reload file after compile > > It's not the COF file, but the source file that's open. WHen opening > a file, the IDE keeps track of the filedate of the file in the > internal data structure. Once in a while, it checks the date of the > disk file again and see if it is in sync. It just uses the FileDate() > function so I am not entirely sure how it calculates the date. You > can turn ff the behavior (Tools->Options) if the behavior is funky, > but I'm not sure how it can be happening.... May be there is some > implications with the file dates if they are on a network.... > > > At 05:22 AM 9/8/2008, Bengt Ragnemalm wrote: > >I checked the file creation time on the COF file on the server and > >it is the same as on my system. Is that enough or must I check the > >actual server clock? > > > > // richard (This email is for mailing lists. To reach me directly, > please use richard at imagecraft.com) > > _______________________________________________ > 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 sl at ecpower.dk Tue Sep 16 00:59:39 2008 From: sl at ecpower.dk (Steven Lose) Date: Tue Sep 16 02:03:01 2008 Subject: [Icc-avr] PC-lint Message-ID: <072D96786BFC014AAEBA9EB07A8070EA4E025B@seattle.ecpower.dk> Hi. I have PC-lint 8.00x but no clue how to make it work with ICC. Have anyone tried it before? Med venlig hilsen / Best regards / mit freundlichen Gr??en EC POWER A/S Steven Lose Software Ingeni?r Tlf.: +45 87434100 Direkte tlf. +45 58286608 Email: sl@ecpower.dk www.ecpower.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080916/5270f1e6/attachment.html From dean.bell at flightec.com Tue Sep 16 02:06:29 2008 From: dean.bell at flightec.com (Dean Bell) Date: Tue Sep 16 03:09:58 2008 Subject: [Icc-avr] PC-lint In-Reply-To: <072D96786BFC014AAEBA9EB07A8070EA4E025B@seattle.ecpower.dk> Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: Malloc.zip Type: application/octet-stream Size: 5756 bytes Desc: not available Url : http://dragonsgate.net/pipermail/icc-avr/attachments/20080916/57319778/Malloc-0001.obj From sl at ecpower.dk Tue Sep 16 02:58:46 2008 From: sl at ecpower.dk (Steven Lose) Date: Tue Sep 16 04:02:15 2008 Subject: SV: [Icc-avr] PC-lint In-Reply-To: Message-ID: <072D96786BFC014AAEBA9EB07A8070EA4E0295@seattle.ecpower.dk> Thanks. I'll take a look at it and see if I can understand how to use it. Med venlig hilsen / Best regards / mit freundlichen Gr??en EC POWER A/S Steven Lose Software Ingeni?r Tlf.: +45 87434100 Direkte tlf. +45 58286608 Email: sl@ecpower.dk www.ecpower.dk ________________________________ Fra: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] P? vegne af Dean Bell Sendt: 16. september 2008 11:06 Til: Discussion list for ICCAVR and ICCtiny Users. You do NOT needto subscribe to icc-announce if you are a member of this. Emne: RE: [Icc-avr] PC-lint Hi Steve Attached is a small test project with the xxx.lnt file and the TOOLS->PC-Lint menu item set in the .prj file. I have given it a quick test and here is the result as seen in the message window:- C:\iccv712\Lint\lint-nt.exe MALLOCTEST-D1 PC-lint for C/C++ (NT) Vers. 8.00t, Copyright Gimpel Software 1985-2005 --- Module: MallocTest-D1.C (C) _ "" ); !W MallocTest-D1.C(97): (626) argument no. 2 inconsistent with format !W MallocTest-D1.C(97): (626) argument no. 3 inconsistent with format !W MallocTest-D1.C(97): (534) Ignoring return value of function 'printf(const char *, ...)' (compare with line 21, file C:\ICCV712\include\stdio.h) !W C:\ICCV712\include\stdio.h(21): (830) Location cited in prior message _ _NewHeap( &_bss_end+1, (void*)0x3fff ); // xxxx bytes heap !W MallocTest-D1.C(111): (826) Suspicious pointer-to-pointer conversion (area too small) _ (void)printf( "Start malloc test,%04X\n", *__FreeList ); !W MallocTest-D1.C(113): (437) Passing struct 'cell_hdr' to ellipsis !W MallocTest-D1.C(113): (559) Size of argument no. 2 inconsistent with format _ mem = malloc( size ); !W MallocTest-D1.C(119): (732) Loss of sign (arg. no. 1) (int to unsigned int) _ (void)printf( "Ok,%04X,%ld,%u\n", *__FreeList, cnt, size ); !W MallocTest-D1.C(122): (437) Passing struct 'cell_hdr' to ellipsis !W MallocTest-D1.C(122): (559) Size of argument no. 2 inconsistent with format _ while( mem ); !W MallocTest-D1.C(127): (449) Pointer variable 'mem' previously deallocated [Reference: file MallocTest-D1.C: line 125] !W MallocTest-D1.C(125): (831) Reference cited in prior message _ (void)printf( "Malloc failed,%04X,%ld,%u\n", *__FreeList, cnt, size ); !W MallocTest-D1.C(128): (437) Passing struct 'cell_hdr' to ellipsis !W MallocTest-D1.C(128): (559) Size of argument no. 2 inconsistent with format _ ( !W MallocTest-D1.C(140): (21) Expected { !W MallocTest-D1.C(140): (10) Expecting ';' _ ); !W MallocTest-D1.C(147): (19) Useless Declaration --- Wrap-up for Module: MallocTest-D1.C !W MALLOCTEST-D1.lnt(48): (752) local declarator '_start' (line 11, file MallocTest-D1.C) not referenced !W MallocTest-D1.C(11): (830) Location cited in prior message !W MALLOCTEST-D1.lnt(48): (754) local structure member 'cell_hdr::size' (line 17, file MallocTest-D1.C) not referenced !W MallocTest-D1.C(17): (830) Location cited in prior message --- Global Wrap-up !W (): (526) Symbol '_textmode' (line 10, file MallocTest-D1.C) not defined !W MallocTest-D1.C(10): (830) Location cited in prior message !W (): (714) Symbol 'Vectors' (line 139, file MallocTest-D1.C) not referenced !W MallocTest-D1.C(139): (830) Location cited in prior message !W (): (526) Symbol '__FreeList' (line 23, file MallocTest-D1.C) not defined !W MallocTest-D1.C(23): (830) Location cited in prior message !W (): (526) Symbol '_bss_end' (line 9, file MallocTest-D1.C) not defined !W MallocTest-D1.C(9): (830) Location cited in prior message Done: there are error(s). Exit code: 29. Tue Sep 16 21:02:27 2008 Ok it is a ICCV712 project but the story is the same. I hope this helps Dean. -----Original Message----- From: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com]On Behalf Of Steven Lose Sent: Tuesday, 16 September 2008 8:00 p.m. To: Discussion list for ICCAVR and ICCtiny Users. You do NOT need tosubscribeto icc-announce if you are a member of this. Subject: [Icc-avr] PC-lint Hi. I have PC-lint 8.00x but no clue how to make it work with ICC. Have anyone tried it before? Med venlig hilsen / Best regards / mit freundlichen Gr??en EC POWER A/S Steven Lose Software Ingeni?r Tlf.: +45 87434100 Direkte tlf. +45 58286608 Email: sl@ecpower.dk www.ecpower.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080916/1aacbae8/attachment.html From richard at imagecraft.com Tue Sep 23 02:46:19 2008 From: richard at imagecraft.com (Richard Man) Date: Tue Sep 23 03:51:09 2008 Subject: [Icc-avr] eMOS - embedded message passing OS Message-ID: <200809231051.m8NAp7BP056519@mail.imagecraft.com> We will be releasing eMOS some times in Nov. For some info, please visit our blog at http://imagecraft.wordpress.com. If you have any suggestions on pricing or APIs etc. please contact me off list. Thanks. // richard blog: On-line orders, support, and listservers available on web site. [ For technical support on ImageCraft products, please include all previous replies in your msgs. ] From snewbold at unlnotes.unl.edu Tue Sep 23 02:52:02 2008 From: snewbold at unlnotes.unl.edu (Stefan Newbold) Date: Tue Sep 23 03:55:48 2008 Subject: [Icc-avr] Stefan Newbold is out of the office. Message-ID: I will be out of the office starting 09/22/2008 and will not return until 09/26/2008. I will respond to your message when I return. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080923/d368c883/attachment.html From roy.colam at startrack.com.au Tue Sep 23 19:22:58 2008 From: roy.colam at startrack.com.au (Roy Colam) Date: Tue Sep 23 20:26:25 2008 Subject: [Icc-avr] eMOS - embedded message passing OS In-Reply-To: <200809231051.m8NAp7BP056519@mail.imagecraft.com> References: <200809231051.m8NAp7BP056519@mail.imagecraft.com> Message-ID: <48DA1517.BE7F.0055.0@startrack.com.au> >>> Richard Man 23-Sep-08 >>> We will be releasing eMOS some times in Nov. For some info, please visit our blog at http://imagecraft.wordpress.com. ( http://imagecraft.wordpress.com./ ) If you have any suggestions on pricing or APIs etc. please contact me off list. Thanks. // richard blog: On-line orders, support, and listservers available on web site. [ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080924/0840f0f3/attachment.html From benra at imt.liu.se Wed Sep 24 22:58:30 2008 From: benra at imt.liu.se (Bengt Ragnemalm) Date: Thu Sep 25 00:01:59 2008 Subject: SV: SV: [Icc-avr] IDE asks for reload file after compile In-Reply-To: <072D96786BFC014AAEBA9EB07A8070EA4E017D@seattle.ecpower.dk> References: <745F70E8ECE94C599590F316F0286277@Shagrat> <072D96786BFC014AAEBA9EB07A8070EA4E017D@seattle.ecpower.dk> Message-ID: Richard, can you direct me to some old versions, 7.17 or 7.16 so I can test this? /Bengt > -----Ursprungligt meddelande----- > Fr?n: Steven Lose [mailto:sl@ecpower.dk] > Skickat: den 15 september 2008 08:27 > Till: benra@imt.liu.se; Discussion list for ICCAVR and ICCtiny Users. You > do NOT need tosubscribeto icc-announce if you are a member of this. > ?mne: SV: SV: [Icc-avr] IDE asks for reload file after compile > > Hi Bengt. > > If you believe the change came with 7.18B, try and downgrade to 7.17 to > see if the behaviour is ok again. > Must also be nice information to Richard. > > > Med venlig hilsen / Best regards / mit freundlichen Gr??en > > EC POWER A/S > > Steven Lose > > Software Ingeni?r > > Tlf.: +45 87434100 > > Direkte tlf. +45 58286608 > > Email: sl@ecpower.dk > > www.ecpower.dk > > -----Oprindelig meddelelse----- > Fra: icc-avr-bounces@imagecraft.com [mailto:icc-avr- > bounces@imagecraft.com] P? vegne af Bengt Ragnemalm > Sendt: 15. september 2008 07:41 > Til: 'Discussion list for ICCAVR and ICCtiny Users. You do NOT > needtosubscribeto icc-announce if you are a member of this.' > Emne: SV: SV: [Icc-avr] IDE asks for reload file after compile > > OK, in that case I just turn it off to get rid of it. This is a rather new > behaviour and I am pretty sure it started the same time as I upgraded to > 7.18B from some 7.17. I have not updated anything else of the software > tools > like AVR Studio. But I will check with our network guys if something is > changed on the server side. > > /Bengt > > > -----Ursprungligt meddelande----- > > Fr?n: icc-avr-bounces@imagecraft.com [mailto:icc-avr- > > bounces@imagecraft.com] F?r Richard Man > > Skickat: den 12 september 2008 22:28 > > Till: icc-avr@imagecraft.com > > ?mne: Re: SV: [Icc-avr] IDE asks for reload file after compile > > > > It's not the COF file, but the source file that's open. WHen opening > > a file, the IDE keeps track of the filedate of the file in the > > internal data structure. Once in a while, it checks the date of the > > disk file again and see if it is in sync. It just uses the FileDate() > > function so I am not entirely sure how it calculates the date. You > > can turn ff the behavior (Tools->Options) if the behavior is funky, > > but I'm not sure how it can be happening.... May be there is some > > implications with the file dates if they are on a network.... > > > > > > At 05:22 AM 9/8/2008, Bengt Ragnemalm wrote: > > >I checked the file creation time on the COF file on the server and > > >it is the same as on my system. Is that enough or must I check the > > >actual server clock? > > > > > > > // richard (This email is for mailing lists. To reach me directly, > > please use richard at imagecraft.com) > > > > _______________________________________________ > > 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 at imagecraft.com Thu Sep 25 15:50:36 2008 From: richard at imagecraft.com (Richard Man) Date: Thu Sep 25 16:54:50 2008 Subject: [Icc-avr] ICCAVR 7.19 released Message-ID: <200809252354.m8PNsm56044282@mail.imagecraft.com> V7.19 Sept 26th, 2008 [ XMega IO Registers syntax - will be added to the Help file soon ] With XMega, Atmel introduce new syntax to access the io registers, using structs and unions. See AppNote AVR1000 for details. ImageCraft io header files support new syntax fully, only usage of multi-byte struct members is different, because compiler does not support C++ anonymous unions. There are following cases: Atmel style ImageCraft style baseaddr->structmember baseaddr->structmember // byte access to byte register baseaddr->structmember baseaddr->structmember.i // word access to word register baseaddr->structmemberL/H baseaddr->structmember.b[L/H] // byte access to word register baseaddr->structmember baseaddr->structmember.l // dword access to dword register baseaddr->structmember0_3 baseaddr->structmember.b[0_3] // byte access to dword register IDE - Added Project->"Clean Output Directory" - Added entries for more XMega parts - dongle licensing for command line tools was accidentally broken in 7.18 Linker and tools - Fixed a bug where if the output file name contains a dot ., then the output files would truncate the filenames. Library - Improved malloc()/free() code. It now uses best fit, optimal merging to prevent fragmentation. Header Files - new header files to support all known XMegas // richard blog: On-line orders, support, and listservers available on web site. [ For technical support on ImageCraft products, please include all previous replies in your msgs. ] From bobgardner at aol.com Thu Sep 25 17:40:11 2008 From: bobgardner at aol.com (bobgardner@aol.com) Date: Thu Sep 25 18:44:00 2008 Subject: SV: SV: [Icc-avr] IDE asks for reload file after compile In-Reply-To: References: <745F70E8ECE94C599590F316F0286277@Shagrat><072D96786BFC014AAEBA9EB07A8070EA4E017D@seattle.ecpower.dk> Message-ID: <8CAED879194364C-B7C-1EBB@WEBMAIL-MB01.sysops.aol.com> If you look at the listing file or map file, then recompile, it will ask if you want to reload the file you are looking at, which is now osolete. -----Original Message----- From: Bengt Ragnemalm Sent: Thu, 25 Sep 2008 1:58 am Subject: SV: SV: [Icc-avr] IDE asks for reload file after compile Richard, can you direct me to some old versions, 7.17 or 7.16 so I can test his? /Bengt > -----Ursprungligt meddelande----- Fr?n: Steven Lose [mailto:sl@ecpower.dk] Skickat: den 15 september 2008 08:27 Till: benra@imt.liu.se; Discussion list for ICCAVR and ICCtiny Users. You do NOT need tosubscribeto icc-announce if you are a member of this. ?mne: SV: SV: [Icc-avr] IDE asks for reload file after compile Hi Bengt. If you believe the change came with 7.18B, try and downgrade to 7.17 to see if the behaviour is ok again. Must also be nice information to Richard. Med venlig hilsen / Best regards / mit freundlichen Gr??en EC POWER A/S Steven Lose Software Ingeni?r Tlf.: +45 87434100 Direkte tlf. +45 58286608 Email: sl@ecpower.dk www.ecpower.dk -----Oprindelig meddelelse----- Fra: icc-avr-bounces@imagecraft.com [mailto:icc-avr- bounces@imagecraft.com] P? vegne af Bengt Ragnemalm Sendt: 15. september 2008 07:41 Til: 'Discussion list for ICCAVR and ICCtiny Users. You do NOT needtosubscribeto icc-announce if you are a member of this.' Emne: SV: SV: [Icc-avr] IDE asks for reload file after compile=0 D OK, in that case I just turn it off to get rid of it. This is a rather new behaviour and I am pretty sure it started the same time as I upgraded to 7.18B from some 7.17. I have not updated anything else of the software tools like AVR Studio. But I will check with our network guys if something is changed on the server side. /Bengt > -----Ursprungligt meddelande----- > Fr?n: icc-avr-bounces@imagecraft.com [mailto:icc-avr- > bounces@imagecraft.com] F?r Richard Man > Skickat: den 12 september 2008 22:28 > Till: icc-avr@imagecraft.com > ?mne: Re: SV: [Icc-avr] IDE asks for reload file after compile > > It's not the COF file, but the source file that's open. WHen opening > a file, the IDE keeps track of the filedate of the file in the > internal data structure. Once in a while, it checks the date of the > disk file again and see if it is in sync. It just uses the FileDate() > function so I am not entirely sure how it calculates the date. You > can turn ff the behavior (Tools->Options) if the behavior is funky, > but I'm not sure how it can be happening.... May be there is some > implications with the file dates if they are on a network.... > > > At 05:22 AM 9/8/2008, Bengt Ragnemalm wrote: > >I checked the file creation time on the COF file on the server and > >it is the same as on my system. Is that enough or must I check the > >actual server clock? > > > > // richard (This email is for mailing lists. To reach me directly, > please use richard at imagecraft.com) > > _______________________________________________ > 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 _______________________________________________ cc-avr mailing list cc-avr@imagecraft.com ttp://dragonsgate.net/mailman/listinfo/icc-avr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080925/6006642a/attachment.html From benra at imt.liu.se Thu Sep 25 23:18:15 2008 From: benra at imt.liu.se (Bengt Ragnemalm) Date: Fri Sep 26 00:21:43 2008 Subject: SV: SV: SV: [Icc-avr] IDE asks for reload file after compile In-Reply-To: <8CAED879194364C-B7C-1EBB@WEBMAIL-MB01.sysops.aol.com> References: <745F70E8ECE94C599590F316F0286277@Shagrat><072D96786BFC014AAEBA9EB07A8070EA4E017D@seattle.ecpower.dk> <8CAED879194364C-B7C-1EBB@WEBMAIL-MB01.sysops.aol.com> Message-ID: <0C231F1BAAF44A86924AD1F6A80D87A3@Shagrat> No, I am talking about normal code .c or .h files. /Bengt _____ Fr?n: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] F?r bobgardner@aol.com Skickat: den 26 september 2008 02:40 Till: benra@imt.liu.se; icc-avr@imagecraft.com ?mne: Re: SV: SV: [Icc-avr] IDE asks for reload file after compile If you look at the listing file or map file, then recompile, it will ask if you want to reload the file you are looking at, which is now osolete. -----Original Message----- From: Bengt Ragnemalm Sent: Thu, 25 Sep 2008 1:58 am Subject: SV: SV: [Icc-avr] IDE asks for reload file after compile Richard, can you direct me to some old versions, 7.17 or 7.16 so I can test this? /Bengt > -----Ursprungligt meddelande----- > Fr?n: Steven Lose [mailto:sl@ecpower.dk ] > Skickat: den 15 september 2008 08:27 > Till: benra@imt.liu.se; Discussion list for ICCAVR and ICCtiny Users. You > do NOT need tosubscribeto icc-announce if you are a member of this. > ?mne: SV: SV: [Icc-avr] IDE asks for reload file after compile > > Hi Bengt. > > If you believe the change came with 7.18B, try and downgrade to 7.17 to > see if the behaviour is ok again. > Must also be nice information to Richard. > > > Med venlig hilsen / Best regards / mit freundlichen Gr??en > > EC POWER A/S > > Steven Lose > > Software Ingeni?r > > Tlf.: +45 87434100 > > Direkte20tlf. +45 58286608 > > Email: sl@ecpower.dk > > www.ecpower.dk > > -----Oprindelig meddelelse----- > Fra: icc-avr-bounces@imagecraft.com [mailto:icc-avr- > bounces@imagecraft.com] P? vegne af Bengt Ragnemalm > Sendt: 15. september 2008 07:41 > Til: 'Discussion list for ICCAVR and ICCtiny Users. You do NOT > needtosubscribeto icc-announce if you are a member of this.' > Emne: SV: SV: [Icc-avr] IDE asks for reload file after compile > > OK, in that case I just turn it off to get rid of it. This is a rather new > behaviour and I am pretty sure it started the same time as I upgraded to > 7.18B from some 7.17. I have not updated anything else of the software > tools > like AVR Studio. But I will check with our network guys if something is > changed on the server side. > > /Bengt > > > -----Ursprungligt meddelande----- > > Fr?n: icc-avr-bounces@imagecraft.com [mailto:icc-avr- > > bounces@imagecraft.com] F?r Richard Man > > Skickat: den 12 september 2008 22:28 > > Till: icc-avr@imagecraft.com > > ?mne: Re: SV: [Icc-avr] IDE asks for20reload file after compile > > > > It's not the COF file, but the source file that's open. WHen opening > > a file, the IDE keeps track of the filedate of the file in the > > internal data structure. Once in a while, it checks the date of the > > disk file again and see if it is in sync. It just uses the FileDate() > > function so I am not entirely sure how it calculates the date. You > > can turn ff the behavior (Tools->Options) if the behavior is funky, > > but I'm not sure how it can be happening.... May be there is some > > implications with the file dates if they are on a network.... > > > > > > At 05:22 AM 9/8/2008, Bengt Ragnemalm wrote: > > >I checked the file creation time on the COF file on the server and > > >it is the same as on my system. Is that enough or must I check the > > >actual server clock? > > > > > > > // richard (This email is for mailing lists. To reach me directly, > > please use richard at imagecraft.com) > > > > _______________________________________________ > > 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 _______________________________________________ Icc-avr mailing list Icc-avr@imagecraft.com http://dragonsgate.net/mailman/listinfo/icc-avr _____ Find phone numbers fast with the New AOL Yellow Pages! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080926/1c850ed7/attachment-0001.html From benra at imt.liu.se Thu Sep 25 23:45:03 2008 From: benra at imt.liu.se (Bengt Ragnemalm) Date: Fri Sep 26 00:48:29 2008 Subject: SV: SV: [Icc-avr] IDE asks for reload file after compile In-Reply-To: References: <745F70E8ECE94C599590F316F0286277@Shagrat><072D96786BFC014AAEBA9EB07A8070EA4E017D@seattle.ecpower.dk> Message-ID: <9B35DD31377D456F86D4B8CA1246245D@Shagrat> I downloaded version 7.15 and tested. First I couldn't repeat the problem in the old version but after a little more testing I could. This happened if at least two files are opened and edited at the same time at the time of compile. If no one else have this problem I think we can leave it for now. I did not do an uninstall of 7.18 before installing 7.15 on top of it, could this make any difference? /Bengt > -----Ursprungligt meddelande----- > Fr?n: icc-avr-bounces@imagecraft.com [mailto:icc-avr- > bounces@imagecraft.com] F?r Bengt Ragnemalm > Skickat: den 25 september 2008 07:59 > Till: 'Discussion list for ICCAVR and ICCtiny Users. You do NOT > needtosubscribeto icc-announce if you are a member of this.' > ?mne: SV: SV: [Icc-avr] IDE asks for reload file after compile > > Richard, can you direct me to some old versions, 7.17 or 7.16 so I can > test > this? > > /Bengt > > > -----Ursprungligt meddelande----- > > Fr?n: Steven Lose [mailto:sl@ecpower.dk] > > Skickat: den 15 september 2008 08:27 > > Till: benra@imt.liu.se; Discussion list for ICCAVR and ICCtiny Users. > You > > do NOT need tosubscribeto icc-announce if you are a member of this. > > ?mne: SV: SV: [Icc-avr] IDE asks for reload file after compile > > > > Hi Bengt. > > > > If you believe the change came with 7.18B, try and downgrade to 7.17 to > > see if the behaviour is ok again. > > Must also be nice information to Richard. > > > > > > Med venlig hilsen / Best regards / mit freundlichen Gr??en > > > > EC POWER A/S > > > > Steven Lose > > > > Software Ingeni?r > > > > Tlf.: +45 87434100 > > > > Direkte tlf. +45 58286608 > > > > Email: sl@ecpower.dk > > > > www.ecpower.dk > > > > -----Oprindelig meddelelse----- > > Fra: icc-avr-bounces@imagecraft.com [mailto:icc-avr- > > bounces@imagecraft.com] P? vegne af Bengt Ragnemalm > > Sendt: 15. september 2008 07:41 > > Til: 'Discussion list for ICCAVR and ICCtiny Users. You do NOT > > needtosubscribeto icc-announce if you are a member of this.' > > Emne: SV: SV: [Icc-avr] IDE asks for reload file after compile > > > > OK, in that case I just turn it off to get rid of it. This is a rather > new > > behaviour and I am pretty sure it started the same time as I upgraded to > > 7.18B from some 7.17. I have not updated anything else of the software > > tools > > like AVR Studio. But I will check with our network guys if something is > > changed on the server side. > > > > /Bengt > > > > > -----Ursprungligt meddelande----- > > > Fr?n: icc-avr-bounces@imagecraft.com [mailto:icc-avr- > > > bounces@imagecraft.com] F?r Richard Man > > > Skickat: den 12 september 2008 22:28 > > > Till: icc-avr@imagecraft.com > > > ?mne: Re: SV: [Icc-avr] IDE asks for reload file after compile > > > > > > It's not the COF file, but the source file that's open. WHen opening > > > a file, the IDE keeps track of the filedate of the file in the > > > internal data structure. Once in a while, it checks the date of the > > > disk file again and see if it is in sync. It just uses the FileDate() > > > function so I am not entirely sure how it calculates the date. You > > > can turn ff the behavior (Tools->Options) if the behavior is funky, > > > but I'm not sure how it can be happening.... May be there is some > > > implications with the file dates if they are on a network.... > > > > > > > > > At 05:22 AM 9/8/2008, Bengt Ragnemalm wrote: > > > >I checked the file creation time on the COF file on the server and > > > >it is the same as on my system. Is that enough or must I check the > > > >actual server clock? > > > > > > > > > > // richard (This email is for mailing lists. To reach me directly, > > > please use richard at imagecraft.com) > > > > > > _______________________________________________ > > > 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 > > > > _______________________________________________ > Icc-avr mailing list > Icc-avr@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-avr From richard-lists at imagecraft.com Thu Sep 25 23:56:56 2008 From: richard-lists at imagecraft.com (Richard Man) Date: Fri Sep 26 01:01:13 2008 Subject: SV: SV: [Icc-avr] IDE asks for reload file after compile In-Reply-To: <9B35DD31377D456F86D4B8CA1246245D@Shagrat> References: <745F70E8ECE94C599590F316F0286277@Shagrat> <072D96786BFC014AAEBA9EB07A8070EA4E017D@seattle.ecpower.dk> <9B35DD31377D456F86D4B8CA1246245D@Shagrat> Message-ID: <200809260801.m8Q81C5X055269@mail.imagecraft.com> No difference. Installing will always overwrite if installing to the same directory. At 11:45 PM 9/25/2008, Bengt Ragnemalm wrote: >I downloaded version 7.15 and tested. First I couldn't repeat the problem in >the old version but after a little more testing I could. This happened if at >least two files are opened and edited at the same time at the time of >compile. > >If no one else have this problem I think we can leave it for now. > >I did not do an uninstall of 7.18 before installing 7.15 on top of it, could >this make any difference? > >/Bengt > > > -----Ursprungligt meddelande----- > > Fr?n: icc-avr-bounces@imagecraft.com [mailto:icc-avr- > > bounces@imagecraft.com] F?r Bengt Ragnemalm > > Skickat: den 25 september 2008 07:59 > > Till: 'Discussion list for ICCAVR and ICCtiny Users. You do NOT > > needtosubscribeto icc-announce if you are a member of this.' > > ?mne: SV: SV: [Icc-avr] IDE asks for reload file after compile > > > > Richard, can you direct me to some old versions, 7.17 or 7.16 so I can > > test > > this? > > > > /Bengt > > > > > -----Ursprungligt meddelande----- > > > Fr?n: Steven Lose [mailto:sl@ecpower.dk] > > > Skickat: den 15 september 2008 08:27 > > > Till: benra@imt.liu.se; Discussion list for ICCAVR and ICCtiny Users. > > You > > > do NOT need tosubscribeto icc-announce if you are a member of this. > > > ?mne: SV: SV: [Icc-avr] IDE asks for reload file after compile > > > > > > Hi Bengt. > > > > > > If you believe the change came with 7.18B, try and downgrade to 7.17 to > > > see if the behaviour is ok again. > > > Must also be nice information to Richard. > > > // richard (This email is for mailing lists. To reach me directly, please use richard at imagecraft.com) From rainer.dehnert at t-online.de Sat Sep 27 15:29:10 2008 From: rainer.dehnert at t-online.de (Rainer Dehnert) Date: Sat Sep 27 16:32:36 2008 Subject: [Icc-avr] ATMega644p -> ADC Message-ID: <48DEB3B6.9050004@t-online.de> Hi, using ATMega644p@20MHz with my desired settings: - 1,1V internal Reference - Auto trigger @ timer0 compare match - division factor 128 -> 156,250kHz #pragma interrupt_handler adc_isr:iv_ADC //globals unsigned int adc_data[9]; //adc isr void adc_isr(void) { static unsigned char input_index; adc_data[input_index] = ADC; if(++input_index == 8) input_index = 0; ADMUX = (0b10000000 + input_index); putchar('a'); //only for debugging } //adc init void adc_init(void) { ADMUX = 0; ADCSRA = 0b10101111; ADCSRB = 0b00000011; ADC = 0; DIDR0 = 0b11111111; } Running the code above the adc-isr is never executed. I called SEI() within 'init_devices' and the timer0_comp_isr is executed every 1,022ms correctly. What's going wrong? Many thanks in advance, Rainer From BobGardner at aol.com Sat Sep 27 17:41:18 2008 From: BobGardner at aol.com (BobGardner@aol.com) Date: Sat Sep 27 18:44:10 2008 Subject: [Icc-avr] COMPRESS_DISABLE macro works? Message-ID: Trying to disable code compressor in a bit banging routine... asm(".nocc_start"); seems to work, but the COMPRESS_DISABLE macro kicks out with an error. Anyone use this with no problems? **************Looking for simple solutions to your real-life financial challenges? Check out WalletPop for the latest news and information, tips and calculators. (http://www.walletpop.com/?NCID=emlcntuswall00000001) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080927/0689ddac/attachment.html From sl at ecpower.dk Sun Sep 28 11:07:20 2008 From: sl at ecpower.dk (Steven Lose) Date: Sun Sep 28 12:11:16 2008 Subject: SV: [Icc-avr] ATMega644p -> ADC In-Reply-To: <48DEB3B6.9050004@t-online.de> Message-ID: <072D96786BFC014AAEBA9EB07A8070EA4E07CA@seattle.ecpower.dk> Hi. have you included the right target header file? Med venlig hilsen / Best regards / mit freundlichen Gr??en EC POWER A/S Steven Lose Software Ingeni?r Tlf.: +45 87434100 Direkte tlf. +45 58286608 Email: sl@ecpower.dk www.ecpower.dk -----Oprindelig meddelelse----- Fra: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] P? vegne af Rainer Dehnert Sendt: 28. september 2008 00:29 Til: icc-avr@imagecraft.com Emne: [Icc-avr] ATMega644p -> ADC Hi, using ATMega644p@20MHz with my desired settings: - 1,1V internal Reference - Auto trigger @ timer0 compare match - division factor 128 -> 156,250kHz #pragma interrupt_handler adc_isr:iv_ADC //globals unsigned int adc_data[9]; //adc isr void adc_isr(void) { static unsigned char input_index; adc_data[input_index] = ADC; if(++input_index == 8) input_index = 0; ADMUX = (0b10000000 + input_index); putchar('a'); //only for debugging } //adc init void adc_init(void) { ADMUX = 0; ADCSRA = 0b10101111; ADCSRB = 0b00000011; ADC = 0; DIDR0 = 0b11111111; } Running the code above the adc-isr is never executed. I called SEI() within 'init_devices' and the timer0_comp_isr is executed every 1,022ms correctly. What's going wrong? Many thanks in advance, Rainer _______________________________________________ Icc-avr mailing list Icc-avr@imagecraft.com http://dragonsgate.net/mailman/listinfo/icc-avr From rainer.dehnert at t-online.de Sun Sep 28 12:32:21 2008 From: rainer.dehnert at t-online.de (Rainer Dehnert) Date: Sun Sep 28 13:35:56 2008 Subject: SV: [Icc-avr] ATMega644p -> ADC In-Reply-To: <072D96786BFC014AAEBA9EB07A8070EA4E07CA@seattle.ecpower.dk> References: <072D96786BFC014AAEBA9EB07A8070EA4E07CA@seattle.ecpower.dk> Message-ID: <48DFDBC5.8060107@t-online.de> Hi Steven, I included . Should be the right one... Thanks Rainer Steven Lose schrieb: > Hi. > have you included the right target header file? > > Med venlig hilsen / Best regards / mit freundlichen Gr??en > > EC POWER A/S > > Steven Lose > > Software Ingeni?r > > Tlf.: +45 87434100 > > Direkte tlf. +45 58286608 > > Email: sl@ecpower.dk > > www.ecpower.dk > > -----Oprindelig meddelelse----- > Fra: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] P? vegne af Rainer Dehnert > Sendt: 28. september 2008 00:29 > Til: icc-avr@imagecraft.com > Emne: [Icc-avr] ATMega644p -> ADC > > Hi, > > using ATMega644p@20MHz with my desired settings: > - 1,1V internal Reference > - Auto trigger @ timer0 compare match > - division factor 128 -> 156,250kHz > > > #pragma interrupt_handler adc_isr:iv_ADC > > //globals > unsigned int adc_data[9]; > > //adc isr > void adc_isr(void) { > static unsigned char input_index; > > adc_data[input_index] = ADC; > > if(++input_index == 8) > input_index = 0; > > ADMUX = (0b10000000 + input_index); > > putchar('a'); //only for debugging > } > > //adc init > void adc_init(void) { > ADMUX = 0; > ADCSRA = 0b10101111; > ADCSRB = 0b00000011; > ADC = 0; > DIDR0 = 0b11111111; > } > > > Running the code above the adc-isr is never executed. > I called SEI() within 'init_devices' and the timer0_comp_isr is > executed every 1,022ms correctly. > > What's going wrong? > > Many thanks in advance, > Rainer > > _______________________________________________ > 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 j_baraclough at zetnet.co.uk Sun Sep 28 15:26:41 2008 From: j_baraclough at zetnet.co.uk (John Baraclough) Date: Sun Sep 28 16:30:20 2008 Subject: SV: [Icc-avr] ATMega644p -> ADC In-Reply-To: <48DFDBC5.8060107@t-online.de> References: <072D96786BFC014AAEBA9EB07A8070EA4E07CA@seattle.ecpower.dk> <48DFDBC5.8060107@t-online.de> Message-ID: <48E004A1.4050005@zetnet.co.uk> Hi Rainer, A better method of ensuring that you have the correct header file is to put the line: #include instead and then the compiler does the work for you. Firstly try the ADC in free-running mode to check that the ISR is serviced correctly. Then try starting the conversion by setting the ADSC bit in the Timer0 compare ISR. That will help to narrow down the problem area. Don't forget that the first conversion takes 25 clocks rather than the 13 clocks of subsequent conversions. Let us know what you find. All the best for now, John Rainer Dehnert wrote: > Hi Steven, > > I included . Should be the right one... > > Thanks > Rainer > > From benra at imt.liu.se Sun Sep 28 22:51:09 2008 From: benra at imt.liu.se (Bengt Ragnemalm) Date: Sun Sep 28 23:54:29 2008 Subject: SV: SV: [Icc-avr] ATMega644p -> ADC In-Reply-To: <48E004A1.4050005@zetnet.co.uk> References: <072D96786BFC014AAEBA9EB07A8070EA4E07CA@seattle.ecpower.dk><48DFDBC5.8060107@t-online.de> <48E004A1.4050005@zetnet.co.uk> Message-ID: <67F6CC8233F541E3AC6FC024266187AD@Shagrat> For how long have this file been there? I have used my own similar file for years now but this is better. There is not a word about the file in the help file. /Bengt > -----Ursprungligt meddelande----- > Fr?n: icc-avr-bounces@imagecraft.com [mailto:icc-avr- > bounces@imagecraft.com] F?r John Baraclough > Skickat: den 29 september 2008 00:27 > Till: Discussion list for ICCAVR and ICCtiny Users. You do NOT need > tosubscribe to icc-announce if you are a member of this. > ?mne: Re: SV: [Icc-avr] ATMega644p -> ADC > > Hi Rainer, > > A better method of ensuring that you have the correct header file is to > put the line: > > #include > > instead and then the compiler does the work for you. > > Firstly try the ADC in free-running mode to check that the ISR is > serviced correctly. Then try starting the conversion by setting the ADSC > bit in the Timer0 compare ISR. That will help to narrow down the problem > area. Don't forget that the first conversion takes 25 clocks rather than > the 13 clocks of subsequent conversions. > > Let us know what you find. > > All the best for now, > John > > > Rainer Dehnert wrote: > > Hi Steven, > > > > I included . Should be the right one... > > > > Thanks > > Rainer > > > > > > _______________________________________________ > Icc-avr mailing list > Icc-avr@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-avr From sl at ecpower.dk Sun Sep 28 23:17:13 2008 From: sl at ecpower.dk (Steven Lose) Date: Mon Sep 29 00:20:52 2008 Subject: SV: SV: [Icc-avr] ATMega644p -> ADC In-Reply-To: <67F6CC8233F541E3AC6FC024266187AD@Shagrat> Message-ID: <072D96786BFC014AAEBA9EB07A8070EA4E07CF@seattle.ecpower.dk> Hi. Not for long, only from Ver. 7.16. ;o) Med venlig hilsen / Best regards / mit freundlichen Gr??en EC POWER A/S Steven Lose Software Ingeni?r Tlf.: +45 87434100 Direkte tlf. +45 58286608 Email: sl@ecpower.dk www.ecpower.dk -----Oprindelig meddelelse----- Fra: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] P? vegne af Bengt Ragnemalm Sendt: 29. september 2008 07:51 Til: 'Discussion list for ICCAVR and ICCtiny Users. You do NOT needtosubscribeto icc-announce if you are a member of this.' Emne: SV: SV: [Icc-avr] ATMega644p -> ADC For how long have this file been there? I have used my own similar file for years now but this is better. There is not a word about the file in the help file. /Bengt > -----Ursprungligt meddelande----- > Fr?n: icc-avr-bounces@imagecraft.com [mailto:icc-avr- > bounces@imagecraft.com] F?r John Baraclough > Skickat: den 29 september 2008 00:27 > Till: Discussion list for ICCAVR and ICCtiny Users. You do NOT need > tosubscribe to icc-announce if you are a member of this. > ?mne: Re: SV: [Icc-avr] ATMega644p -> ADC > > Hi Rainer, > > A better method of ensuring that you have the correct header file is to > put the line: > > #include > > instead and then the compiler does the work for you. > > Firstly try the ADC in free-running mode to check that the ISR is > serviced correctly. Then try starting the conversion by setting the ADSC > bit in the Timer0 compare ISR. That will help to narrow down the problem > area. Don't forget that the first conversion takes 25 clocks rather than > the 13 clocks of subsequent conversions. > > Let us know what you find. > > All the best for now, > John > > > Rainer Dehnert wrote: > > Hi Steven, > > > > I included . Should be the right one... > > > > Thanks > > Rainer > > > > > > _______________________________________________ > 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 svenn at sleipner.no Mon Sep 29 00:21:25 2008 From: svenn at sleipner.no (=?iso-8859-1?Q?Svenn_Dahlstr=F8m?=) Date: Mon Sep 29 01:25:06 2008 Subject: [Icc-avr] COMPRESS_DISABLE macro works? In-Reply-To: References: Message-ID: <461D162473D69541BAE9440159B299DA2E4D382407@sm-excsrv.sleipner.local> COMPRESS_DISABLE needs macros.h Also try NOCC_START() and NOCC_END() Svenn Fra: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] P? vegne av BobGardner@aol.com Sendt: 28. september 2008 02:41 Til: icc-avr@imagecraft.com Emne: [Icc-avr] COMPRESS_DISABLE macro works? Trying to disable code compressor in a bit banging routine... asm(".nocc_start"); seems to work, but the COMPRESS_DISABLE macro kicks out with an error. Anyone use this with no problems? ________________________________ Looking for simple solutions to your real-life financial challenges? Check out WalletPop for the latest news and information, tips and calculators. ________________________________ The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments. Any unauthorized use, copying or dissemination of this transmission is prohibited. Neither the confidentiality nor the integrity of this message can be vouched for following transmission on the Internet. SLEIPNER MOTOR AS P.O.Box 519 - 1612 Fredrikstad - Norway Tel: +47 69 30 00 60 Fax: +47 69 30 00 70 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080929/bde12d6a/attachment.html From bobgardner at aol.com Mon Sep 29 05:03:15 2008 From: bobgardner at aol.com (bobgardner@aol.com) Date: Mon Sep 29 06:07:11 2008 Subject: [Icc-avr] COMPRESS_DISABLE macro works? In-Reply-To: <461D162473D69541BAE9440159B299DA2E4D382407@sm-excsrv.sleipner.local> References: <461D162473D69541BAE9440159B299DA2E4D382407@sm-excsrv.sleipner.local> Message-ID: <8CAF0427C0F8FC9-BCC-B58A@webmail-db18.sysops.aol.com> I think it needs parentheses, Have you tried it yourself? Can a macro expand 3 time like that? -----Original Message----- From: Svenn Dahlstr?m Sent: Mon, 29 Sep 2008 3:21 am Subject: RE: [Icc-avr] COMPRESS_DISABLE macro works? COMPRESS_DISABLE needs macros.h Also try NOCC_START() and NOCC_END() ? Svenn ? Fra: icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] P? vegne av BobGardner@aol.com Sendt: 28. september 2008 02:41 Til: icc-avr@imagecraft.com Emne: [Icc-avr] COMPRESS_DISABLE macro works? ? Trying to disable code compressor in a bit banging routine... asm(".nocc_start"); seems to work, but the COMPRESS_DISABLE macro kicks out with an error. Anyone use this with no problems? Looking for simple solutions to your real-life financial challenges? Check out WalletPop for the latest news and information, tips and calculators. The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments. Any unauthorized use, copying or dissemination of this transmission is prohibited. Neither the confidentiality nor the integrity of this message can be vouched for following transmission on the Internet. SLEIPNER MOTOR AS P.O.Box 519 - 1612 Fredrikstad - Norway Tel: +47 69 30 00 60 Fax: +47 69 30 00 70 _______________________________________________=0 Dcc-avr mailing list cc-avr@imagecraft.com ttp://dragonsgate.net/mailman/listinfo/icc-avr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080929/f16cb5ec/attachment-0001.html From ashok.alal at gmail.com Mon Sep 29 22:54:55 2008 From: ashok.alal at gmail.com (Ashoka) Date: Mon Sep 29 23:58:35 2008 Subject: [Icc-avr] TWI problem in Atmega128 Message-ID: <127dfaa30809292254q24d3c82co6249de17f6ce3cbd@mail.gmail.com> Hi, I'm interfacing DS1307 with Atmega 128. 1) Pls guide me how to calculate the TWBR value. using fallowing equation which is necessary to load on TWBR to generate SCL(100k) CPU Clock frequency is 11.0592 MHz SCL frequency = ((CPU Clock frequency) / 16 + 2(TWBR) ? 4TWPS) 2) In write mode, i'm able to write only 0(zero) at zeroth bit of all registers of DS1307. Ex: 1.) TWDR = 0x00; TWCR = BIT(TWINT) | BIT(TWEN); while (!(TWCR & BIT(TWINT))) ; 2.) TWDR = 0x02; TWCR = BIT(TWINT) | BIT(TWEN); while (!(TWCR & BIT(TWINT))) ; so on.... works fine. and also getting acknowledgment from DS1307. (i. e. TWSR value is $28) where as 3.) TWDR = 0x01; TWCR = BIT(TWINT) | BIT(TWEN); while (!(TWCR & BIT(TWINT))) ; 4.) TWDR = 0x03; TWCR = BIT(TWINT) | BIT(TWEN); while (!(TWCR & BIT(TWINT))) ; so on in this case acknowledge bit is not coming. (i. e. TWSR value is $30) *here is my code* TWCR = BIT(TWINT) | BIT(TWSTA) | BIT(TWEN); while (!(TWCR & BIT(TWINT))) ; TWSR value is $08 // A START condition has been transmitted TWDR = RTC_SLA_W; TWCR = BIT(TWINT) | BIT(TWEN); while (!(TWCR & BIT(TWINT))) ; TWSR value is $18 // SLA+W has been transmitted ACK has been received TWDR = 0x00; // pointing to DS1307 register address TWCR = BIT(TWINT) | BIT(TWEN); while (!(TWCR & BIT(TWINT))) ; TWDR = 0x00; // WRITING 00 at seconds REGISTER of DS1307 TWCR = BIT(TWINT) | BIT(TWEN); while (!(TWCR & BIT(TWINT))) ; TWSR value is $28 // Data byte has been transmitted ACK has been received TWDR = 0x01; // WRITING 01 at minutes REGISTER of DS1307 TWCR = BIT(TWINT) | BIT(TWEN); while (!(TWCR & BIT(TWINT))) ; TWSR value is $30 // Data byte has been transmitted NOT ACK has been received please giude me ...... Sincerely, Ashok -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080930/1ecdb746/attachment.html From j_baraclough at zetnet.co.uk Tue Sep 30 02:59:06 2008 From: j_baraclough at zetnet.co.uk (John Baraclough) Date: Tue Sep 30 04:02:54 2008 Subject: [Icc-avr] TWI problem in Atmega128 In-Reply-To: <127dfaa30809292254q24d3c82co6249de17f6ce3cbd@mail.gmail.com> References: <127dfaa30809292254q24d3c82co6249de17f6ce3cbd@mail.gmail.com> Message-ID: <48E1F86A.4020902@zetnet.co.uk> You probably can't transpose this equation because your parentheses are in the wrong position. It should be: Fscl = Fcpu / (16 + (2 * TWBR * (4^TWPS))) which gives: TWBR = ((Fcpu / Fscl) - 16) / (2 * (4^TWPS)) Ashoka wrote: > Hi, > > I'm interfacing DS1307 with Atmega 128. > > 1) > Pls guide me how to calculate the TWBR value. using fallowing equation > which is necessary to load on TWBR to generate SCL(100k) > CPU Clock frequency is 11.0592 MHz > > SCL frequency = ((CPU Clock frequency) / 16 + 2(TWBR) ? 4TWPS) I have also attached a zip file with some working I2C code. You will need to adapt it slightly as it is for a different RTC chip. HTH John -------------- next part -------------- A non-text attachment was scrubbed... Name: I2c.zip Type: application/octet-stream Size: 1470 bytes Desc: not available Url : http://dragonsgate.net/pipermail/icc-avr/attachments/20080930/3088ab4b/I2c.obj From rainer.dehnert at t-online.de Tue Sep 30 12:58:50 2008 From: rainer.dehnert at t-online.de (Rainer Dehnert) Date: Tue Sep 30 14:02:18 2008 Subject: SV: [Icc-avr] ATMega644p -> ADC In-Reply-To: <48E004A1.4050005@zetnet.co.uk> References: <072D96786BFC014AAEBA9EB07A8070EA4E07CA@seattle.ecpower.dk> <48DFDBC5.8060107@t-online.de> <48E004A1.4050005@zetnet.co.uk> Message-ID: <48E284FA.9040700@t-online.de> Hi John, many thanks for your response! This code works like expected: //ICC-AVR application builder : 29.09.2008 22:44:51 // Target : M644p // Crystal: 20.000Mhz #include #include #include #pragma interrupt_handler timer0_comp_isr:iv_TIM0_COMPA #pragma interrupt_handler adc_isr:iv_ADC extern int _textmode; unsigned int adc_data[9]; void port_init(void) { PORTA = 0x00; DDRA = 0x00; PORTB = 0x00; DDRB = 0x00; PORTC = 0x00; DDRC = 0x00; PORTD = 0x00; DDRD = 0x00; } //TIMER0 initialize - prescale:256 // WGM: CTC // desired value: 1mSec // actual value: 1,011mSec (-1,1%) void timer0_init(void) { TIMSK0=0x02; TIFR0=0x00; TCCR0A=0x02; TCCR0B=0x04; TCNT0=0xB2; OCR0A=0x4E; OCR0B=0x4E; GTCCR=0x00; } //***************************************************************************** int putchar(char c) { //***************************************************************************** if (_textmode && c == '\n') putchar('\r'); while ( !(UCSR1A & (1< Hi Rainer, > > A better method of ensuring that you have the correct header file is > to put the line: > > #include > > instead and then the compiler does the work for you. > > Firstly try the ADC in free-running mode to check that the ISR is > serviced correctly. Then try starting the conversion by setting the > ADSC bit in the Timer0 compare ISR. That will help to narrow down the > problem area. Don't forget that the first conversion takes 25 clocks > rather than the 13 clocks of subsequent conversions. > > Let us know what you find. > > All the best for now, > John > > > Rainer Dehnert wrote: >> Hi Steven, >> >> I included . Should be the right one... >> >> Thanks >> Rainer >> >> > > _______________________________________________ > Icc-avr mailing list > Icc-avr@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-avr > > From jassenbaum at htp-tel.de Tue Sep 30 15:40:33 2008 From: jassenbaum at htp-tel.de (Johannes Assenbaum) Date: Tue Sep 30 16:44:14 2008 Subject: SV: [Icc-avr] ATMega644p -> ADC References: <48DFDBC5.8060107@t-online.de> <48E004A1.4050005@zetnet.co.uk> <48E284FA.9040700@t-online.de> Message-ID: Hi Rainer, I'd never use printf() within an isr on AVRs. It lasts to many clock cycles. Best regards, Johannes > Hi John, > many thanks for your response! > This code works like expected: > //ICC-AVR application builder : 29.09.2008 22:44:51 > // Target : M644p > // Crystal: 20.000Mhz > #include > #include > #include > #pragma interrupt_handler timer0_comp_isr:iv_TIM0_COMPA > #pragma interrupt_handler adc_isr:iv_ADC > extern int _textmode; > unsigned int adc_data[9]; > void port_init(void) > { > PORTA = 0x00; > DDRA = 0x00; > PORTB = 0x00; > DDRB = 0x00; > PORTC = 0x00; > DDRC = 0x00; > PORTD = 0x00; > DDRD = 0x00; > } > //TIMER0 initialize - prescale:256 > // WGM: CTC > // desired value: 1mSec > // actual value: 1,011mSec (-1,1%) > void timer0_init(void) > { > TIMSK0=0x02; > TIFR0=0x00; > TCCR0A=0x02; > TCCR0B=0x04; > TCNT0=0xB2; > OCR0A=0x4E; > OCR0B=0x4E; > GTCCR=0x00; > } > //***************************************************************************** > int putchar(char c) { > //***************************************************************************** > if (_textmode && c == '\n') > putchar('\r'); > while ( !(UCSR1A & (1< ; > UDR1 = c; > return c; > } > void timer0_comp_isr(void) > { > // Timer/Counter0 Compare Match A > } > //UART1 initialize > // desired baud rate:115200 > // actual baud rate:113636 (1,4%) > // char size: 8 bit > // parity: Disabled > void uart1_init(void) > { > UDR1=0x00; > UCSR1A=0x00; > UCSR1B=0x08; > UCSR1C=0x06; > UBRR1H=0x00; > UBRR1L=0x0A; > } > //ADC initialize > // Conversion time: 83uS > void adc_init(void) > { > ADMUX = 0x00; > ADCSRA = 0b10101111; > ADCSRB = 0b00000011; > ADCH = 0x00; > ADCL = 0x00; > DIDR0 = 0b11111111; > } > //***************************************************************************** > void adc_isr(void) { > //***************************************************************************** > static unsigned char input_index; > printf("%d\n\r", adc_data[7]); //for debug only > adc_data[input_index] = ADC; > if(++input_index == 8) > input_index = 0; > ADMUX = (0b10000000 + input_index); > } > //call this routine to initialize all peripherals > void init_devices(void) > { > //stop errant interrupts until set up > CLI(); //disable all interrupts > port_init(); > timer0_init(); > uart1_init(); > adc_init(); > TIMSK0 = 0x02; > TIMSK2 = 0x00; > MCUCR = 0x00 ; > PCMSK0 = 0x00; > PCMSK1 = 0x00; > PCMSK2 = 0x00; > PCMSK3 = 0x00; > EIMSK = 0x00 ; > EICRA = 0x00 ; > PCICR = 0x00 ; > TIMSK1 = 0x00; > MCUCR = 0x00 ; > PRR0 = 0x00 ; > SEI(); //re-enable interrupts > //all peripherals are now initialized > } > // > void main(void) > { > init_devices(); > //insert your functional code here... > } > If I insert these few lines in a present and to enhance source the > adc-isr doesn't trigger anymore. > In my project I use the 'uartintr.c' and 'uart.h' buffer from the iccavr > examples-directory. I've removed the "while" statements within the > uart-isrs using the query 'DataInReceiveBuffer' instead. Disabling the > two uart-isrs (RXC & udre) the adc works like with the little example above! > Have you any idea solving this problem? > Many thanks and best Regards, > Rainer > John Baraclough schrieb: >> Hi Rainer, >> >> A better method of ensuring that you have the correct header file is >> to put the line: >> >> #include >> >> instead and then the compiler does the work for you. >> >> Firstly try the ADC in free-running mode to check that the ISR is >> serviced correctly. Then try starting the conversion by setting the >> ADSC bit in the Timer0 compare ISR. That will help to narrow down the >> problem area. Don't forget that the first conversion takes 25 clocks >> rather than the 13 clocks of subsequent conversions. >> >> Let us know what you find. >> >> All the best for now, >> John >> >> >> Rainer Dehnert wrote: >>> Hi Steven, >>> >>> I included . Should be the right one... >>> >>> Thanks >>> Rainer >>> >>> >> >> _______________________________________________ >> 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 j_baraclough at zetnet.co.uk Tue Sep 30 15:41:47 2008 From: j_baraclough at zetnet.co.uk (John Baraclough) Date: Tue Sep 30 16:45:48 2008 Subject: SV: [Icc-avr] ATMega644p -> ADC In-Reply-To: <48E284FA.9040700@t-online.de> References: <072D96786BFC014AAEBA9EB07A8070EA4E07CA@seattle.ecpower.dk> <48DFDBC5.8060107@t-online.de> <48E004A1.4050005@zetnet.co.uk> <48E284FA.9040700@t-online.de> Message-ID: <48E2AB2B.5050503@zetnet.co.uk> Hi Rainer, Without seeing your USART code it's difficult to say what the problem might be. If you are having a problem with the ADC I suggest you start with the working ADC code and then add other functions to it, rather than trying to put the ADC code into another code file. If you add functions just a few at a time you'll soon see what it is that's causing the problem. All the best for now, John Rainer Dehnert wrote: > Hi John, > > many thanks for your response! > > This code works like expected: > > If I insert these few lines in a present and to enhance source the > adc-isr doesn't trigger anymore. > > In my project I use the 'uartintr.c' and 'uart.h' buffer from the > iccavr examples-directory. I've removed the "while" statements within > the uart-isrs using the query 'DataInReceiveBuffer' instead. Disabling > the two uart-isrs (RXC & udre) the adc works like with the little > example above! > > Have you any idea solving this problem? > > Many thanks and best Regards, > Rainer From richard-lists at imagecraft.com Tue Sep 30 15:57:08 2008 From: richard-lists at imagecraft.com (Richard Man) Date: Tue Sep 30 17:02:00 2008 Subject: SV: [Icc-avr] ATMega644p -> ADC In-Reply-To: References: <48DFDBC5.8060107@t-online.de> <48E004A1.4050005@zetnet.co.uk> <48E284FA.9040700@t-online.de> Message-ID: <200810010001.m9101w4e074902@mail.imagecraft.com> Yes definitely, do not use printf within an ISR for debug. .... bad idea. At 03:40 PM 9/30/2008, Johannes Assenbaum wrote: >Hi Rainer, > >I'd never use printf() within an isr on AVRs. It lasts to many clock cycles. > >Best regards, >Johannes > // richard (This email is for mailing lists. To reach me directly, please use richard at imagecraft.com) From ashok.alal at gmail.com Tue Sep 30 20:14:51 2008 From: ashok.alal at gmail.com (Ashoka) Date: Tue Sep 30 21:18:30 2008 Subject: [Icc-avr] TWI problem in Atmega128 In-Reply-To: <48E1F86A.4020902@zetnet.co.uk> References: <127dfaa30809292254q24d3c82co6249de17f6ce3cbd@mail.gmail.com> <48E1F86A.4020902@zetnet.co.uk> Message-ID: <127dfaa30809302014v546855e0w20e71ca43ea3b5e2@mail.gmail.com> Fscl = Fcpu / (16 + (2 * TWBR * (4^TWPS))) in the above i'm not understanding about TWBR * (4^TWPS) please can u explane me. the codes what i had written is working fine. Thanks for ur response. Sincerely, Ashoka John Baraclough wrote On Tue, Sep 30, 2008 at 3:29 PM, John Baraclough wrote: > You probably can't transpose this equation because your parentheses are in > the wrong position. It should be: > > Fscl = Fcpu / (16 + (2 * TWBR * (4^TWPS))) > > which gives: > > TWBR = ((Fcpu / Fscl) - 16) / (2 * (4^TWPS)) > > > > Ashoka wrote: > >> Hi, >> >> I'm interfacing DS1307 with Atmega 128. >> >> 1) >> Pls guide me how to calculate the TWBR value. using fallowing equation >> which is necessary to load on TWBR to generate SCL(100k) >> CPU Clock frequency is 11.0592 MHz >> >> SCL frequency = ((CPU Clock frequency) / 16 + 2(TWBR) ? 4TWPS) >> > > > I have also attached a zip file with some working I2C code. You will need > to adapt it slightly as it is for a different RTC chip. > > HTH > > John > > _______________________________________________ > 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/20081001/e436b339/attachment.html From rainer.dehnert at t-online.de Tue Sep 30 22:36:55 2008 From: rainer.dehnert at t-online.de (rainer.dehnert@t-online.de) Date: Tue Sep 30 23:40:45 2008 Subject: SV: =?ISO-8859-15?Q?=5BIcc-avr=5D?= ATMega644p -> ADC In-Reply-To: <200810010001.m9101w4e074902@mail.imagecraft.com> References: <48DFDBC5.8060107@t-online.de> <48E004A1.4050005@zetnet.co.uk> <48E284FA.9040700@t-online.de> <200810010001.m9101w4e074902@mail.imagecraft.com> Message-ID: <1KkuON-1M8Plw0@fwd06.aul.t-online.de> An HTML attachment was scrubbed... URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20081001/1f321c29/attachment-0001.html