building problems

Jay Monkman jtm at smoothsmoothie.com
Mon Nov 11 19:47:31 UTC 2002


On Mon, Nov 11, 2002 at 06:19:12PM +0100, Poletti Francesco wrote:

> >void bsp_start_default( void )
> >{ unsigned long c = "b";
> >   *((volatile unsigned long*) SWARM_UART0_TXBASE) = (unsigned long )(c);

You are setting *SWARM_UART0_TXBASE to the address where the string c
begins. I think you want something like:
     *((volatile unsigned long*) SWARM_UART0_TXBASE) = (unsigned long )(c[0]);
or
     unsigned char c = 'b';
     *((volatile unsigned long*) SWARM_UART0_TXBASE) = (unsigned long )(c);

-- 
Jay Monkman	    The truth knocks on the door and you say "Go away, I'm 
                    looking for the truth," and so it goes away. Puzzling.
		     - from _Zen_and_the_Art_of_Motorcycle_Maintenance_



More information about the users mailing list