coldfire M5329EVB demo problem
Hi, everyone
I'm working wint an u-boot 2008.10 version over a Coldfire M5329EVB Board. Every thing goes well on u-boot working. But when I try to execute standalone applications i've got problems.
I've been trying with the hello_world example as it is on the manual. First time I tryed I used the standard (on the make file ) address 0x20000 for m68k board, loading it to the board with tftp 0x20000 hello_world.bin I've also changed other address but when I do the go {addr} I always get an *** Unexpected exception ***
Vector Number: 4 Format: 04 Fault Status: 0
Any one have executed stand alone applications on this board? What should be happening?
Thanks for your help.
Carlos Kescuin
Dear kescuin,
Quoted 4 lines · In message <[email protected]> you…
I'm working wint an u-boot 2008.10 version over a Coldfire M5329EVB Board. Every thing goes well on u-boot working. But when I try to execute standalone applications i've got problems.
...
Quoted 2 lines
Any one have executed stand alone applications on this board? What should be happening?
Maybe you missed reading the FAQ? See
http://www.denx.de/wiki/view/DULG/MyStandaloneProgramDoesNotWork
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Another megabytes the dust.
Yes, I've already read it.
When I have this one at the moment:
00020000 T hello_world000200a8 T dummy000200ac T get_version000200c0 T getc000200d4 T tstc000200e8 T putc000200fc T puts
00020110 T printf
00020124 T install_hdlr
00020138 T free_hdlr0002014c T malloc
00020160 T free
00020174 T udelay
00020188 T get_timer0002019c T vprintf000201b0 T do_reset000201c4 T getenv000201d8 T setenv000201ec T simple_strtoul
00020200 T simple_strtol
00020214 T strcmp
00020228 T i2c_write0002023c T i2c_read
00020254 T app_startup000222fc d _GLOBAL_OFFSET_TABLE_
00022344 A __bss_start
00022344 A _edata
00022344 A _end
Then I execute:
tftp 0x20000 hello_world.bin
go 0x20000 with the same result.
I've also tryed to change adress in make file in order to test de (tftp 0x40000 and go 0x40004) but i've never succeed.
Quoted 27 lines · Wolfgang Denk
Dear kescuin,
In message <[email protected]>
Quoted 2 lines · you
I'm working wint an u-boot 2008.10 version over a Coldfire M5329EVB
Board.
Quoted 2 lines
Every thing goes well on u-boot working. But when I try to execute standalone applications i've got problems.
...
Quoted 1 line
Any one have executed stand alone applications on this board? What should
be
Quoted 1 line
happening?
Maybe you missed reading the FAQ? See
http://www.denx.de/wiki/view/DULG/MyStandaloneProgramDoesNotWorkBest regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Another megabytes the dust.
Everything solved, the problem was that tftp wasn't working ok, an didn't save data on memory.
Now the problem is that hello_world doen't print anything on screen. Only
## Starting application at 0x40020000 ...
## Application terminated, rc = 0x0
What's the problem? I havn't changed the hello_world code. (attached down)
#include <common.h>
#include <exports.h>
int hello_world (int argc, char *argv[])
{
int i;
/* Print the ABI version */
app_startup(argv);
printf ("Example expects ABI version %d\n", XF_VERSION);
printf ("Actual U-Boot ABI version %d\n", (int)get_version());
printf ("Hello World\n");
printf ("argc = %d\n", argc);
for (i=0; i<=argc; ++i) {
printf ("argv[%d] = \"%s\"\n",
i,
argv[i] ? argv[i] : "<NULL>");
}
printf ("Hit any key to exit ... ");
while (!tstc())
;
/* consume input */
(void) getc();
printf ("\n\n");
return (0);
}Quoted 73 lines · kescuin
Yes, I've already read it.
When I have this one at the moment:
00020000 T
hello_world000200a8T dummy000200acTget_version000200c0T getc000200d4T tstc000200e8T putc000200fcT puts
00020110 T printf
00020124 Tinstall_hdlr
00020138 Tfree_hdlr0002014cT malloc
00020160 T free
00020174 T udelay
00020188 Tget_timer0002019cT vprintf000201b0Tdo_reset000201c4T getenv000201d8T setenv000201ecTsimple_strtoul
00020200 Tsimple_strtol
00020214 T strcmp
00020228 Ti2c_write0002023cTi2c_read
00020254 Tapp_startup000222fcd _GLOBAL_OFFSET_TABLE_
00022344 A__bss_start
00022344 A_edata
00022344 A_endThen I execute:
tftp
0x20000hello_world.bin
go0x20000with the same result.I've also tryed to change adress in make file in order to test de (tftp
0x40000and go0x40004) but i've never succeed.Quoted 27 lines · Wolfgang Denk
Dear kescuin,
In message <[email protected]>
Quoted 2 lines · you
I'm working wint an u-boot 2008.10 version over a Coldfire M5329EVB
Board.
Quoted 2 lines
Every thing goes well on u-boot working. But when I try to execute standalone applications i've got problems.
...
Quoted 1 line
Any one have executed stand alone applications on this board? What
should be
Quoted 1 line
happening?
Maybe you missed reading the FAQ? See
http://www.denx.de/wiki/view/DULG/MyStandaloneProgramDoesNotWorkBest regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Another megabytes the dust.
Dear kescuin,
Quoted 3 lines · In message <[email protected]> you…
Everything solved, the problem was that tftp wasn't working ok, an didn't save data on memory.
Sounds like serious memory problems to me...
Quoted 1 line
Now the problem is that
hello_worlddoen't print anything on screen. Only
That's to be expected when your memory isn't working right.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Leave bigotry in your quarters; there's no room for it on the bridge. -- Kirk, "Balance of Terror", stardate 1709.2
No , it wasn't a exactly memory problem, the only problem what that memory where I was trying to execute was writing protected.
So I execute everything in RAM memory (0x40020000) but printf still not working.
If I try to change printf by puts the program hangs on execution without showing anything on screen but ## Starting application at 0x40020000 ...
It's strange because scipts, echos, and kernel init messages (when I have tryed to boot a kernel) displays on screen (via serial port, using Tera Term software to visualize it) without anyproblem. And if I print the environment variables stdout is serial.
Thanks for your help.
Quoted 25 lines · Wolfgang Denk
Dear kescuin,
In message <[email protected]>
Quoted 3 lines · you
Everything solved, the problem was that tftp wasn't working ok, an didn't save data on memory.
Sounds like serious memory problems to me...
Quoted 1 line
Now the problem is that
hello_worlddoen't print anything on screen. OnlyThat's to be expected when your memory isn't working right.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Leave bigotry in your quarters; there's no room for it on the bridge.-- Kirk, "Balance of Terror", stardate 1709.2
Carlos,
Compile the hello_world and stubs without the -msep-data and -fPIC options, then linking with -Ttext 0x40020000. Or, make change to the cpu/mcf532x/ config.mk.
Regards,
TsiChung
Quoted 26 lines · kescuin
Hi, everyone
I'm working wint an u-boot 2008.10 version over a Coldfire M5329EVB Board. Every thing goes well on u-boot working. But when I try to execute standalone applications i've got problems.
I've been trying with the
hello_worldexample as it is on the manual. First time I tryed I used the standard (on the make file ) address0x20000for m68k board, loading it to the board with tftp0x20000hello_world.bin I've also changed other address but when I do the go {addr} I always get an *** Unexpected exception ***
Vector Number: 4 Format: 04 Fault Status: 0Any one have executed stand alone applications on this board? What should be
happening?
Thanks for your help.Carlos Kescuin
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot