Post Created date
gcc 4.7.2 – are 24-bit int types supported?
Not in my gcc (I use your latest compilation). The code: int main(void) { const char __flash *txt; const char *ptr=txt; } Compiles ok, only with warnings: Warning 1 unused...
Tuesday, 20 November 2012 - 20:31
gcc 4.7.2 – are 24-bit int types supported?
Thanks, I figured out how to use it. BTW, don't you think that code: const char __flash *txt; const char *ptr=txt; should generate an error? The compiler don't generate even a...
Tuesday, 20 November 2012 - 19:43
gcc 4.7.2 – are 24-bit int types supported?
Thanks again.
Tuesday, 20 November 2012 - 18:48
gcc 4.7.2 – are 24-bit int types supported?
Thanks. Now it works. BTW, one more question regarding new functionality. I tried: #define PGM_STR(txt) ((const __flash char[]) { txt }) const char PROGMEM * const Menu1[]= {...
Tuesday, 20 November 2012 - 15:00
Atmel Studio 6.0.1996 available (Service Pack 2)
Or just download XMEGA E5 series datasheet: REDACTED
Monday, 19 November 2012 - 23:38
DMA as an address counter?
I tried to do this, but without any success. Theoretically you can set up external memory interface to be clocked twice as fast as core, and in some external memory configurations...
Saturday, 27 October 2012 - 16:22
Gcc bug/regression with anonymous structures?
SprinterSB wrote:That is a Microsoft extension. You must enable it. Thanks, I know I have to enable it, and I swear I’ve done it but it didn’t work. Today I’ve done it...
Tuesday, 11 September 2012 - 14:38
XMega 9 bit routine - solved. Now trying to use GCC PROGMEM
My crazy idea: if you generate a sequence, you can generate the 9th bit using timer. Generating numbers from 0 to 255 takes some exactly known number of cycles. So after the...
Monday, 27 August 2012 - 07:11
Incorrect size of struct
Thanks Michael. Your solution is very pretty and smart.
Friday, 15 June 2012 - 13:20
Incorrect size of struct
sternst wrote:TFrancuz wrote:but shouldn’t the union be packed, so it begins at bit 1 of byte 0, instead of bit 0 or byte 1?Why? If you have this ... struct foo { uint8_t...
Thursday, 14 June 2012 - 20:24
Incorrect size of struct
I think your explanation is correct, but shouldn’t the union be packed, so it begins at bit 1 of byte 0, instead of bit 0 or byte 1? If I understood correctly, with packed...
Thursday, 14 June 2012 - 20:08
Incorrect size of struct
I’m compiling for 8-bit AVR with –fpack-struct. Dean, you are correct – the problem is the structure (or union) padding. If I move enum A3972_Select Type : 1; and uint8_t...
Thursday, 14 June 2012 - 19:59

Pages