avr-gcc-12.1.0-x64-windows new warnings ?

2023-04-23 Thread Royce Pereira
7;} [-Warray-bounds] What is this warning and what array is it referring to? Thank you! -- Best Regards, -- Royce Pereira

Test

2023-04-23 Thread Royce Pereira
Test -- Best Regards, -- Royce Pereira

Re: Strange new error in make

2021-10-14 Thread Royce Pereira
id not delete the path entries. after deleting them manually, problem solved1 Thank you !! On Thu, 14 Oct 2021 at 11:50, wrote: > > On 13.10.21 17:31, Royce Pereira wrote: >> Today I started getting this error when i run make: >> >> make: *** No rule to make t

Strange new error in make

2021-10-13 Thread Royce Pereira
projects. Note: I'm using windows 10 and make.exe is in : C:\MinGW\msys\1.0\bin\make.exe Which is defined in my path. Please advise. Thank you! -- Best Regards, -- Royce Pereira

Re: error in make

2020-09-26 Thread Royce Pereira
Git >> For Windows" those strange errors disappear.. >> >> Another thing you can try is: >> make --dry-run >> You can examine the commands that make would generate for any errors. >> >> >> -- Nigel >> >> On Fri, 25 Sep 2020 a

Re: error in make

2020-09-25 Thread Royce Pereira
'. Stop. Again, this is probably because of the invalid path above (c\;\...) but i cant figure out the source of this invalid path. Could someone kindly shed some light on this? Thanks! On Tue, 22 Sep 2020 at 15:13, Royce Pereira wrote: > Hi, > > Ok, I deleted all generated fil

Re: error in make

2020-09-22 Thread Royce Pereira
Hi, Ok, I deleted all generated files save my c file. Now the error is not displayed, and the project compiles. However, it would be interesting to know what causes it ! Thank you, On Tue, 22 Sep 2020 at 15:08, Royce Pereira wrote: > Hi, > > Recently I am getting a strange er

error in make

