public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users]  sprintf in standalone
@ 2008-01-30 13:55 trigga
  2008-01-30 15:32 ` Martin Krause
  0 siblings, 1 reply; 3+ messages in thread
From: trigga @ 2008-01-30 13:55 UTC (permalink / raw)
  To: u-boot


Hi!
Having problem with the sprintf function, I did the exporting and updating
of the files accordantly to the README.standalone. The standalone
application seems to compile without error. But once I do the go 40004 I get
Alignment Exception and the board resets. If I remove the sprintf line
everything works fine. 
The reason I'm using the sprintf is to modify the setenv which includes a
variable. 
I'm using an MPC83xx. 
What does the Alignment Exception means?
-- 
View this message in context: http://www.nabble.com/sprintf-in-standalone-tp15182701p15182701.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] sprintf in standalone
  2008-01-30 13:55 [U-Boot-Users] sprintf in standalone trigga
@ 2008-01-30 15:32 ` Martin Krause
  2008-01-31 16:14   ` trigga
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Krause @ 2008-01-30 15:32 UTC (permalink / raw)
  To: u-boot

Hi,

u-boot-users-bounces at lists.sourceforge.net wrote on Wednesday, January
30, 2008 2:56 PM: 
> Hi!
> Having problem with the sprintf function, I did the exporting and
> updating 
> of the files accordantly to the README.standalone. The standalone
> application seems to compile without error. But once I do the go
> 40004 I get 
> Alignment Exception and the board resets. If I remove the sprintf line
> everything works fine.
> The reason I'm using the sprintf is to modify the setenv which
> includes a 
> variable.
> I'm using an MPC83xx.
> What does the Alignment Exception means?

Maybe 40004 is not the correct entry point. The entry point may
change after modifying the standalone application, see:

http://www.denx.de/wiki/view/DULG/MyStandaloneProgramDoesNotWork

Best Regards,
Martin Krause

--
TQ-Systems GmbH
Muehlstrasse 2, Gut Delling, D-82229 Seefeld
Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913
Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH) Ruediger Stahl
http://www.tq-group.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] sprintf in standalone
  2008-01-30 15:32 ` Martin Krause
@ 2008-01-31 16:14   ` trigga
  0 siblings, 0 replies; 3+ messages in thread
From: trigga @ 2008-01-31 16:14 UTC (permalink / raw)
  To: u-boot


I checked the entry point by using nm, and found it set to 40004. So it's not
that. 


Martin Krause wrote:
> 
> Hi,
> 
> u-boot-users-bounces at lists.sourceforge.net wrote on Wednesday, January
> 30, 2008 2:56 PM: 
>> Hi!
>> Having problem with the sprintf function, I did the exporting and
>> updating 
>> of the files accordantly to the README.standalone. The standalone
>> application seems to compile without error. But once I do the go
>> 40004 I get 
>> Alignment Exception and the board resets. If I remove the sprintf line
>> everything works fine.
>> The reason I'm using the sprintf is to modify the setenv which
>> includes a 
>> variable.
>> I'm using an MPC83xx.
>> What does the Alignment Exception means?
> 
> Maybe 40004 is not the correct entry point. The entry point may
> change after modifying the standalone application, see:
> 
> http://www.denx.de/wiki/view/DULG/MyStandaloneProgramDoesNotWork
> 
> Best Regards,
> Martin Krause
> 
> --
> TQ-Systems GmbH
> Muehlstrasse 2, Gut Delling, D-82229 Seefeld
> Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913
> Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH)
> Ruediger Stahl
> http://www.tq-group.com
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 
> 

-- 
View this message in context: http://www.nabble.com/sprintf-in-standalone-tp15182701p15207370.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-31 16:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 13:55 [U-Boot-Users] sprintf in standalone trigga
2008-01-30 15:32 ` Martin Krause
2008-01-31 16:14   ` trigga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox