Re: avr-crypto-lib

2021-05-29 Thread Nigel Winterbottom
I took a quick look and attempted to compile your Crypto library in Visual Studio. I got nowhere: Probably for good reasons; Microsoft C doesn't allow dynamic array size like this: bigint_word_t d_b[a->length_W + b->length_W]; This is about as far as I'm going to get on this, there is just far

Re: error in make

2020-09-26 Thread Nigel Winterbottom
I've seen something similar when building from a "DOS" command prompt. When building from a bash shell, however, as one can after installing 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

Re: [avr-gcc-list] Possible minor bug

2016-08-02 Thread Nigel Winterbottom
> struct color { > uint8_t r; > uint8_t g; > uint8_t b; > } color = (struct color){ 255, 255, 255 }; Compiles fine for me using this version: nigel@E3510:~$ avr-gcc --version avr-gcc (AVR_8_bit_GNU_Toolchain_3.5.2_1680) 4.9.2 -- Nigel ___ AVR-GCC-lis

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

2006-10-06 Thread Nigel Winterbottom
> -Original Message- > From: larry barello > Specifically I was looking for an efficient way to encode > > (bSomeBool ^ (SomeBitMask & SomeVariable)) > > to get a true/false output. Does it have to be an expression ? If not, what's wrong with: if (SomeBitMask & SomeVariable) b

RE: [avr-gcc-list] Patching EEPROM image for production

2006-10-05 Thread Nigel Winterbottom
> -Original Message- > From: dimax un > For production purposes I need to burn every product with > different sn and id. > ... > Do you see any nicer solution? I have an e-lab ISP programmer which can write a piece of text and a auto-incremented serial number into flash. Yours may allow

RE: [avr-gcc-list] Int32 Support

2006-09-18 Thread Nigel Winterbottom
> -Original Message- > From: User Tomdean > Sent: Monday, September 18, 2006 9:52 PM > To: avr-gcc-list@nongnu.org > Subject: Re: [avr-gcc-list] Int32 Support > > Something I forget: C is a glorified assembly language! > > # cat xx.c > #include > int main() { > uint8_t z = sizeof(ui

RE: [avr-gcc-list] Avr-gcc Removing Port Register Access

2006-08-26 Thread Nigel Winterbottom
> -Original Message- > From: User Tomdean > Sent: Saturday, August 26, 2006 5:36 PM > To: [EMAIL PROTECTED] > Cc: avr-gcc-list@nongnu.org > Subject: Re: [avr-gcc-list] Avr-gcc Removing Port Register Access > > Hello, Tomdean, > Here is a reduced application that reproduces the problem. I

RE: [avr-gcc-list] i2c works on ATMega32 but not on ATMega128

2006-08-05 Thread Nigel Winterbottom
> -Original Message- > From: Onno van Eijk > Thanks for your suggestion, but I'm sure the ATMega128 is running at > 16Mhz. Otherwise the usart would not be working eigther. Besides, I > think the twi interface would still work, only running at a > much slower > klockspeed. > > grz, > Onno

RE: [avr-gcc-list] ATmega8515 Interrupt Timing

2006-07-29 Thread Nigel Winterbottom
> From: > [EMAIL PROTECTED] > [mailto:avr-gcc-list-bounces+nigel=n-winterbottom.freeserve.co > [EMAIL PROTECTED] > .org]On Behalf Of User Tomdean > Sent: Saturday, July 29, 2006 4:22 PM > To: avr-gcc-list@nongnu.org > Subject: Re: [avr-gcc-list] ATmega8515 Interrupt Timing > > > Look at the listin

RE: [avr-gcc-list] Casting

2006-03-28 Thread Nigel Winterbottom
> -Original Message- > From: > [EMAIL PROTECTED] > Sent: 28 March 2006 12:47 > To: AVR-GCC-list@nongnu.org > Subject: [avr-gcc-list] Casting > > I am using a as a parameter in which I pass various > entities, sort of like a mailbox. Mostly they are longs, > sometimes integers, and s

RE: [avr-gcc-list] Makefile problem with case of filenames.

2006-03-20 Thread Nigel Winterbottom
amp; SOURCE2.C have been magically cleaned also. Can you guess how I discovered that one ? Perhaps a warning about c source case in the Makefile template would be prudent as exists for assembly sources. Regards Nigel Winterbottom ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: [avr-gcc-list] AVR DataFlash

2006-02-17 Thread Nigel Winterbottom
y examples available online? You may be surprised to learn that Atmel www.atmel.com have DataFlash App-Notes. AN-4 (DOC0842.PDF) is an example. There is a wealth of information there. I also suggest searching the AVR-forum at www.avrfreaks.net. Regards, Nigel Wi

RE: [avr-gcc-list] interrupt optimization

2006-02-01 Thread Nigel Winterbottom
Sent: Wednesday, February 01, 2006 2:32 PM Sender: David Bourgeois Subject: [avr-gcc-list] interrupt optimization > Hi, > > I have an interrupt which is called a lot of times but only > really do > something very rarely: > > ISR(...) > { > if (sampling-- == 0) > { > sampling =

RE: [avr-gcc-list] Missing compiler optimizations?

2006-01-24 Thread Nigel Winterbottom
ced. This option is always enabled by default on certain machines, usually those which have no call-preserved registers to use instead. For all machines, optimization level 2 and higher enables this flag by default. Regards Nigel Winterbottom ___ AVR

RE: [avr-gcc-list] Missing compiler optimizations?

2006-01-23 Thread Nigel Winterbottom
"r" (hi), "0" (lo) ); \ __result; }) e.g. w = HILOTO16(c, b); This gives optimal code and should cause a different compiler to complain, thereby highlighting the non portability. Regards Nigel Winterbottom ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

