avr-gcc 4.2.2 generating incorrect assembly Quote:You said r16 was getting reused, but with the same value.. for me it was not the same value.The code I was seeing for "return val - 0x80" was is follows:
1ae: 00 e8...
Tuesday, 8 July 2008 - 02:46
avr-gcc 4.2.2 generating incorrect assembly Quote:Here's a patch from Anatoly Sokolov, for the brave and/or curiousWell, I am definitely curious, so I decided to get brave.
I did a build of gcc 4.3.1 and confirmed the issue...
Monday, 7 July 2008 - 02:46
UART interrupt causes reset seizures Based on your avr-size results, you should have plenty of space for the stack.
Maybe it is a problem with the watch dog timer. Are you sure the fuse isn't set to enable the watch...
Sunday, 6 July 2008 - 02:08
UART interrupt causes reset seizures If you are using WinAVR through AVR Studio, the default settings will show a memory usage summary at the end of the compile. For example:
AVR Memory Usage
----------------...
Saturday, 5 July 2008 - 16:11
UART interrupt causes reset seizures Perhaps it is a stack overflow problem?
How much RAM does your AVR have and how much does the compiler report is being used?
Saturday, 5 July 2008 - 02:56
ISP algorithm I have done a couple ISP implementations. The most recent was used to program an ATmega48. I did not include a reset after chip erase and have not seen any problems. The other...
Friday, 4 July 2008 - 04:19
Assembler vs C programming holypower wrote:Is it possible to use assembly and C in one file and compile it???
Yes. Do a search for "inline assembler" or "inline assembly".
You can also write C and...
Thursday, 3 July 2008 - 05:19
eeprom width? Quote:You are correct on all parts, except ordering of data. ordering of data elements within a struct is defined by the standard.Of course, not all compilers follow the standard...
Thursday, 3 July 2008 - 04:19
avr-gcc 4.2.2 generating incorrect assembly Quote:Here's a patch from Anatoly Sokolov, for the brave and/or curiousSo was this confirmed as an official bug and will this patch eventually be included in future releases?
Thursday, 3 July 2008 - 04:04
eeprom width? Quote:One thing I'm sure about is that it would definitely break all my exiting code.As it would break many other people's code. This is one of the types of things that makes...
UART Strangeness Quote:After changing to code to send constant 'U' characters (0x55 hex) I saw only 5 voltage peaks per character.And how many are you expecting to see? 0x55 is every other bit...
Quote:You said r16 was getting reused, but with the same value.. for me it was not the same value.The code I was seeing for "return val - 0x80" was is follows: 1ae: 00 e8...
Quote:Here's a patch from Anatoly Sokolov, for the brave and/or curiousWell, I am definitely curious, so I decided to get brave. I did a build of gcc 4.3.1 and confirmed the issue...
Based on your avr-size results, you should have plenty of space for the stack. Maybe it is a problem with the watch dog timer. Are you sure the fuse isn't set to enable the watch...
If you are using WinAVR through AVR Studio, the default settings will show a memory usage summary at the end of the compile. For example: AVR Memory Usage ----------------...
Perhaps it is a stack overflow problem? How much RAM does your AVR have and how much does the compiler report is being used?
I have done a couple ISP implementations. The most recent was used to program an ATmega48. I did not include a reset after chip erase and have not seen any problems. The other...
holypower wrote:Is it possible to use assembly and C in one file and compile it??? Yes. Do a search for "inline assembler" or "inline assembly". You can also write C and...
Quote:You are correct on all parts, except ordering of data. ordering of data elements within a struct is defined by the standard.Of course, not all compilers follow the standard...
Quote:Here's a patch from Anatoly Sokolov, for the brave and/or curiousSo was this confirmed as an official bug and will this patch eventually be included in future releases?
Quote:One thing I'm sure about is that it would definitely break all my exiting code.As it would break many other people's code. This is one of the types of things that makes...
You guys are all nuts. Real programmers use butterflies. :lol:
Quote:After changing to code to send constant 'U' characters (0x55 hex) I saw only 5 voltage peaks per character.And how many are you expecting to see? 0x55 is every other bit...
Pages