[avr-libc-dev] [bug #50501] eeprom_update_byte() can reduce wear more

2017-03-09 Thread Jan Waclawek
Follow-up Comment #2, bug #50501 (project avr-libc): I wouldn't recommend to do this unless explicitly allowed by datasheet or an Atmel insider approves it. Depending on the particular implementation of EEPROM, write distrubs may decrease read reliability. This is not something which can be

Re: [avr-libc-dev] [bug #45067] inconsistency errors in crc.hdocumentation

2015-05-10 Thread Jan Waclawek
In my experience, the only thing which really helps in disambiguating CRC calculation is a couple of simple but nontrivial input examples together with the respective outputs. I know it sounds/looks bad in the documentation, but it really helps. Jan Waclawek

Re: [avr-libc-dev] [bug #33698] Explicit use of RJMP/RCALL can cause relocation truncated to fit: R_AVR_13_PCREL linker error

2015-03-27 Thread Jan Waclawek
Forgive my ignorance, but would this address the seemingly related error: libc.a(isspace.o)*:In function `isspace' (.text.avr-libc+0x2)*:relocation truncated to fit: R_AVR_13_PCREL against symbol `__ctype_isfalse' defined in .text.avr-libc section in

Re: [avr-libc-dev] Corrections for *_PF functions (PR #32945)

2013-10-08 Thread Jan Waclawek
... :-) - Sorry for side tracking, but could the issue of the xxx_PF() functions not clearing RAMPZ, discussed recently on the avrfreaks' avr-gcc subforum, be addressed at the same time? Thanks, Jan Waclawek ___ AVR-libc-dev mailing list AVR-libc

[avr-libc-dev] [bug #38021] pgm_read macros don't model the memory accesses

2013-01-04 Thread Jan Waclawek
Follow-up Comment #1, bug #38021 (project avr-libc): It is a very bad idea overall. It would increase code size of existing programs, with little to no benefit except of a negligibly small group of applications. 1. FLASH is inherently non-volatile; SPM out of bootloader context is uncommon and

[avr-libc-dev] doc/api/assembler.dox documentation enhancement

2013-01-02 Thread Jan Waclawek
=PNphpBB2file=viewtopicp=1023806#1023806 Jan Waclawek PS. I know I should submit this as an enhancement request to the tracker, but I lost access to the e-mail account bound to my savannah account (and of course thanks to the complex password required policy, never remembered the password

Re: [avr-libc-dev] Pow Function in avr8

2012-11-28 Thread Jan Waclawek
Floating point equivalence is not guaranteed so is this comparison valid ? C99 in 5.2.4.2.2#5 says: The accuracy ofthe floating-point operations (+, -, *, /) and of the library functions in math.hand complex.h that return floating-point results is implementation-defined [...] The implementation

Re: [avr-libc-dev] Pow Function in avr8

2012-11-28 Thread Jan Waclawek
PS. Are you sure you linked against avr-libc's math library? It linked against the libc math libraries . How exactly? Also adding to the points mentioned above, is it required to use the logrithms for getting this done as we explicitly say the second argument of pow should be an

[avr-libc-dev] [bug #36124] Improve documentation on .bss clear when used in assembler

2012-04-07 Thread Jan Waclawek
URL: http://savannah.nongnu.org/bugs/?36124 Summary: Improve documentation on .bss clear when used in assembler Project: AVR C Runtime Library Submitted by: wek Submitted on: Sat 07 Apr 2012 02:02:23 PM GMT Category:

Re: [avr-libc-dev] getting a short interrupt vector table, and PROGMEM vs .init0

2012-02-06 Thread Jan Waclawek
That's because .initX sections *are* located after .progmem etc. You want to have a look at the default linker scripts, and probably want to place your experimental stuff into .vectors (which would probably be sort of obvious if you had a look at the original vectors table source in gcrt1.S).

Re: [avr-libc-dev] Progmem types compatibility

2012-01-10 Thread Jan Waclawek
I am really not sure. There is no read use of such a type, it's just because some guys are to lazy to type some letters. Moreover in the case of pointers, you have the difference between pointers, const pointers, pointers to const and const pointers to const etc. and all for arbitrary number of

Re: [avr-libc-dev] Progmem types compatibility

2012-01-09 Thread Jan Waclawek
Just want to remark that these issues had been discussed already in the thread stemming from http://lists.nongnu.org/archive/html/avr-libc-dev/2011-09/msg00025.html and on several occassions on avrfreaks. JW - Original Message --- On 10/01/2012 08:13, Joerg Wunsch wrote: As

Re: [avr-libc-dev] Build of SVN trunk completely broken

2011-12-29 Thread Jan Waclawek
in source form, with appropriate changes ithe documentation. Jan Waclawek ___ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Re: [avr-libc-dev] [bug #35003] wdt_enable() has a wrong codesequencefor many parts

2011-12-07 Thread Jan Waclawek
Strictly, that description is only guaranteed to apply to the SEI instruction, not to other ways that modify the I flag. Indeed. I stand corrected; sorry for confusion. Jan ___ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org

Re: [avr-libc-dev] [bug #33716] pgmspace typedefs not legal

2011-09-27 Thread Jan Waclawek
What exactly do you mean by safe in this context, and how could that be discovered or shown? The user who wants to declare a variable to be positioned in FLASH (code memory), and obeys the deprecation warning, is now presumably recommended to write the PROGMEM keyword after the type, e.g.

[avr-libc-dev] [bug #33698] Explicit use of RJMP/RCALL can cause relocation truncated to fit: R_AVR_13_PCREL linker error

2011-09-27 Thread Jan Waclawek
Follow-up Comment #4, bug #33698 (project avr-libc): It appears to me that most of those 135 places (those which rcall to external label, perhaps indentified by the _U() macro) are potential errors, e.g. http://www.avrfreaks.net/index.php?name=PNphpBB2file=viewtopict=108109 and many more. But

Re: [avr-libc-dev] [bug #33716] pgmspace typedefs not legal

2011-09-27 Thread Jan Waclawek
IMO such macros are bad style, there is no reason for them. I already said what is the reasons for them, here: https://savannah.nongnu.org/bugs/?33716 and here http://www.avrfreaks.net/index.php?name=PNphpBB2file=viewtopicp=871000#871000 . And I repeat, it is a feature for the users, and a

[avr-libc-dev] [bug #33716] pgmspace typedefs not legal

2011-09-26 Thread Jan Waclawek
. I here repeat what I've already said in http://www.avrfreaks.net/index.php?name=PNphpBB2file=viewtopicp=871000#871000 Jan Waclawek ___ Reply to this item at: http://savannah.nongnu.org/bugs/?33716

[avr-libc-dev] [patch #6352] Far pointer library

2011-09-26 Thread Jan Waclawek
Follow-up Comment #9, patch #6352 (project avr-libc): You seem to have misunderstood my comment. Carlos's library is fully adequate for its purpose and has been used for that purpose by several users months or even years before it has been accepted in 1.7.0; the problem is that it is incorrectly

[avr-libc-dev] [bug #32945] Wrong PF implementation in pmstring

2011-09-15 Thread Jan Waclawek
Follow-up Comment #1, bug #32945 (project avr-libc): This appears to be a consequence of the problem reported in https://savannah.nongnu.org/patch/?6352 (thus duplicate). ___ Reply to this item at:

Re: [avr-libc-dev] Adding sections to default linker script for 64kBFLASH devices

2011-08-04 Thread Jan Waclawek
), and you told that you are going to issue a new edition of WinAVR soon. Cumulatively, these gave me the impulse to make this post. Jan Waclawek ___ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

[avr-libc-dev] [patch #6352] Far pointer library

2011-08-03 Thread Jan Waclawek
Follow-up Comment #7, patch #6352 (project avr-libc): The _PF functions in the respective binary libraries are broken, and they ever were, since the've been added to avr-libc in 1.7.0. They don't use the ELPM instruction rather, incorrectly, the LPM instruction. The reason is, that these

[avr-libc-dev] [bug #30669] improve comment in stdiodemo

2010-08-06 Thread Jan Waclawek
URL: http://savannah.nongnu.org/bugs/?30669 Summary: improve comment in stdiodemo Project: AVR C Runtime Library Submitted by: wek Submitted on: Fri 06 Aug 2010 07:01:08 AM GMT Category: Documentation

[avr-libc-dev] [patch #6352] Far pointer library

2010-06-30 Thread Jan Waclawek
Follow-up Comment #6, patch #6352 (project avr-libc): The xxx_PF() functions modify the RAMPZ register, but on XMegas with EBI, RAMPZ influences also LD/LDD/ST/STD, making code after using xxx_PF() to access unintended data memory pages. In the attached file, in macros.inc, macro

[avr-libc-dev] [bug #26365] Better PROGMEM_FAR support

2010-06-14 Thread Jan Waclawek
Follow-up Comment #6, bug #26365 (project avr-libc): In attachment, pgmspace.h and an example linker script (avr6). Changes in pgmspace.h against http://svn.savannah.nongnu.org/viewvc/trunk/avr-libc/include/avr/pgmspace.h?revision=2168root=avr-libcview=markup : - documentation related to

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

2010-06-13 Thread Jan Waclawek
Regarding the linker script section names, that should certainly be mentioned in the description (so it eventually goes into the avr-libc documentation), independent of whether Eric provides a patch in the next version of the WinAVR successor. Can you please submit a paragraph for that, Jan?

Re: [avr-libc-dev] Re: [avr-libc-commit] [2158] Submitted by Jan Waclawek:

2010-06-10 Thread Jan Waclawek
#$%^... sorry. Mea culpa. Joerg, would you please fix it? Thanks. Jan On Thu, 10 Jun 2010 22:25:12 +0200 Wouter van Gulik wvgu...@xs4all.nl wrote: Joerg Wunsch schreef: + +\code +#define cli() __asm volatile( cli ::: memory ) +#define sei() __asm volatile( sei ::: memory ) +

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

2010-06-08 Thread Jan Waclawek
(unfortunately had no time to move on really on this) http://www.avrfreaks.net/index.php?name=PNphpBB2file=viewtopict=90149 You might also want to notify the audience on the avr-gcc forum on avrfreaks.net on the major changes you've just made - there appears to be a higher attendance there than here. Jan

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

2010-06-08 Thread Jan Waclawek
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. Although I did not mean my post to be private, and reply often as private due to the nonstandard setting of this forum, you are right. I apologize. JW

RE: [avr-libc-dev] New pgm_read_ptr() macro?

2010-06-03 Thread Jan Waclawek
I would also like very much to finally add the FAR macros that Carlos put together a long time ago, or something very similar. I don't remember if there was ever any issues with them that need to get resolved, or if there is basic agreement that these should be added the way they are etc.

Re: [avr-libc-dev] New pgm_read_ptr() macro?

2010-06-03 Thread Jan Waclawek
/2010 14:55, Jan Waclawek wrote: I would also like very much to finally add the FAR macros that Carlos put together a long time ago, or something very similar. I don't remember if there was ever any issues with them that need to get resolved, or if there is basic agreement that these should

Re: [avr-libc-dev] New pgm_read_ptr() macro?

2010-06-03 Thread Jan Waclawek
3) Resolving the compiler/linker issues, specifically code generated when the gs() macro kicks in. Jan, I'm still not convinced its purely a linker error, more likely a problem with gs() but I didn't get to dig much further. I believe the most competent to judge is the author of that patch,

[avr-libc-dev] [patch #6352] Far pointer library

2010-06-03 Thread Jan Waclawek
Follow-up Comment #5, patch #6352 (project avr-libc): Adding one more function, memcmp_PF(). Jan Waclawek (file #20682) ___ Additional Item Attachment: File name: memcmp_PF.zip Size:4 KB

Re: [avr-libc-dev] New pgm_read_ptr() macro?

2010-06-01 Thread Jan Waclawek
to be used with appropriate caution (and documented accordingly). Jan Waclawek - Original Message --- Subject: Re: [avr-libc-dev] New pgm_read_ptr() macro? From: David Brown da...@westcontrol.com How about a more general solution based on typeof and sizeof

[avr-libc-dev] [bug #28058] parameter checking in pgm_read_xxx()

2010-05-22 Thread Jan Waclawek
=92866start=20postdays=0postorder=aschighlight=. Jan Waclawek ___ Reply to this item at: http://savannah.nongnu.org/bugs/?28058 ___ Message sent via/by Savannah http://savannah.nongnu.org

[avr-libc-dev] [bug #26365] Better PROGMEM_FAR support

2010-05-22 Thread Jan Waclawek
Follow-up Comment #5, bug #26365 (project avr-libc): No patches which could be added with no effort from the side of project maintainers, yet (and zero likelihood of them ever); but for those who are interested, some of my solutions of the items below are now posted here

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

2010-05-13 Thread Jan Waclawek
Still, what would hurt to list both? Jan Waclawek - Original Message --- Good policy. Thanks. Hi, I have noticed that iom16.h, iom323.h, iom32.h, and iom8.h all define USART_RXC_vect and USART_TXC_vect while the headers for other micro-controllers define USART_RX_vect

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

2010-05-13 Thread Jan Waclawek
Well, there are (unfortunately) more stumbling blocks along that road. That starts with older devices naming their registers just UDR, UCSRA etc. while newer AVRs always number them (UDR0, UCSR0A) even if there is only one USART available. Again, why couldn't both be listed for the older

[avr-libc-dev] [bug #28058] parameter checking in pgm_read_xxx()

2010-04-28 Thread Jan Waclawek
)(__LPM((uint16_t)(addr))); } [Please note that in my initial submission, the markup feature eat up the double-underscores around __attribute__ and __always_inline__ to single underscores...] Jan Waclawek ___ Reply to this item at: http

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

2010-01-13 Thread Jan Waclawek
Follow-up Comment #4, bug #28108 (project avr-libc): This bug has been discussed extensively in the avrfreaks.net thread to which the link is given in the original bugreport. It has been confirmed that while the given code DOES result in erratic binary, reducing the given code results in

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

2009-11-30 Thread Jan Waclawek
Please follow the avrfreaks link given by OP for further discussion and a link to a similar bug already reported and apparently solved. JW ___ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

RE: [avr-libc-dev] Upcoming WinAVR release...

2009-11-16 Thread Jan Waclawek
May be we looking forward also to a decent changelog, this time? Jan Waclawek ___ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Re: [avr-libc-dev] Re: Adding (some) Procyon AVRlib functionality toavr-libc

2009-09-20 Thread Jan Waclawek
Could someone perhaps give a real example we could chew upon? What should an API or whatever look like? Isn't the issue with multiple different AVRs related more to the library routines themselves rather than to an API? Well, actually a few of us have provided examples. I fail to

Re: [avr-libc-dev] Adding (some) Procyon AVRlibfunctionalitytoavr-libc

2009-09-18 Thread Jan Waclawek
On Fri, 18 Sep 2009 13:45:47 -0700 Ruddick Lawrence rudd...@stanford.edu wrote: The confusion I was talking about with LibAVR was not with the existing Procyon library, but with avr-libc. Of course that only becomes a problem if they are indeed separate projects, which brings me to my second

[avr-libc-dev] RE: [bug #26365] Better PROGMEM_FAR support

2009-05-19 Thread Jan Waclawek
cleanly, allocating zero bytes for test. IMHO, this is a compiler bug. Jan Waclawek ___ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

[avr-libc-dev] [bug #26365] Better PROGMEM_FAR support

2009-04-28 Thread Jan Waclawek
Follow-up Comment #2, bug #26365 (project avr-libc): I beg to differ. The request is a list, of which only the first item is duplicate of patch #6352. Shall I submit it as a series of feature requests, rather? JW ___ Reply to this

[avr-libc-dev] [bug #26365] Better PROGMEM_FAR support

2009-04-28 Thread Jan Waclawek
Follow-up Comment #4, bug #26365 (project avr-libc): What is then the appropriate form of posting feature requests, which are not likely to be implemented immediately, but still might be an inspiration for anybody who has time to pick up older ideas in the future? My naive idea was, that

[avr-libc-dev] [bug #26365] Better PROGMEM_FAR support

2009-04-27 Thread Jan Waclawek
if the initialiser is 32kB, but compiles cleanly (albeit incorrectly) if the initialiser is 64kB. Thanks, Jan Waclawek ___ Reply to this item at: http://savannah.nongnu.org/bugs/?26365

[avr-libc-dev] [bug #23703] eeprom_write_ functions optimisation

2008-06-25 Thread Jan Waclawek
URL: http://savannah.nongnu.org/bugs/?23703 Summary: eeprom_write_ functions optimisation Project: AVR C Runtime Library Submitted by: wek Submitted on: Wednesday 06/25/2008 at 10:24 Category: Feature Request