2020-09-22 Thread Royce Pereira
ET).lss $(REMOVE) $(OBJ) $(REMOVE) $(LST) $(REMOVE) $(SRC:.c=.s) $(REMOVE) $(SRC:.c=.d) $(REMOVE) .dep/* # Include the dependency files. -include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*) # Listing of phony targets. .PHONY : all begin finish end sizebefore sizeafter gccversion \ build elf hex eep lss sym coff extcoff \ clean clean_list program debug gdb-config -- Best Regards, -- Royce Pereira

Re: Saving & retreiving a structure in eeprom

2020-06-10 Thread Royce Pereira
k((void *)&setPgm, (const void *)eepLoc, num) ; > > What is num? > >-=Dave > ------ > *From:* AVR-GCC-list > on behalf of Royce Pereira > *Sent:* Tuesday, June 9, 2020 8:18 AM > *To:* avr-gcc-list@nongnu.org > *Subject:* Saving &

Saving & retreiving a structure in eeprom

2020-06-09 Thread Royce Pereira
unction return 0 ; } //--- The getPgm function uses the read block api but retreives garbage(0x); What am I doing wrong ? Thank you! -- Best Regards, -- Royce Pereira -- Best Regards, -- Royce Pereira

Where is the error (stdout)

2020-02-07 Thread Royce Pereira
orked fine in older version of AVR-GCC (4.6 and earlier) I ignored this warning for a long time. Recently, I got curious as to the nature of the error. So what has changed recently ? Thanks! -- Best Regards, -- Royce Pereira

Re: [avr-gcc-list] Winavr2010 on Windows 8.1

2015-03-29 Thread Royce Pereira
you should install > mingw C/C++ compiler. Or give Atmel Studio another try. > > On Fri, Mar 27, 2015 at 10:38 PM, Royce Pereira wrote: >> >> OK, as suggested, I tried MHV AVR tools, >> >> If I run make clean (or make all) I get the following errors >> >

Re: [avr-gcc-list] Winavr2010 on Windows 8.1

2015-03-27 Thread Royce Pereira
t message box saying that "msys-intl-8.dll" is missing. So what's going on ? Thank you. On Fri, Mar 27, 2015 at 2:16 PM, Royce Pereira wrote: > Thank you. > I'll try it and report back in 24 hrs. > > On Mar 27, 2015 1:47 PM, "vasi vasi" wrote: >&g

Re: [avr-gcc-list] Winavr2010 on Windows 8.1

2015-03-26 Thread Royce Pereira
5:10 PM, Royce Pereira wrote: > Thank you! > Your link solved the issue ;-) > > Best regards, > Royce > > On Sep 10, 2014 10:09 AM, "Dhakshinamoorthy, Soundararajan" > wrote: >> >> Perhaps you could give this a try, in case you haven't.

Re: [avr-gcc-list] Winavr2010 on Windows 8.1

2014-09-11 Thread Royce Pereira
.net/forum/windows-81-compilation-error?name=PNphpBB2&file=viewtopic&t=137881 > > Thanks, > Soundararajan > -- > *From:* avr-gcc-list-bounces+sounderarajan.d=atmel@nongnu.org > [avr-gcc-list-bounces+sounderarajan.d=atmel@nongnu.org] on

[avr-gcc-list] Winavr2010 on Windows 8.1

2014-09-09 Thread Royce Pereira
ep/* make.exe: *** [clean_list] Error -1073741502 > Process Exit Code: 2 > Time Taken: 00:13 Best Regards, -- Royce Pereira ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

[avr-gcc-list] Using Code::blocks with AVR-gcc in Ubuntu

2014-08-02 Thread Royce Pereira
ess terminated with status 1 (0 minute(s), 0 second(s)) 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) == Could anyone help in setting up the IDE ? Thank You. -- Best Regards, -- Royce Pereira ___ AVR-GCC-list mailin

[avr-gcc-list] How to handle paths with spaces?

2014-07-17 Thread Royce Pereira
Hi, In my makefile i have included a folder in the 'extra include directories' line. But one folder in this path has a space. I tried to enclose the path and then the folder in single quotes as well as double quotes, but while running make, the path always gets split into two, causing my headers

Re: [avr-gcc-list] String declaration query

2014-07-06 Thread Royce Pereira
Lay wrote: > Royce Pereira schrieb: > >> Hi, >> >> What is the differenence between: >> >> __flash const char myString[] = "Hello There!" ; > > > myString is a const array in flash that's initialized with "Hello Ther

[avr-gcc-list] String declaration query

2014-07-06 Thread Royce Pereira
m I writing it wrong ? Thanks. -- Best Regards, -- Royce Pereira ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: [avr-gcc-list] String array in ROM gives error in spite of following example code.

2014-06-16 Thread Royce Pereira
Thank you, Georg-Johann, That was very informative ! On Mon, Jun 16, 2014 at 3:28 PM, Georg-Johann Lay wrote: > Am 06/12/2014 12:23 PM, schrieb Royce Pereira: > >> Hi, >> >> I recently updated WinAVR to a newer version of the AVR-GCC toolchain, >> downloaded from th

Re: [avr-gcc-list] Some issues with array of pointers to functions

2014-06-16 Thread Royce Pereira
Thank you, Georg-Johann, I will try this and report. :) On Mon, Jun 16, 2014 at 3:19 PM, Georg-Johann Lay wrote: > Am 06/13/2014 12:06 PM, schrieb Royce Pereira: > >> Hi all, >> >> Continuing with the latest avr-gcc, and playing with the new '__flash' >>

[avr-gcc-list] Some issues with array of pointers to functions

2014-06-13 Thread Royce Pereira
[enabled by default] (funcArray[funcNo])() ; */ Can anyone give me an idea of what's happening and how to get rid of the warnings ? Thank You ! ^ -- Best Regards, -- Royce Pereira ___ AVR-GCC-list mailing lis

Re: [avr-gcc-list] String array in ROM gives error in spite of following example code.

2014-06-13 Thread Royce Pereira
Thank you, all, for the guidance. On Fri, Jun 13, 2014 at 12:44 PM, Senthil Kumar Selvaraj wrote: > On Fri, Jun 13, 2014 at 12:02:58PM +0530, Royce Pereira wrote: >> Thanks, Joerg, >> >> This is news to me :) ! >> >> I googled for '__flash qualifier in A

Re: [avr-gcc-list] String array in ROM gives error in spite of following example code.

2014-06-12 Thread Royce Pereira
ash automatically ? On Fri, Jun 13, 2014 at 11:19 AM, Joerg Wunsch wrote: > Royce Pereira wrote: > >> Even the libc documentation, which was once the bible of avr-gcc on >> this is not accurate. The sample code just does not work. > > Apparently, nobody noticed before. Ple

Re: [avr-gcc-list] String array in ROM gives error in spite of following example code.

2014-06-12 Thread Royce Pereira
r Selvaraj wrote: > On Thu, Jun 12, 2014 at 09:58:54PM +0530, Royce Pereira wrote: >> I'll try the various suggestions tomorrow. >> >> But I'm surprised at the diverse replies. >> >> Don't people declare an array of strings anymore ? :-) >> >

Re: [avr-gcc-list] String array in ROM gives error in spite of following example code.

2014-06-12 Thread Royce Pereira
>> >> That works without out warnings for C. There was a long standing bug >> that you may be running into if you are compiling as C++. >> >> _______ >> AVR-GCC-list mailing list >> AVR-GCC-list@nongnu.org >> http

Re: [avr-gcc-list] String array in ROM gives error in spite of following example code.

