[avr-libc-dev] [bug #32086] libm library not linked

2011-01-10 Thread Joerg Wunsch
Update of bug #32086 (project avr-libc): Status: Need Info = Invalid Open/Closed:Open = Closed ___ Follow-up Comment #5: Now you can see

[avr-libc-dev] Re: SVN repository state after savannah being hacked

2010-12-06 Thread Joerg Wunsch
As Joerg Wunsch wrote: Please do not commit anything to the repository right now. Sylvain Beucler restored the SVN repository, so it's ready to go again. -- cheers, Jorg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/NIC: JW11-RIPE Never

[avr-libc-dev] SVN repository state after savannah being hacked

2010-11-30 Thread Joerg Wunsch
As some of you might have noticed, savannah has been the vitim of a hacker last weekend. While the admins restored backup copies of the SVN repository, it appears the current SVN repo lacks the latest commits. As I've got a sane backup of the repository that is newer than the repository they

[avr-libc-dev] [bug #31768] Difference in address between using a direct var or through a struct

2010-11-25 Thread Joerg Wunsch
Update of bug #31768 (project avr-libc): Status:None = Works For Me Assigned to:None = aboyapati ___ Follow-up Comment #1: To me, it seems

[avr-libc-dev] [bug #31613] In pgm_read_byte the address is a byte instead of an int

2010-11-10 Thread Joerg Wunsch
Update of bug #31613 (project avr-libc): Status:None = Invalid ___ Follow-up Comment #1: You are confusing the pointer with the object it points to: the object is 8 bits wide, but the

[avr-libc-dev] [bug #31613] In pgm_read_byte the address is a byte instead of an int

2010-11-10 Thread Joerg Wunsch
Update of bug #31613 (project avr-libc): Open/Closed:Open = Closed ___ Reply to this item at: http://savannah.nongnu.org/bugs/?31613 ___

[avr-libc-dev] [bug #31613] In pgm_read_byte the address is a byte instead of an int

2010-11-10 Thread Joerg Wunsch
Follow-up Comment #3, bug #31613 (project avr-libc): but I cannot see an error in the attached example. The error is: unsigned int *ptab; Make this: unsigned char *ptab; and it will work as expected. The pointer *points* to a char object, yet the pointer itself (i.e., the temporary

[avr-libc-dev] [bug #31267] misleading header iom128rfa1.h

2010-10-07 Thread Joerg Wunsch
Follow-up Comment #1, bug #31267 (project avr-libc): Well, our policy is that the header file matches the device XML file, so Atmel would have to change the XML file first. However, this case is particularly difficult. As I understand it, the vector is physically there, so we cannot just omit

Re: [avr-libc-dev] _delay_us() - Documentation for maximum possible delay

2010-10-04 Thread Joerg Wunsch
As Joerg Wunsch wrote: Also, any reason why _ticks is chosen to be uint8_t type (but not uint16_t or uint32_t)? Because the underlying _delay_loop_1 uses an 8-bit value. p.s.: Of course, that doesn't apply to the case where the underlying implementation can be based

Re: [avr-libc-dev] _delay_us() - Documentation for maximum possible delay

2010-10-04 Thread Joerg Wunsch
As Boyapati, Anitha wrote: The above link says, the maximal possible delay for _delay_us() is 768 us / F_CPU in MHz. However, as per the below computation, it should be 765us. (Max value of _ticks when it is of uint8_t type is 255.) No, the max value is 256, even though it is represented as

Re: [avr-libc-dev] _delay_us() - Documentation for maximum possible delay

2010-10-04 Thread Joerg Wunsch
As Boyapati, Anitha wrote: I am trying to see what factors influenced to go for a 16-bit counter in one case and only 8-bit counter in the other. Why not 16-bit counter for both? _delay_loop_2 has a coarser granularity (4 ticks vs. 3 for _delay_loop_1). Basically, both these functions were

Re: [avr-libc-dev] How many bits wide is __data_load_end?

2010-10-03 Thread Joerg Wunsch
As Simone Zamboni wrote: Sorry, my fault. Change the =r constraint into =a. Shouldn't be =d? ldi instruction requires upper registers from r16 to r31 but =a constrains registers only to r23 (works, but limited). OK. I only looked at the table, describing a as simple upper registers, and

Re: [avr-libc-dev] How many bits wide is __data_load_end?

2010-09-29 Thread Joerg Wunsch
As Bob Paddock wrote: From the error that I'm getting, below, I belive that __data_load_end is only 16 bits wide? No, obviously it's wider: 0x0003c370 __data_load_start = LOADADDR (.data) 0x0003c378 __data_load_end = (__data_load_start + SIZEOF (.data)) (That's from a map file.) Note

Re: [avr-libc-dev] How many bits wide is __data_load_end?

2010-09-29 Thread Joerg Wunsch
As Bob Paddock wrote:  0x0003c370   __data_load_start = LOADADDR (.data)  0x0003c378   __data_load_end = (__data_load_start + SIZEOF (.data)) My map files has: 0xff22__data_load_start = LOADADDR (.data) 0xffc0

Re: [avr-libc-dev] How many bits wide is __data_load_end?

2010-09-29 Thread Joerg Wunsch
As Bob Paddock wrote: Results in Register number above 15 required, a couple of times. Sorry, my fault. Change the =r constraint into =a. -- cheers, Jorg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/NIC: JW11-RIPE Never trust an

[avr-libc-dev] [bug #31136] Missing clock_prescale_set() declaration for ATtiny family

2010-09-26 Thread Joerg Wunsch
Update of bug #31136 (project avr-libc): Status:None = Duplicate Open/Closed:Open = Closed ___ Follow-up Comment #1: Duplicate for bug

Re: [avr-libc-dev] Help with __ASSEMBLER__ usage in device header files

2010-09-21 Thread Joerg Wunsch
As Boyapati, Anitha wrote: Can someone explain why this is intended only for ADC Because adc is an opcode, so it should not be hidden by a macro (as opcodes are case-insensitive). and that too only for some devices? (For e.g., iom32u4.h doesn't have) That's an oversight then. -- cheers,

Re: [avr-libc-dev] mismatch of supported devices in avr-libc 1.7.0 and gcc-4.5.1

2010-09-07 Thread Joerg Wunsch
As Rolf Ebert wrote: I have just rebuilt a new compiler from pristine gcc-4.5.1 sources. If I want to compile avr-libc-1.7.0 the compiler stops when building gcrt1.o for attiny2313a: unknown MCU specified. The problem is that GCC doesn't exit with an error when encountering an unknown -mmcu

[avr-libc-dev] [bug #30783] Missing prototype in power.h

2010-08-15 Thread Joerg Wunsch
Update of bug #30783 (project avr-libc): Assigned to:None = joerg_wunsch Open/Closed:Open = Closed Fixed Release:None = 1.7.1

[avr-libc-dev] [bug #30783] Missing prototype in power.h

2010-08-15 Thread Joerg Wunsch
Update of bug #30783 (project avr-libc): Status:None = Fixed ___ Reply to this item at: http://savannah.nongnu.org/bugs/?30783 ___

[avr-libc-dev] [bug #30757] CPU_t not implemented in iox128a1.h

2010-08-12 Thread Joerg Wunsch
Update of bug #30757 (project avr-libc): Status:None = Duplicate Assigned to:None = aboyapati ___ Follow-up Comment #1: This appears to be

[avr-libc-dev] [bug #30757] CPU_t not implemented in iox128a1.h

2010-08-12 Thread Joerg Wunsch
Follow-up Comment #3, bug #30757 (project avr-libc): This appears to be intentional: r2116 | aboyapati | 2010-04-06 05:57:30 +0200 (Tue, 06 Apr 2010) | 20 lines 2010-03-31 Anitha Boyapati anitha.boyap...@atmel.com Fix bug #28901. * include/avr/iox128a1.h - Removed GPIO and

Re: [avr-libc-dev] Stack corruption with AVR toolchain

2010-08-12 Thread Joerg Wunsch
As DarkDragon wrote: I initially submitted this bug under GCC bugzilla, but upon further investigation, it looks like this comes from AVR-LibC as I can take the LibC from the toolchain, insert it in WinAVR2010 and get the same stack prologue code. Please submit some code (and compilation

[avr-libc-dev] [bug #30745] Version 1.6.5 Docu on Webside, Version 1.6.7 in Download of WinAVR-20100110

2010-08-11 Thread Joerg Wunsch
Update of bug #30745 (project avr-libc): Status:None = Fixed Assigned to:None = joerg_wunsch Open/Closed:Open = Closed Fixed Release:

[avr-libc-dev] [bug #29704] documentation links on AVR Libc Home Page point to old version

2010-08-11 Thread Joerg Wunsch
Update of bug #29704 (project avr-libc): Status:None = Fixed Assigned to:None = joerg_wunsch Open/Closed:Open = Closed Fixed Release:

[avr-libc-dev] [patch #6951] Time posix patch.

2010-07-21 Thread Joerg Wunsch
Follow-up Comment #8, patch #6951 (project avr-libc): There are some news on my patch? It would definitely speed up the acceptance of the patch if you were digging up the licenses of all newly added files, and place an appropriate copyright+license statement on top of each file. Ideally, they

[avr-libc-dev] [bug #30363] _delay_xx() functions in util/delay.h are broken

2010-07-18 Thread Joerg Wunsch
Follow-up Comment #2, bug #30363 (project avr-libc): The define define value for __HAS_DELAY_CYCLES in the new util/delah.h seems backwards. This define is generated by the configure script, as it is probing the compiler features. This is the only way I could see how to find out whether

Re: [avr-libc-dev] gcc4.6 vs avr-libc-1.6.8?

2010-06-17 Thread Joerg Wunsch
As Weddington, Eric wrote: I would actually suggest using GCC 4.4.3. It's gotten more testing than the bleeding edge. Nevertheless, wouldn't an ICE be worth a (GCC) bug report anyway? -- cheers, Jorg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/

Re: [avr-libc-dev] LPM instructions in optimized code causes unintended behavior in execution

2010-06-16 Thread Joerg Wunsch
As Thomas Carsten Franke wrote: I did not restored the NVM CMD because I didn't know that it would has to be. This is correct. We recently added a note to the documentation in the header file avr/pgmspace.h telling that on Xmega devices, all the functions will only work as designed if NVM_CMD

Re: [avr-libc-dev] LPM instructions in optimized code causes unintended behavior in execution

2010-06-16 Thread Joerg Wunsch
As Wouter van Gulik wrote: Although true, I rather think this is a GCC bug. The avr instruction documentation says LPM R31, Z+ has undefined results. In the example it was oke to use LPM R31, Z. IMHO, the respective code is hand-crafted asm code in avr-libc. Please file a bug report. --

Re: [avr-libc-dev] LPM instructions in optimized code causes unintended behavior in execution

2010-06-16 Thread Joerg Wunsch
As Wouter van Gulik wrote: IMHO, the respective code is hand-crafted asm code in avr-libc. Are you sure? The code is about a jump table, is that in avr-libc? Errm, you are right... -- cheers, Jorg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/

Re: [avr-libc-dev] Inclusion of far pointer library (patch #6352) broke avr-libc build

2010-06-13 Thread Joerg Wunsch
As Joerg Wunsch wrote: That's my fault and shows clearly how unexperienced I am. Next time, it's as simple as running one ./bootstrap ./configure --build=`./config.guess` --host=avr make cycle with the patched header file for a first test. Speaking about simple tests: after adding

Re: [avr-libc-dev] Inclusion of far pointer library (patch #6352)broke avr-libc build

2010-06-13 Thread Joerg Wunsch
As Jan Waclawek wrote: Maybe a bit more narrative than standard documentation, but I wanted to spawn a discussion first, I did not expect it will be included that soon. Jan, we all appreciate your effort and contributions, but please, if you want something discussed, start the discussion

[avr-libc-dev] [bug #30104] power.h - Missing power_usart1_/enable/disable() functions for ATmega644

2010-06-10 Thread Joerg Wunsch
Update of bug #30104 (project avr-libc): Status:None = Fixed Assigned to:None = joerg_wunsch Open/Closed:Open = Closed Fixed Release:

[avr-libc-dev] [bug #30018] Errors in include files

2010-06-09 Thread Joerg Wunsch
Update of bug #30018 (project avr-libc): Status:None = Fixed Assigned to:None = joerg_wunsch Open/Closed:Open = Closed Fixed Release:

[avr-libc-dev] [bug #20778] strtod problems in ATmega2560

2010-06-09 Thread Joerg Wunsch
Update of bug #20778 (project avr-libc): Status:None = Works For Me Open/Closed:Open = Closed ___ Follow-up Comment #3: No feedback within

[avr-libc-dev] [bug #19178] Propose: Exact-Delay

2010-06-09 Thread Joerg Wunsch
Update of bug #19178 (project avr-libc): Status:None = Fixed Assigned to:None = joerg_wunsch Open/Closed:Open = Closed Release:

[avr-libc-dev] [bug #22163] Everytime ATOMIC_BLOCK(ATOMIC_RESTORESTATE) compiler generates warning - unused variable 'sreg_save'

2010-06-09 Thread Joerg Wunsch
Update of bug #22163 (project avr-libc): Severity: 3 - Normal = 4 - Important Priority: 3 - Low = 7 - High ___ Reply to this item at:

[avr-libc-dev] [bug #22539] GCC can't find AVR35 object files

2010-06-09 Thread Joerg Wunsch
Update of bug #22539 (project avr-libc): Status:None = Need Info Release:None = 1.6.1 ___ Follow-up Comment #1: We've never heard

Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++)

2010-06-09 Thread Joerg Wunsch
As Dean Camera wrote: Haven't tested it, however I can see how the C++ version would work. I'd argue that the version maintaining the same API as the C version should be the one adopted, since different APIs for C and C++ are a bad thing. Of course, maintaining the same API as the C version

[avr-libc-dev] [bug #26995] .fuses and .bss overlap on the elf file

2010-06-09 Thread Joerg Wunsch
Update of bug #26995 (project avr-libc): Status:None = Need Info ___ Follow-up Comment #1: Not confirmed: $ cat bar.c #include avr/io.h FUSES = { .low = LFUSE_DEFAULT, .high =

[avr-libc-dev] [bug #28108] bug with winavr20090313

2010-06-09 Thread Joerg Wunsch
Update of bug #28108 (project avr-libc): Status:None = Invalid Open/Closed:Open = Closed ___ Follow-up Comment #5: The resulting code

[avr-libc-dev] [bug #26995] .fuses and .bss overlap on the elf file

2010-06-09 Thread Joerg Wunsch
Update of bug #26995 (project avr-libc): Status: Need Info = Works For Me Open/Closed:Open = Closed ___ Reply to this item at:

[avr-libc-dev] [bug #28921] pointer to function 128k flash

2010-06-09 Thread Joerg Wunsch
Update of bug #28921 (project avr-libc): Category:None = Documentation Item Group:None = Documentation Status:None = Fixed Assigned to:

[avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++)

2010-06-09 Thread Joerg Wunsch
As Dean Camera wrote: I concur - it makes sense to move the memory barrier to the definitions of the cli() and sei() macros, (where it is now) There's no good reason why the user would want the compiler to re-order the assembly around cli() and sei(), as that's just asking for trouble.

Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expected inC++)

2010-06-09 Thread Joerg Wunsch
As Stu Bell wrote: Before the rant below, let me make sure: I interpret this command to mean that there is no way for the AVR GCC compiler writers to tell the optimizer, Thou Shalt Not Reorder Code Around This Boundary. Even more, there is no way for any mechanism (even #pragma?) for C

Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expectedinC++)

2010-06-09 Thread Joerg Wunsch
As Weddington, Eric wrote: As a side note, wouldn't declaring some_temp_variable as volatile solve the issue above? I think it does, but it's another pessimization... It forces the function to get a stack frame even if it otherwise doesn't need it, and adds memory access cycles. The

Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expected inC++)

2010-06-09 Thread Joerg Wunsch
As David Brown wrote: Eric suggested making some_temp_variable volatile, which is the traditional way to enforce ordering in C programming. Strictly speaking, you don't have to make it volatile - it's enough to make sure it is in memory if cli() and sei() have memory blocks. Yes, but again:

Re: [avr-libc-dev] RE: [bug #30091] Header file generation script couldgenerate garbage

2010-06-09 Thread Joerg Wunsch
As Weddington, Eric wrote: The problem is actually in the original XML data, e.g., the ATtiny40.xml file. The data below has extra characters in it (parens, slash) that don't belong, which of course breaks any semblence of a correct format. PIN4 NAME[(PCINT3:ADC3]/NAME

[avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++)

2010-06-09 Thread Joerg Wunsch
As David Brown wrote: It's been a while since I wrote that code! But I still don't know whether I should include it or not. ;-) -- cheers, Jorg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/NIC: JW11-RIPE Never trust an operating system you

[avr-libc-dev] testsuite failures

2010-06-09 Thread Joerg Wunsch
With a bit of fiddling for those testscripts that failed in the AT90S8515 simulation due to resource exhaustion on that rather small controller, the testsuite now causes the following failures: Simulate: math/isinf-01.c atmega128 ... *** simulate failed: 22 Simulate: math/isinf-01.c at90s8515 ...

[avr-libc-dev] [bug #30031] user visible eeprom/ram size constant

2010-06-08 Thread Joerg Wunsch
Update of bug #30031 (project avr-libc): Status:None = Works For Me Assigned to:None = joerg_wunsch Open/Closed:Open = Closed

[avr-libc-dev] [bug #29950] ATtiny167 SPM_PAGESIZE Discrepancy

2010-06-08 Thread Joerg Wunsch
Update of bug #29950 (project avr-libc): Status:None = Fixed Assigned to:None = joerg_wunsch Open/Closed:Open = Closed Fixed Release:

[avr-libc-dev] [patch #7073] util/crc16.h: reduce xmodem-crc from 25 to 22 assembler instructions

2010-06-08 Thread Joerg Wunsch
Update of patch #7073 (project avr-libc): Status:None = Need Info Assigned to:None = joerg_wunsch ___ Follow-up Comment #1: Did you actually

[avr-libc-dev] [patch #6935] Patch for malloc()

2010-06-08 Thread Joerg Wunsch
Update of patch #6935 (project avr-libc): Status:None = Need Info Assigned to:None = joerg_wunsch ___ Follow-up Comment #1: I reimplemented

[avr-libc-dev] [patch #6791] Minor fixes to stdio.h documentation

2010-06-08 Thread Joerg Wunsch
Update of patch #6791 (project avr-libc): Status:None = Done Assigned to:None = joerg_wunsch Open/Closed:Open = Closed

[avr-libc-dev] [patch #6680] Sine, cosine functions

2010-06-08 Thread Joerg Wunsch
Update of patch #6680 (project avr-libc): Assigned to:None = dmix ___ Follow-up Comment #1: Dmitry is our Mr. libm. ___ Reply

[avr-libc-dev] [patch #6690] Shorten calculation of dallas 1-wire crc

2010-06-08 Thread Joerg Wunsch
Update of patch #6690 (project avr-libc): Status:None = Done Assigned to:None = joerg_wunsch Open/Closed:Open = Closed

[avr-libc-dev] [patch #6555] malloc improvement

2010-06-08 Thread Joerg Wunsch
Update of patch #6555 (project avr-libc): Status:None = Done Open/Closed:Open = Closed ___ Follow-up Comment #2: Patch applied,

[avr-libc-dev] [patch #3729] Printf for integers speed up

2010-06-08 Thread Joerg Wunsch
Update of patch #3729 (project avr-libc): Assigned to:joerg_wunsch = dmix ___ Follow-up Comment #6: These are Dmitry's own patches. ___

[avr-libc-dev] [patch #6194] Twitest updated to handle larger EEPROM devices

2010-06-08 Thread Joerg Wunsch
Update of patch #6194 (project avr-libc): Status:None = Done Open/Closed:Open = Closed ___ Follow-up Comment #2: I applied your

[avr-libc-dev] [patch #6891] Add XMega software reset to the FAQ section on software reset

2010-06-08 Thread Joerg Wunsch
Update of patch #6891 (project avr-libc): Status:None = Done Assigned to:None = joerg_wunsch Open/Closed:Open = Closed

[avr-libc-dev] Should cli() imply a memory barrier?

2010-06-08 Thread Joerg Wunsch
I'm about to commit a new header file, avr/cpufunc.h which will include access to CPU (and compiler) functions that don't fit into any other header file. First candidates are _NOP() (has been requested as an enhancement) and _MemoryBarrier() (can sometimes be useful). This raises the question:

[avr-libc-dev] [patch #6935] Patch for malloc()

2010-06-08 Thread Joerg Wunsch
Update of patch #6935 (project avr-libc): Status: Need Info = Wont Do Open/Closed:Open = Closed ___ Follow-up Comment #3: OK, we can close

Re: [avr-libc-dev] Should cli() imply a memory barrier?

2010-06-08 Thread Joerg Wunsch
As Paulo Marques wrote: One thing we could do for the programmers that want to use the raw cli version and know what they are doing is to keep a __cli or __raw_cli version (or some other name) that just emits a single cli instruction. I guess it's simple enough then to just write asm

Re: [avr-libc-dev] Should cli() imply a memory barrier?

2010-06-08 Thread Joerg Wunsch
As Jan Waclawek wrote: _MemoryBarrier() (can sometimes be useful). Is this something already implemented in the compiler, or are you just preparing for future? It's always been there: it's an empty inline asm instruction with a memory clobber. Maybe this sounds trivial, but what about an

[avr-libc-dev] [bug #30085] memcpy_P on XMega does not clr NVM.CMD before copy

2010-06-08 Thread Joerg Wunsch
Update of bug #30085 (project avr-libc): Status:None = Fixed Assigned to:None = joerg_wunsch Open/Closed:Open = Closed Fixed Release:

Re: [avr-libc-dev] Should cli() imply a memory barrier?

2010-06-08 Thread Joerg Wunsch
As Jan Waclawek wrote: I don't know what are similar aspects. It's a little unfair that you repost a message to the list which you've sent me personally only before, and which I've already replied to. I won't have the time to craft a public reply as well, sorry. -- cheers, Jorg

[avr-libc-dev] [bug #27235] malloc: Several things go wrong

2010-06-07 Thread Joerg Wunsch
Follow-up Comment #4, bug #27235 (project avr-libc): Stefan, in bug #27242, you are talking about test cases you've got for this bug here. I'm interested in getting them into the tree, if you still have them. ___ Reply to this item at:

[avr-libc-dev] [bug #27235] malloc: Several things go wrong

2010-06-07 Thread Joerg Wunsch
Follow-up Comment #5, bug #27235 (project avr-libc): Sorry, I confused that with bug #25723. ___ Reply to this item at: http://savannah.nongnu.org/bugs/?27235 ___ Message sent via/by

[avr-libc-dev] [bug #27243] malloc: small error in comment

2010-06-07 Thread Joerg Wunsch
Update of bug #27243 (project avr-libc): Item Group:None = libc code Status:None = Fixed Open/Closed:Open = Closed

[avr-libc-dev] [bug #27242] realloc: serious error when size shrinks

2010-06-07 Thread Joerg Wunsch
Update of bug #27242 (project avr-libc): Status:None = Fixed Open/Closed:Open = Closed ___ Follow-up Comment #3: Thanks,

[avr-libc-dev] [bug #27235] malloc: Several things go wrong

2010-06-07 Thread Joerg Wunsch
Update of bug #27235 (project avr-libc): Status: In Progress = Fixed Open/Closed:Open = Closed ___ Follow-up Comment #6: I backed out your

[avr-libc-dev] [bug #28135] malloc(): expand the last free chunk when expanding __brkval

2010-06-07 Thread Joerg Wunsch
Update of bug #28135 (project avr-libc): Status:None = Works For Me Open/Closed:Open = Closed ___ Follow-up Comment #2: Thanks for your

Re: [avr-libc-dev] Release time soon?

2010-06-07 Thread Joerg Wunsch
As Weddington, Eric wrote: I'm thinking that an avr-libc release ought to be done soon-ish. There have been some recent bug submissions that I want to take a quick look at, and get fixed, say within the next week. Would it be reasonable to target June 4? Sorry for missing the June 4 target,

Re: [avr-libc-dev] Problem with eeprom_write_byte

2010-06-07 Thread Joerg Wunsch
As Matthias Fechner wrote: Is that a wanted behaviour or maybe a bug? The library functions are not meant to be used in an interrupt- controlled access scheme. Users who want interrupt controlled EEPROM writes are expected to create their own library. That doesn't mean it couldn't be useful

Re: [avr-libc-dev] XMEGA

2010-06-07 Thread Joerg Wunsch
As Weddington, Eric wrote: int main () { while (1) { PORTC.OUT = 0x00; PORTD.OUT = 0xff; } } main: /* prologue: function */ /* frame size = 0 */ ldi r26,lo8(1600) ldi r27,hi8(1600) ldi r30,lo8(1632) ldi r31,hi8(1632) ldi r24,lo8(-1)

Re: [avr-libc-dev] Problem with eeprom_write_byte

2010-06-07 Thread Joerg Wunsch
As Matthias Fechner wrote: Or is it a site-effect that this bit it reseted to 0? It's a side-effect of the way it is currently implemented, which simply assumes it owns the EECR register. For the Xmega devices, things are completely different, btw. -- cheers, Jorg .-.-. --...

[avr-libc-dev] [bug #27235] malloc: Several things go wrong

2010-06-04 Thread Joerg Wunsch
Update of bug #27235 (project avr-libc): Status:None = In Progress Percent Complete: 0% = 30% ___ Follow-up Comment #3: Patch for first

Re: [avr-libc-dev] volatie with winavr2010 ?

2010-05-30 Thread Joerg Wunsch
As Leiu wrote: Please tell me why? Because you didn't show us full, compilable code so nobody could ever possibly reproduce your problem. Please use avr-gcc-l...@nongnu.org for that kind of questions. avr-libc-dev is meant for people who like to develop on avr-libc, or have in-depth

Re: [avr-libc-dev] Re: [bug #29964] Possible Incorrect Interrupt Vector Addresses for mega168

2010-05-26 Thread Joerg Wunsch
As Jose Torres wrote: Consider it my first patch proposal. :) OK, fine, but where's the actual (and tested) patch? ;) -- cheers, Jorg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/NIC: JW11-RIPE Never trust an operating system you don't

[avr-libc-dev] [bug #29964] Possible Incorrect Interrupt Vector Addresses for mega168

2010-05-25 Thread Joerg Wunsch
Follow-up Comment #1, bug #29964 (project avr-libc): What do you think is incorrect? ___ Reply to this item at: http://savannah.nongnu.org/bugs/?29964 ___ Message sent via/by Savannah

Re: [avr-libc-dev] USART_RXC_vect and USART_TXC_vect

2010-05-13 Thread Joerg Wunsch
As Karl Edler wrote: The reason why I wanted them unified was so that I could write one piece of UART code that would work with all avr micro-controllers. Well, there are (unfortunately) more stumbling blocks along that road. That starts with older devices naming their registers just UDR,

Re: [avr-libc-dev] USART_RXC_vect and USART_TXC_vect

2010-05-13 Thread Joerg Wunsch
As Jan Waclawek wrote: Again, why couldn't both be listed for the older ones? Because it's extra work, and doesn't gain anything to the end user: older devices (like the ATmega16) have *so many* differences, just renaming the strange IRQ vectors doesn't help. -- cheers, Jorg

Re: [avr-libc-dev] USART_RXC_vect and USART_TXC_vect

2010-05-12 Thread Joerg Wunsch
As Karl Edler wrote: I think that these definitions should be unified. Am I right? Our policy is to match whatever the datasheet uses. As the datasheet of the ATmega16 Co. used USART,TXC, we have it that way, too. I don't think anyone is going to modify these very old datasheets anymore. --

Re: [avr-libc-dev] correct way to specify search path for avr's?

2010-05-10 Thread Joerg Wunsch
As Steve Franks wrote: Anyway, I've figured out my problem - set the library search path, so I could find my libs, but now avr-gcc can't find the libs for the m128. How do I go about merging those two concepts? Normally, you don't have to hack those, they are supposed to be derived from the

[avr-libc-dev] [bug #29774] prologue/epilogue stack pointer manipulation not interrupt safe in XMega

2010-05-05 Thread Joerg Wunsch
Update of bug #29774 (project avr-libc): Status:None = Invalid Open/Closed:Open = Closed ___ Follow-up Comment #1: As you already

Re: [avr-libc-dev] Error building avr-libc 1.6.8 and with gcc 4.5.0

2010-04-28 Thread Joerg Wunsch
(Please subscribe to the list, you'll miss replies otherwise.) As Vidar Vidnes wrote: In file included from ../../../../common/macros.inc:39:0, from ../../../../crt1/gcrt1.S:38: ../../../../include/avr/io.h:404:6: warning: #warning device type not defined Herein lies the

Re: [avr-libc-dev] Re: Ethernet IP networking support?

2010-04-25 Thread Joerg Wunsch
As Ivan Shmakov wrote: So, what's about having, say, htonX () and ntohX () functions in AVR Libc? These are standard [Posix], ... Well, avr-libc doesn't aim to be a subset of Posix, but rather wants to be a C standard library. Anyway, I wouldn't mind adding those to the library,

[avr-libc-dev] [bug #28574] Xmega D ADC struct missing registers

2010-04-15 Thread Joerg Wunsch
Follow-up Comment #10, bug #28574 (project avr-libc): As these reserved locations are part of a C struct, you cannot have holes in them, so the C struct definition must necessarily differ from the XML description (which can simply omit the unused IO registers). Filling these holes with

Re: [avr-libc-dev] Error while running bootstrap from trunk

2010-04-12 Thread Joerg Wunsch
As Boyapati, Anitha wrote: checking whether avr-gcc supports __builtin_avr_delay_cycles... configure: error: link tests are not allowed after AC_NO_EXECUTABLES I am using autoconf-2.64. Strange, must be something that only autoconf 2.64 complains about, 2.62 and 2.63 did work with the

Re: [avr-libc-dev] Error while running bootstrap from trunk

2010-04-12 Thread Joerg Wunsch
As Boyapati, Anitha wrote: checking whether avr-gcc supports __builtin_avr_delay_cycles... configure: error: link tests are not allowed after AC_NO_EXECUTABLES On a second thought, I realized the message is correct, and I can also reproduce it by deinstalling any prior instance of avr-libc.

Re: [avr-libc-dev] Error while running bootstrap from trunk

2010-04-12 Thread Joerg Wunsch
As Joerg Wunsch wrote: Seems I have to rewrite the check for __delay_cycles then. I rewrote that check. Please test it on a Windows host, to make sure I didn't break it there (in addition to the compiler itself, it uses grep which I think is available even in the usual Windows build

Re: [avr-libc-dev] Error while running bootstrap from trunk

2010-04-12 Thread Joerg Wunsch
As Boyapati, Anitha wrote: Configure passes now. There is a build error w.r.t gcrt1.S ../../../../crt1/gcrt1.S:53: Error: non-constant expression in .if statement All statements with 'vector' in gcrt1.S are shown as errors Doesn't happen for me, I can compile the SVN trunk without

Re: [avr-libc-dev] Error while running bootstrap from trunk

2010-04-12 Thread Joerg Wunsch
As Boyapati, Anitha wrote: True. _VECTORS_SIZE is not replaced and hence the error. But this happens for m3000 only. From what I observe, all avr/include/io*.h files except iom3000.h define _VECTORS_SIZE. Since iom3000.h doesn't have this definition, the variable should be defined somewhere.

Re: [avr-libc-dev] Error while running bootstrap from trunk

2010-04-11 Thread Joerg Wunsch
As Boyapati, Anitha wrote: While running bootstrap, I faced following config error. A quick look at the dir structure shows that atxmega64a1u doesn't exist. Any idea? configure.ac:1279: required file`avr/lib/avrxmega5/atxmega64a1u/Makefile.in' not found When adding the ATxmega64A1U

[avr-libc-dev] [bug #29458] log10 compile errors

2010-04-07 Thread Joerg Wunsch
Update of bug #29458 (project avr-libc): Status:None = Need Info ___ Follow-up Comment #1: *Which* errors do you get? Just claiming compile/link errors is way too generic to judge

[avr-libc-dev] [bug #29458] log10 compile errors

2010-04-07 Thread Joerg Wunsch
Update of bug #29458 (project avr-libc): Status: Need Info = Duplicate Open/Closed:Open = Closed ___ Follow-up Comment #4: This is

Re: [avr-libc-dev] Accessing svn repository using http protocol

2010-04-07 Thread Joerg Wunsch
As Boyapati, Anitha wrote: Both the trials are unsuccessful. They give me following error: $ svn co http://svn.savannah.nongnu.org/svn/avr-libc svn: Repository moved permanently to 'http://svn.savannah.gnu.org/svn/avr-libc'; please relocate It seems the instructions given on savannah

Re: [avr-libc-dev] Accessing svn repository using http protocol

2010-04-07 Thread Joerg Wunsch
As Boyapati, Anitha wrote: Actually, several things are going wrong when I am trying to access repository (either anonymously or as a member) using proxy authentication (behind a firewall). Must be a problem with your proxy setup. It works fine with my proxy at home, but I could never get it

<    1   2   3   4   5   6   7   8   9   >