RE: [avr-gcc-list] (Newbie)1.How to write variables which are notloaded to uC but manipulated by compiler

2005-12-08 Thread Nigel Winterbottom
efine S 12 #define I (127-(S*255)/100) const char PROGMEM Array[]= { I, I+1, I+3, I+4, }; Nigel Winterbottom ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

RE: [avr-gcc-list] What is the recommended route to build avr-gccwithsupport for newer processors?

2005-12-05 Thread Nigel Winterbottom
rtm32.o I also added the following lines into my Makefile: MCU = atmega32 LDFLAGS += -Tdata 0x800100 Job Done: Memory Map and Stack init all OK. Nigel Winterbottom ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/ma

RE: [avr-gcc-list] Help, Compiler ignores some part of the function!

2005-12-03 Thread Nigel Winterbottom
pe murat.c: In function `ProcessPID_Vertical': murat.c:69: warning: will never be executed Line 69 is, of course: controller = (int) p1*error*PTERM_AMPLIFICATION_MAGNITUDE_V ... Nigel Winterbottom ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

FW: RE: [avr-gcc-list] How does one get gcc *.lst file with interspersedSource Listing and Assembler?

2005-12-02 Thread Nigel Winterbottom
;m on my employer's time now so can't do the search. Nigel Winterbottom ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

RE: [avr-gcc-list] What is the recommended route to build avr-gcc withsupport for newer processors?

2005-11-25 Thread Nigel Winterbottom
s will exceed 16K bytes o will test your theory. Exceeding SRAM of course, is not allowed because I would then mangle the stack. The header file is, in essence, very similar with only the PCIE/PCIF bits in EIMSK/EIFR different. I did a diff but the files have a totally different layout so al

[avr-gcc-list] What is the recommended route to build avr-gcc with support for newer processors?

2005-11-24 Thread Nigel Winterbottom
keep this a secret. Perhaps a Windows build is such a pig, that this is a deliberate ploy so that he isn't besieged with questions day-&-night :) Which option do people recommend ? Nigel Winterbottom ___ AVR-GCC-list mailing list

RE: [avr-gcc-list] Poll: Who uses itoa() & co with base != {2, 8, 10, 16}?

2005-11-22 Thread Nigel Winterbottom
ve itoa() keeps its old > features. > > Bernard If anyone is counting votes then mine is to support Bernard, keep itoa as is but introduce a restricted replacement with a new name. Nigel Winterbottom ___ AVR-GCC-list mailing list AVR-

RE: [avr-gcc-list] problem with debbuggin with AVRStudio 4.12 and WinAvr

2005-11-15 Thread Nigel Winterbottom
gister contents after the function returns by single stepping using the dissassembler view. Sometimes however, I would store the local variable into a global. Regards Nigel Winterbottom ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

RE: [avr-gcc-list] AVR assembly for fast bit bang

2005-11-09 Thread Nigel Winterbottom
s; bitcount != 0; mask<<=1, bitcount--) { CLK_HIGH; if( towrite & mask) { SDIO_HIGH; } else { SDIO_LOW; } CLK_LOW; } } Nigel Winterbottom ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org

RE: [avr-gcc-list] OT Generic C question

2005-09-20 Thread Nigel Winterbottom
-Original Message- On Behalf Of Haase Bjoern (PT-BEU/EMT) * Sent: 20 September 2005 13:07 To: David Brown; Trampas; avr-gcc-list@nongnu.org Subject: AW: [avr-gcc-list] OT Generic C question > i=i+1; My suggestion for resolving such kind of question concerning C is: Never write such cod

RE: [avr-gcc-list] Digital clock assembler programming problem

2005-09-05 Thread Nigel Winterbottom
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] .org]On Behalf Of Sivakumar Ganesan Sent: 05 September 2005 13:33 To: avr-gcc-list@nongnu.org Subject: [avr-gcc-list] Digital clock assembler programming problem Hi everyone, I am a newbie to AVR microcontroller progra

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

2005-08-23 Thread Nigel Winterbottom
-Original Message- Bernard Fouché wrote Suppose you have: f1() { push rA push rB .. uses rA & rB then does not care of their value until the end of the function.. f2() ... f2() .. f2() pop rB pop rA } f2() { push rA push rB .. uses rA & rB.. pop rB pop rA

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

2005-08-20 Thread Nigel Winterbottom
-Original Message- From:James A.R. Koehler If the consensus is that we need to be protected against ourselves by having all the existing prolog in the two existing interrupt service methods, perhaps the solution is to have a third category of interrupt service routine in which nothing is

RE: [avr-gcc-list] Problems with ATMEGA8 USART

2005-08-17 Thread Nigel Winterbottom
David Kelly wrote: Thats not quite what I meant. I do enable the IRQ for each character. The issue was in finding which UART needed to be enabled without enabling one which would then serve an empty event. Here is the exact code I wrote back in December. Today I'd probably bracket the ins

RE: [avr-gcc-list] Problems with ATMEGA8 USART

2005-08-16 Thread Nigel Winterbottom
-Original Message- The one clumsy part of code was in my_putchar() which had to reach directly into the hardware for the specific port to restart the Tx IRQ if the buffer had been empty, which causes my Tx IRQ routine to shut itself off. Also there was a possible race condition. --