2014-06-12 Thread Royce Pereira
Sorry, the 'word' type means 'unsigned integer'. I have a header that defines 'word'. :-) On Thu, Jun 12, 2014 at 4:08 PM, Royce Pereira wrote: > I found that this does not throw an error: > > const word pgtmp_msg[]PROGMEM = >{ ptmpUP_msg, pt

Re: [avr-gcc-list] String array in ROM gives error in spite of following example code.

2014-06-12 Thread Royce Pereira
there a proper way of doing this, now that the libc example too is inaccurate ? On Thu, Jun 12, 2014 at 4:04 PM, Royce Pereira wrote: > Francois, > > No, that does not work. > > In fact, it was *exactly* what i was using before (which was not as > per the libc examples). > &g

Re: [avr-gcc-list] String array in ROM gives error in spite of following example code.

2014-06-12 Thread Royce Pereira
llo, > > Newer version of gcc have changed the progmem behaviour, it cannot be > applied to typedef anymore if I remember well. > > const char * pgtmp_msg[] should solve your issue > > Regards > > Francois > > > On Thu, Jun 12, 2014 at 12:23 PM, Royce Pereira wrote: &g

[avr-gcc-list] String array in ROM gives error in spite of following example code.

2014-06-12 Thread Royce Pereira
ion by means of '__attribute__((progmem))' //- But I have followed the avr-libc example exactly. So why is this error thrown and whats the correct way to do this ? Thank You. -- Best Regards, -- Royce Pereira ___

Re: [avr-gcc-list] Help request

2012-11-17 Thread Royce Pereira
I think you are mistaken. The normal (default) operation of all port lines are as regular I/O, unless you configure the relevant timer control registers to toggle the port lines on compare. The default values cause the port lines to be as normal I/O. On Nov 17, 2012 3:39 PM, "Marcelino Macome" wr

Re: [avr-gcc-list] ATmega32A

2011-06-17 Thread Royce Pereira
Hi, all, Indeed there is no (code wise) difference between 32, 32L & 32A (also applies to other MPUs like Mega8 etc). I recently tried a commercial compiler, where selection for 32, 32L, & 32A was given separately, and posed the same query to them. The answer was " All three are the same for the

Re: [avr-gcc-list] Avrdude hfuse error message (tiny26) ...

2010-04-18 Thread Royce Pereira
Hi, Your link opens a page that says " This item is private" . I guess I need to login ? I am not registered there. Is there another link or can the matter be reproduced here please ? Regards, --Royce On Sun, Apr 18, 2010 at 3:46 PM, Joerg Wunsch wrote: > Royce Pereira

[avr-gcc-list] Avrdude hfuse error message (tiny26) ...

2010-04-16 Thread Royce Pereira
Hi, I had posted this issue a year ago, but got no reply. In the meantime, I was using AVR studio for programming, so I forgot about this. Now I'm returning to avrdude, and I again encountered curious problem . My avrdude command line is: >avrdude -p t26 -u -U micro-cntr.hex -U hfuse:w:0xF

Re: [avr-gcc-list] Windows 7 issue ? Avrdude - strange garbage at end of filename

2009-12-23 Thread Royce Pereira
Hi, all, To recap an old thread (see extreme bottom), was getting garbage attached to my hex file name when avrdude read the command line, causing the programming to fail. At that time, I'd just installed the Win 7 RC, so I suspected that was causing the problem. Then the post below said it migh

Re: [avr-gcc-list] WINAVR with GCC 4.3.3

2009-06-22 Thread Royce Pereira
Hi, I have a project built around a Tiny26. It was compiled with WinAVR-20070525. I'd stuck to this version for a long time, until recently when I upgraded to 20090313. Soon after, I had to recompile my project due some change in specs. Imagine my shock when AVRstudio complained that the he

Re: [avr-gcc-list] Windows 7 issue ? Avrdude - strange garbage at endof filename

2009-04-27 Thread Royce Pereira
Hi, -- From: "Weddington, Eric" Sent: Monday, April 27, 2009 10:55 PM To: "Royce Pereira" ; Subject: RE: [avr-gcc-list] Windows 7 issue ? Avrdude - strange garbage at endof filename -Original Message- Today

[avr-gcc-list] Windows 7 issue ? Avrdude - strange garbage at end of filename

2009-04-27 Thread Royce Pereira
Hi, Today I decided to try our Windows 7 (beta build 7077). This is the build just before RC1. I aso installed just today WinAVR 2090313. I'm not sure if either one could be at fault. When I try to use Avrdudein the DOS window, or thru a bat file,it reads funny garbage at the end of the **filenam

Re: [avr-gcc-list] inquiry

2009-03-10 Thread Royce Pereira
I dont think there exists a 'lcd.h' file with avr-gcc. You need to write your own lcd code for the lcd you are using. --Royce. - Original Message - From: ankit agarwal To: avr-gcc-list@nongnu.org Sent: Sunday, 08 March, 2009 3:17 PM Subject: [avr-gcc-list] inquiry dear i

Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements?

2009-02-19 Thread Royce Pereira
Hi, - Original Message - From: "David Kelly" To: Sent: Friday, 20 February, 2009 1:30 AM Subject: Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements? Related to another thread: as to why *not* to use an 8051: Doesn't have avr-gcc. But it does have SDCC, a fre

[avr-gcc-list] Auto write calibration bytes

2007-11-23 Thread Royce Pereira
Hi, I'm using AVRdude. While programming, I'm trying to retreive, and then write into the 1st 4 eeprom locations,, the calibration bytes. The device gets programmed. Also the the calibration bytes are read to the specifie file, but fails while writing to eeprom. The command line, & subsequent

Re: [avr-gcc-list] WinAVR error ?

2007-11-05 Thread Royce Pereira
Hi Eric, - Original Message - From: "Royce Pereira" <[EMAIL PROTECTED]> To: "Eric Weddington" <[EMAIL PROTECTED]>; "'Dean Hi, - Original Message - From: "Eric Weddington" <[EMAIL PROTECTED]> Recently I posted a r

Re: [avr-gcc-list] WinAVR error ?

2007-11-05 Thread Royce Pereira
Hi, - Original Message - From: "Eric Weddington" <[EMAIL PROTECTED]> To: "'Dean Ferreyra'" <[EMAIL PROTECTED]>; "'Royce Pereira'" <[EMAIL PROTECTED]> Cc: Sent: Monday, 05 November, 2007 7:28 PM Subject: RE: [avr-gcc-l

[avr-gcc-list] WinAVR error ?

2007-11-03 Thread Royce Pereira
Hi, I found that this problem was removed after uninstalling 'Spyware Doctor' from my PC. Is there anyone else with similar experience - who knows what settings to do in Spyware Doct ? Thanks, --Royce - Original Message - From: "Royce Pereira" <[EMAIL PROTECT

[avr-gcc-list] WinAVR error ?

2007-11-03 Thread Royce Pereira
Hi all, I am recently getting this error message from Win AVR: AllocationBase 0x0, BaseAddress 0x7159, RegionSize 0x17, State 0x1 C:\WinAVR-20070525\utils\bin\rm.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 487 Can anyone help? Thanks ! --Royce

[avr-gcc-list] Order of bytes

2007-10-07 Thread Royce Pereira
Hi, Sorry for my rusty C, In the following union union { uint32_t as_ul; struct { uint8_t by0; uint8_t by1; uint8_t by2; uint8_t by3; } asbyte; } lvar; What is the order

Re: [avr-gcc-list] Warning message

2007-10-03 Thread Royce Pereira
Hi, On Wed, 03 Oct 2007 20:58:55 +0530, David Kelly <[EMAIL PROTECTED]> wrote: > On Wed, Oct 03, 2007 at 08:49:31PM +0530, Royce Pereira wrote: >> > >> > #define CHK_1307 ((uint8_t) 0x55) >> > >> Actually this worked: >> >> Changing

Re: [avr-gcc-list] Warning message

2007-10-03 Thread Royce Pereira
Hi, On Wed, 03 Oct 2007 19:57:54 +0530, David Kelly <[EMAIL PROTECTED]> wrote: > On Tue, Oct 02, 2007 at 11:25:30PM -0700, Dave N6NZ wrote: >> >> >#define CHK_13070x55 > >> > if(twi_read() != ~CHK_1307) ok= 0; >> >// ^^ >> >//The offending line. >> I believe what is going on

[avr-gcc-list] Warning message

2007-10-02 Thread Royce Pereira
Hi all, What does the following warning mean? warning: comparison is always true due to limited range of data type Here is the context: I have a AVR I'm trying to connect to a DS1307 RTC chip via TWI. To check the integrity of the DS1307 internal ram, I plan to write 4 bytes, 0x55,0xaa,0x55,0x

Re: [avr-gcc-list] Problem with delay loop

2007-10-02 Thread Royce Pereira
Hi, David, On Wed, 03 Oct 2007 02:24:16 +0530, David Kelly <[EMAIL PROTECTED]> wrote: > So? Why did *you* change compilers if the old one did what you wanted? > If it doesn't do what you want then its your choice whether to change > your code to conform or to revert to the compiler that did what

Re: [avr-gcc-list] Problem with delay loop

2007-10-02 Thread Royce Pereira
Hi, On Mon, 01 Oct 2007 13:02:32 +0530, David Brown <[EMAIL PROTECTED]> wrote: > Royce Pereira wrote: >> >> So I have to write more 'C' code :) to get the same stuff done, in >> the 'new & smarter' compiler! Interesting. >> >> Doe

Re: [avr-gcc-list] Problem with delay loop

2007-09-28 Thread Royce Pereira
Hi all, OK fine I agree. we have to use 'volatile' and all. But why must it generate such horrid code... (I reproduce the comparison again below to get the *real* issue into focus) The compiler output with the 'correct' code ('volatile' used): //-

Re: [avr-gcc-list] Problem with delay loop

2007-09-28 Thread Royce Pereira
Hi Klaus, On Fri, 28 Sep 2007 14:57:14 +0530, Klaus Rudolph <[EMAIL PROTECTED]> wrote: > Please use optimizer! Something like -O2 -O3 -Os ... as you need! My makefile already has OPT = s > > Simplify your delay loop: > void delay(volatile word cnt) { ... > Already tried that. No change. If it's

Re: [avr-gcc-list] Problem with delay loop

2007-09-28 Thread Royce Pereira
Hi, On Fri, 28 Sep 2007 14:47:26 +0530, David Brown <[EMAIL PROTECTED]> wrote: > > This is probably in the FAQ somewhere - if not, it should be! > > The compiler is smart enough to figure out that your delay function does > no useful work - thus the optimiser does not generate any code. This is

Re: [avr-gcc-list] Problem with delay loop

2007-09-28 Thread Royce Pereira
p is: > > void delay(unsigned int del_cnt) { > volatile unsigned int n = del_cnt; > while (n--); > } So I have to write more 'C' code :) to get the same stuff done, in the 'new & smarter' compiler! Interesting. Doesn't seem right, some how.

Re: [avr-gcc-list] Problem with delay loop

2007-09-28 Thread Royce Pereira
Hi, On Fri, 28 Sep 2007 13:42:18 +0530, Klaus Rudolph <[EMAIL PROTECTED]> wrote: > The code has been optimized. Well done! > If you need the variable access use 'volatile' > Why does it get optimised? I understand the meaning of 'volatile', but why is it required here ? It is clear that the varia

[avr-gcc-list] Problem with delay loop

2007-09-28 Thread Royce Pereira
Hi all, In the latest WinAVR (avr-gcc (GCC) 4.1.2 (WinAVR 20070525) I found this. Check this out: //== void delay(unsigned del_cnt) { while(del_cnt--); return; } //=== Compiles as (from the .lss file): //=== void

Re: [avr-gcc-list] Example programs missing in WinAVR 20070525

2007-09-19 Thread Royce Pereira
Hi Blake, On Wed, 19 Sep 2007 20:01:03 +0530, Blake Leverett <[EMAIL PROTECTED]> wrote: > It's probably on your system somewhere, but I've attached it anyway. Along > with the makefile that was with it. > Yes, it's in C:\WinAVR-20070525\examples\twitest\ and not in the folder mentioned in the

[avr-gcc-list] Example programs missing in WinAVR 20070525

2007-09-19 Thread Royce Pereira
Hi, Attempting to use the AVR TWI interface for the 1st time, I discovered that the example TWI code as described in the AVR-LIBC manual is missing - the link (HTML version) says it is at C:/WinAVR-20070525/doc/avr-libc/examples/twitest/twitest.c but the link wont work , & I couldn't find the

Re: [avr-gcc-list] Hello

2007-05-03 Thread Royce Pereira
Hi, On Thu, 03 May 2007 10:19:18 +0530, Prashant D. Kharade <[EMAIL PROTECTED]> wrote: > Dear Sir, No 'Sir' here this is a group of users of avr-gcc, like you. > > I am totally new user of AVR GCC. Welcome! > I have downloaded winavr version 4.1.1 from net on May 02,2007. > > I also wrote a s

Re: [avr-gcc-list] array of pointers to functions - ok in RAM, fails in flash

2007-02-25 Thread Royce Pereira
Hi David, oops! (fun= pgm_read_word(&do_func[func_no]))(); //func_no is the element no.. ... should be (func= . Bye, --Royce > > > ___ > AVR-GCC-list mailing list > AVR-GCC-list@nongnu.org > http://lists.nongnu.

Re: [avr-gcc-list] array of pointers to functions - ok in RAM, fails in flash

2007-02-25 Thread Royce Pereira
Hi David, On Mon, 26 Feb 2007 02:07:54 +0530, David McNab <[EMAIL PROTECTED]> wrote: > Surely it can't be too hard to place a table of function pointers into > flash, retrieve function pointers from this table, and 'call' them. > I remember as a newbie to the list, I'd asked this very question

Re: [avr-gcc-list] Installing WinAVR 20070122 broke older3.4.5install?

2007-01-31 Thread Royce Pereira
Hi all, On Thu, 01 Feb 2007 00:45:09 +0530, Gavin Jackson <[EMAIL PROTECTED]> wrote: > There is another key located at: > HKEY_LOCAL_MACHINE\SOFTWARE\WinAVR > > What I've done to work around this problem is have a > generic name in the registry and rename the folder the I've not been able to com

Re: [avr-gcc-list] Bit-wise structure and unions

2006-11-24 Thread Royce Pereira
Hi, On Wed, 22 Nov 2006 23:14:21 +0530, kitts <[EMAIL PROTECTED]> wrote: > On Wednesday 22 November 2006 05:57 IST, David Kelly wrote: >> Some MCU families (believe HC12 is one) have a separate register for   >> reading the port's actual input/external value, and another for   >> reading output la

Re: [avr-gcc-list] C coding question

2006-10-06 Thread Royce Pereira
Hi, On Fri, 06 Oct 2006 13:39:36 +0530, Nigel Winterbottom <[EMAIL PROTECTED]> wrote: >> -Original Message- >> From: larry barello > >> Specifically I was looking for an efficient way to encode >> >> (bSomeBool ^ (SomeBitMask & SomeVariable)) >> >> to get a true/false output. > --

[avr-gcc-list] Value negated before call ?

2006-09-29 Thread Royce Pereira
Hi all, I have a delay loop thus: // void delay(unsigned long count) { while(count) --count; } // When I call : delay(2*33000); I get: 878: 60 ed ldi r22, 0xD0 ; 208 87a: 71 e0 ldi

Re: [avr-gcc-list] BUG in WINAVR?

2006-08-12 Thread Royce Pereira
hi, so what was the problem? --royce On Sat, 12 Aug 2006 08:00:36 +0530, Trampas <[EMAIL PROTECTED]> wrote: > I went and rewrote the code and it all works now. > > Trampas > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Trampas > Sent: Friday, A

Re: [avr-gcc-list] suggestion

2006-07-05 Thread Royce Pereira
Hi, On Wed, 05 Jul 2006 17:57:50 +0530, <[EMAIL PROTECTED]> wrote: > I'm a total newbie to avr-gcc and just compiled a first program. It merely > fits the program memory so I've started to optimize.. > > In my code there lots of places where 1-2-3 bits are flipped in I/O port: > > > > My suggestio

Re: [avr-gcc-list] C Escape sequence.

2006-05-24 Thread Royce Pereira
Hu Justin, should'nt the array be declared as const unsigned char Ut doesnt matter here as I wont be doing any math or arithmetic on the elements. If it was not a string, then we would have to be more careful. --Royce. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

[avr-gcc-list] C Escape sequence.

2006-05-24 Thread Royce Pereira
Hi, Sorry for my rusty C, but how does one insert a hex value into a string? I tried const char messg[] PROGMEM= "Temp= \xdfC"; //display temperature in deg Centigrade and const char messg[] PROGMEM= "Temp= \xdf\C"; I'm using a 16x2 LCD, where 0xdf is the hex value of the little 'o' degree

Re: [avr-gcc-list] Suggestion

2006-05-01 Thread Royce Pereira
Hi, On Tue, 02 May 2006 01:07:29 +0530, Joerg Wunsch <[EMAIL PROTECTED]> wrote: "Royce Pereira" <[EMAIL PROTECTED]> wrote: Can I get the same in my AVR-GCC .lst, .lss etc output files thru my makefile ? Even though Ned already showed you a way, I'm curious: what a

Re: [avr-gcc-list] Suggestion

2006-05-01 Thread Royce Pereira
Hi Ned, On Mon, 01 May 2006 19:08:13 +0530, Ned Konz <[EMAIL PROTECTED]> wrote: Can I get the same in my AVR-GCC .lst, .lss etc output files thru my makefile ? Sure... just postprocess the files to add a header. Attached is a Perl script that adds such a header. Great - Thanks ! --Royce

[avr-gcc-list] Suggestion

2006-04-29 Thread Royce Pereira
Hi, I am using besides AVR-GCC, SDCC(freeware mcs51 compiler). The latter generates the following lines at the start of every output, which I find very useful - the date & time actually: 1 ; 2 ; File Creat

Re: [avr-gcc-list] Data in ROM

2006-04-23 Thread Royce Pereira
Hi, On Sun, 23 Apr 2006 20:37:18 +0530, Abdul Malik Khan <[EMAIL PROTECTED]> wrote: I have tried const unsigned char mask[] = {1, 2, 4, 8, 16, 32, 64, 128}; but compiler places it in RAM istead of ROM. --- Have you read the avr-libc manual & the FAQ therei

Re: [avr-gcc-list] [ANN] WinAVR 20060125 Released

2006-01-28 Thread Royce Pereira
Hi, On Sat, 28 Jan 2006 00:26:57 +0530, Eric Weddington <[EMAIL PROTECTED]> wrote: in the last WinAVR, I used to get a summary of memory usage at the end of the compilation. The new 2006 version does not do this. Yes, and my apologies for not explaining it properly in the user manual. Befor

Re: [avr-gcc-list] [ANN] WinAVR 20060125 Released

2006-01-28 Thread Royce Pereira
On Thu, 26 Jan 2006 04:39:26 +0530, Eric Weddington <[EMAIL PROTECTED]> wrote: Ok, let's see if anything is broken on this one. Please let me know ASAP if you see anything wrong. Or if anything looks right for that matter. in the last WinAVR, I used to get a summary of memory usage at the end

Re: [avr-gcc-list] compiler not generating IO

2006-01-26 Thread Royce Pereira
On Fri, 27 Jan 2006 04:42:22 +0530, developer2112 (sent by Nabble.com) <[EMAIL PROTECTED]> wrote: Problem is solved... I was using the internal clock, but I didn't think that would stop me from getting a 2400 baudratebut I found that if I disconnect the cable for the port and jiggle it a

Re: [avr-gcc-list] [ANN] WinAVR 20060125 Released

2006-01-26 Thread Royce Pereira
On Thu, 26 Jan 2006 04:39:26 +0530, Eric Weddington <[EMAIL PROTECTED]> wrote: Ok, let's see if anything is broken on this one. Please let me know ASAP if you see anything wrong. Or if anything looks right for that matter. Just noticed that when i click avr libc shortcut from start>pograms, it

Re: [avr-gcc-list] Using flash memory for storing large look up tables

2006-01-24 Thread Royce Pereira
Hi, Whew! Have you read the avr-libc manual & the FAQ therein? Please read up the useful macros provided for program memory store & access! If you would have, you would have tried this: (The [2][4] are for example): // unsigned todayssunset; const unsigned sunrise[2][4] PROGME

Re: [avr-gcc-list] Using flash memory for storing large look up tables

2006-01-24 Thread Royce Pereira
Hi, There was an error in my example, corrected below! // unsigned todayssunset; const unsigned sunrise[2][4] PROGMEM ={ 1,2,3,4,6,7,8,9 }; todayssunset= pgm_read_byte(&sunrise[x][y]); Sorry, thats: todayssunset= pgm_read_word(&sunrise[x][y]); //---

Re: [avr-gcc-list] New WinAVR release

2006-01-12 Thread Royce Pereira
Hi, On Thu, 12 Jan 2006 23:54:03 +0530, Eric Weddington <[EMAIL PROTECTED]> wrote: 2. In a Win98-SE installation, paths were not added to the environment automatically (more serious). We (Colin and I) have had difficulties with that one. I'm not sure that I can reliably add paths on a Win98

Re: [avr-gcc-list] New WinAVR release

2006-01-12 Thread Royce Pereira
Hi, On Fri, 13 Jan 2006 01:13:42 +0530, Eric Weddington <[EMAIL PROTECTED]> wrote: manual, intructions how to add paths manually, or at least, a list of paths to be added? Have you looked in the WinAVR User Manual? Did I forget to have a section about that? There is section that says

Re: [avr-gcc-list] New WinAVR release

2006-01-12 Thread Royce Pereira
On Thu, 12 Jan 2006 13:42:38 +0530, David Brown <[EMAIL PROTECTED]> wrote: 2. In a Win98-SE installation, paths were not added to the environment automatically (more serious). I can see how setting the path at install time can be convenient for some people, but it should never be more than

[avr-gcc-list] New WinAVR release

2006-01-11 Thread Royce Pereira
Hi, Good to know the new WinAVR relase might be out next week. Thanks Eric ! Just to summarise a couple o'gaffs from the last version (so they dont repeat). But I'm sure this stuff is corrected in the new version. 1. Even after unselecting PN during installation, the shortcut for PN still a

Re: [avr-gcc-list] Is there a recommended way of dealing with updates & different versions of avr-libc in WinAVR - Sorted

2005-11-20 Thread Royce Pereira
Hi all, On Mon, 21 Nov 2005 04:52:25 +0530, Don Ingram <[EMAIL PROTECTED]> wrote: According to Bingo at avrfreaks.com ... 1 : Backup/Copy your /avr directory to a safe place , or at least the "lib and include" directories within the /avr directory as they are going to be overwritten

Re: [avr-gcc-list] how to infer lsl instruction...

2005-11-16 Thread Royce Pereira
Hi On Wed, 16 Nov 2005 13:00:03 +0530, varsha <[EMAIL PROTECTED]> wrote: Hello all, i'm using avr-gcc (GCC) 3.4.3 compiler and Atmega 16 as a MCU. for crc calculation i'm using inline assembly code. for example.. __asm__ __volatile__ ( "lsl r11""\n\t" "rol r12""\n\t"

Re: [avr-gcc-list] How to (efficeiently !!!) test a bit within a multi-byte integer ?

2005-11-03 Thread Royce Pereira
hI, On Fri, 04 Nov 2005 11:41:35 +0530, Vincent Trouilliez <[EMAIL PROTECTED]> wrote: So that's indeed about 20 times faster. Although I still don't get why it can't just use one single SBRC/S instruction instead of these 4 cp or -- Have you tried creating a structu

Re: [avr-gcc-list] generating a delay

2005-10-24 Thread Royce Pereira
Hi, On Mon, 24 Oct 2005 12:37:40 +0530, varsha <[EMAIL PROTECTED]> wrote: what is the proper way to write a delay routine? I use this: // void delay(unsigned count) { while(count--); return; } //==

Re: [avr-gcc-list] First steps with avr-gcc

2005-10-22 Thread Royce Pereira
Hi, On Sat, 22 Oct 2005 21:25:49 +0530, Thomas Keller <[EMAIL PROTECTED]> wrote: > By default, the compiler is setup to use 16 bit ints. The C language > requires that the & operation promote both sides to ints. I agree, but I believe that when the end result is to be assigned to an 8 bit

Re: [avr-gcc-list] First steps with avr-gcc

2005-10-21 Thread Royce Pereira
Hi, On Fri, 21 Oct 2005 23:52:23 +0530, Dave Hylands <[EMAIL PROTECTED]> wrote: By default, the compiler is setup to use 16 bit ints. The C language requires that the & operation promote both sides to ints. I agree, but I believe that when the end result is to be assigned to an 8 bit (esp.

Re: [avr-gcc-list] very simple program

2005-10-02 Thread Royce Pereira
Hi, On Sun, 02 Oct 2005 23:05:06 +0530, Parthasaradhi Nayani <[EMAIL PROTECTED]> wrote: In order to set the bit, you need to logical OR the bit. DDRB |= _BV (PB0); ..etc. Actually thats not the problem, you dont have to OR if you only want to set 1 bit & dont care abt the others, Maybe

Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?

2005-09-17 Thread Royce Pereira
Hi, but now I am having to initialize an array of structures, and I am getting lost :-/ Here is my declaration : ui.h //data type for one engine parameter struct param { chardesc[11]; //parameter name ("Engine Speed", "Coolant Temp",...) char

Re: [avr-gcc-list] Re: [avr-libc-dev] RFD: more avr-libc API changes

2005-09-08 Thread Royce Pereira
Hi, On Fri, 09 Sep 2005 01:00:44 +0530, Joerg Wunsch <[EMAIL PROTECTED]> wrote: As Zane D. Purvis wrote: How about changing the name to "ISR," which would do the same thing as the existing "SIGNAL"? Then, SIGNAL and INTERRUPT can both be deprecated (avoiding future confusion). It has b

Re: [avr-gcc-list] SIGNAL or INTERRUPT ?!

2005-09-04 Thread Royce Pereira
Hi, On Mon, 05 Sep 2005 00:52:08 +0530, Joerg Wunsch <[EMAIL PROTECTED]> wrote: For the rare cases where __attribute__((interrupt)) is really needed, One typical case where I use it is to interrupt my keyboard/display scanning interrupt routine, whenever a zero crossover of mains occurs.

Re: [avr-gcc-list] SIGNAL or INTERRUPT ?!

2005-09-04 Thread Royce Pereira
Hi, On Mon, 05 Sep 2005 00:26:11 +0530, Joerg Wunsch <[EMAIL PROTECTED]> wrote: http://www.sax.de/~joerg/avr-libc-user-manual/group__avr__interrupts.html Yep, I find it a lot better/clearer :-) Thanks for the feedback, I committed the new description to CVS. Just asking - why not have

Re: [avr-gcc-list] SIGNAL or INTERRUPT ?!

2005-09-04 Thread Royce Pereira
Hi, On Sun, 04 Sep 2005 11:26:49 +0530, Joerg Wunsch <[EMAIL PROTECTED]> wrote: The only fix that is needed is to state prominantly in the first few few paragraphs what the difference is, and all confusion will disappear. Nope, I rather did what we (avr-libc-dev) agreed quite some time ago

Re: [avr-gcc-list] SIGNAL or INTERRUPT ?!

2005-09-03 Thread Royce Pereira
Hi, On Sat, 03 Sep 2005 21:36:23 +0530, Vincent Trouilliez <[EMAIL PROTECTED]> wrote: Hi all, new to the list and avr C programming... first question on here, about interrupt routines... In the relevant part of the avr-libc PDF, section 6.20.1, it says : "An interrupt routine is defined with

Re: [avr-gcc-list] programming SOIC devices.

2005-08-23 Thread Royce Pereira
On Wed, 24 Aug 2005 08:22:53 +0530, Mitchell James <[EMAIL PROTECTED]> wrote: Hi, This is a little off subject I cant answer your query, but AVR-CHAT is a better place for non AVR-GCC queries :) --Royce. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ _

Re: [avr-gcc-list] SIGNAL and INTERRUPT overhead

2005-08-23 Thread Royce Pereira
On Tue, 23 Aug 2005 13:49:32 +0530, Bernard Fouché <[EMAIL PROTECTED]> wrote: Benjamin Titzer wrote: Sounds to me like the design of GCC and the constraints of a particular calling convention do not allow it to do something smart here. I think the solution that would satisfy most everyon

  1   2   >