Skip to contentSkip to conversation

coldfire M5329EVB demo problem

U-Boot kescuin 3 participants 7 messages Feb 4, 2009 – Feb 18, 2009

lore
Share & tools
lore

kescuin

author
#0 lore raw

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

#1 lore raw

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.
author
#2 lore raw

Yes, I've already read it.

When I have this one at the moment:

00020000 T hello_world
000200a8 T dummy
000200ac T get_version
000200c0 T getc
000200d4 T tstc
000200e8 T putc
000200fc T puts
00020110 T printf
00020124 T install_hdlr
00020138 T free_hdlr
0002014c T malloc
00020160 T free
00020174 T udelay
00020188 T get_timer
0002019c T vprintf
000201b0 T do_reset
000201c4 T getenv
000201d8 T setenv
000201ec T simple_strtoul
00020200 T simple_strtol
00020214 T strcmp
00020228 T i2c_write
0002023c T i2c_read
00020254 T app_startup
000222fc 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/MyStandaloneProgramDoesNotWork

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 Another megabytes the dust.

author
#3 lore raw

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_world
000200a8 T dummy
000200ac T get_version
000200c0 T getc
000200d4 T tstc
000200e8 T putc
000200fc T puts
00020110 T printf
00020124 T install_hdlr
00020138 T free_hdlr
0002014c T malloc
00020160 T free
00020174 T udelay
00020188 T get_timer
0002019c T vprintf
000201b0 T do_reset
000201c4 T getenv
000201d8 T setenv
000201ec T simple_strtoul
00020200 T simple_strtol
00020214 T strcmp
00020228 T i2c_write
0002023c T i2c_read
00020254 T app_startup
000222fc 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/MyStandaloneProgramDoesNotWork

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 Another megabytes the dust.

#4 lore raw

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_world doen'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
author
#5 lore raw

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_world doen't print anything on screen. Only

That'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
#6 lore raw
In reply to kescuin

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_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

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot