Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: SOLVED! Re: [lpc2000] GNUARM weirdness ?

2005-07-21 by 42Bastian Schick

DECwiz (Fred van Kempen) <decwiz@...> schrieb am Wed, 20 Jul 2005 
14:26:01 -0700 (PDT):


> Further checking revealed, that something else was wrong: I was
>
> using bitfield structures to reference (and initialize) the BCFG2 
> register.  A printf() on its contents (both in the GNUARM and IAR
> versions) showed a major difference.  I changed that code to just
> ...
>
> So... the bitfield structures don't seem to work with GCC, which I can 
> live with now I know it...

The order how the bits are stored in a bitfield is not defined by standard.
This might be the reason, why gcc writes a different value than IAR.

-- 
42Bastian Schick

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.