* [U-Boot-Users] application program
@ 2003-11-05 9:14 Chan Queenie-r54684
2003-11-05 23:42 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Chan Queenie-r54684 @ 2003-11-05 9:14 UTC (permalink / raw)
To: u-boot
Hi,
I'm able to run my application program now (loadaddr = 0x40000 and entry point = 0x40004). Thanks for your previous help.
Now, I encounter another problem. When my program is too large, there is certain part in my program I cannot run, ie. I cannot run certain functions when I call them, and the board hangs. I know I have run out of memory space, so I moved my loadaddr to somewhere else, say 0x00300000. Then I do "go 300004". Although I can run at this new location, I still have the same problem: the board hangs when I call the same function. If I shorten my program a bit, I can run it.
So my question is, how can I enlarge the program space? I've been searching through the codes but no luck.
And one more question, I realize the entry point is always loadaddr + 0x04. Can I change that? If yes, please tell me where to change it.
Thank you very much!
Best Regards,
Queenie Chan
NCSD Application Engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20031105/958ae179/attachment.htm
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] application program
2003-11-05 9:14 [U-Boot-Users] application program Chan Queenie-r54684
@ 2003-11-05 23:42 ` Wolfgang Denk
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2003-11-05 23:42 UTC (permalink / raw)
To: u-boot
Dear Queenie Chan,
in message <239A78AC110CD711A1A500D0B7828CD806AD83D7@zhk08exm01.sps.mot.com> you wrote:
>
> Now, I encounter another problem. When my program is too large, there is certain part in my program I cannot run, ie. I cannot run certain functions when I call them, and the board hangs. I know I have run out of memory space, so I moved my loadaddr t
> o somewhere else, say 0x00300000. Then I do "go 300004". Although I can run at this new location, I still have the same problem: the board hangs when I call the same function. If I shorten my program a bit, I can run it.
>
> So my question is, how can I enlarge the program space? I've been searching through the codes but no luck.
I am not aware of any inherent linit on the size of a standalone
application. Of course I assume that your application is
well-behaviong, i. e. you do check the return codes of all functions
that might return error codes (like malloc()), you don't overflow the
stack by allocating vast amounts of dynamic data or running into
deeply recursive routines, etc.
> And one more question, I realize the entry point is always loadaddr + 0x04. Can I change that? If yes, please tell me where to change it.
You will have to modify the link command and/or use a custom linker
script.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
The price of curiosity is a terminal experience.
- Terry Pratchett, _The Dark Side of the Sun_
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] application program
@ 2003-11-05 17:08 Rune Torgersen
0 siblings, 0 replies; 3+ messages in thread
From: Rune Torgersen @ 2003-11-05 17:08 UTC (permalink / raw)
To: u-boot
I have seen that on large programs, the entry point changes from 40004 to
something else. If you do a SREC download instead of binary, it tells you
where the entry point is.
>Now, I encounter another problem. When my program is too large, there is
certain part in my program
>I cannot run, ie. I cannot run certain functions when I call them, and the
board hangs.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-11-05 23:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-05 9:14 [U-Boot-Users] application program Chan Queenie-r54684
2003-11-05 23:42 ` Wolfgang Denk
2003-11-05 17:08 Rune Torgersen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.