This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: not possible to have a ROM app that's started by system w/ Redboot?


Ilija Kocho wrote:
> This may be example you are looking for:
> http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001623

Got decently far with this angle of changes.
We created a new startup type, and fiddled with most of the options for RAM/ROM in the .cdl file.  But from doing this, it's glaringly obvious that eCos does *NOT* support this setup; a ROM app run from Redboot, at least on the AT91, has to do a hybrid of the ROM and RAM startup types.  The Redboot documentation should clearly state that only apps built in the RAM startup type are supported IMHO.

Anyways, simple test apps seem to run, but one this we hit was that anything that does diag_printf gets stuck in the IF_IN_PUTC call...it just deep spaces (runs until it hits that) there in the debugger.  Single stepping into assembly doesn't even work if you put a breakpoint before that so we can't see where that goes (whether it's to a bad driver, etc.).  The simplest app like this:
void cyg_user_start(void)
{
    diag_printf("\r\nHello world!\r\n");
}
does the hang when compiled as an APPROM (that's what we called it instead of Flash as yours is called...maybe RBROMAPP for RedBootROMApp might be a better acronym?).

Did you hit this problem in your setup at all?  i.e., did you try diag_printf on your kinetis board?

 thanks,

 ken
--- Begin Message ---
On 26.09.2012 22:39, Ken Yee wrote:
> Any old timers on the list remember if this has ever been done successfully in the past?
> From the archives, I dug up these:
>
> http://sources.redhat.com/ml/ecos-discuss/2010-09/msg00018.html
> http://sourceware.org/ml/ecos-discuss/2012-06/msg00011.html
>
> The first guy in 2010 was told basically to use the ROMRAM setup (program in ROM, then Redboot copies it into RAM to run).
> No answer to the second guy.
> Can't find any examples in the docs.
>
> I'm getting the sense the answer is no, so we should just get rid of Redboot and run the app directly out of ROM, though it'd be nice if we could use Redboot because Redboot would be useful in unbricking a device w/o a JTAG debugger...

This may be example you are looking for:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001623

I hope this helps

Ilija

DQ1FBOjEwDù#

--- End Message ---
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]