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: Fw: Re: how to run redboot on LPC2148


abhishek srivastava wrote:
> thanks for your reply!

Please, do not top post.

> i did as u said for hyperterminal (connection running) but i could not
> see any redboot prompt.

Why did you spell redboot? What did you build and what did your burn in
ROM at all?  Is that redboot image with image with GDB stubs?

> when i press + it halts for 1-2 sec then resumes.
> whts tht?

Take a bit of time to read (at the least appendix D. GDB Remote Serial
Protocol) http://sourceware.org/gdb/current/onlinedocs/

Appendix D. GDB Remote Serial Protocol
http://sourceware.org/gdb/current/onlinedocs/gdb_34.html#SEC717

Okay. Easy, easy. Did you build any eCos test, eg, hal's 'basic' test for
ROM startup? Does it work? What did you see in hypertem? If you did not
try lightweigth eCos ROM applications, Do not dance with GDB/RedBoot!

Try it in cygwin bash

ecosconfig new <your_target_alias> minimal

cat >fix.ecm << EOF
cdl_component CYG_HAL_STARTUP {
    user_value ROM
};

cdl_option CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE {
    user_value 4096
};
EOF

ecosconfig import fix.ecm

ecosconfig tree
make -s && make -C hal/common/current tests

arm-eabi-objcopy -O ihex install/tests/hal/common/current/tests/basic basic.hex

You have to get basic.hex now to burn it in lpc ROM... Burn it, connect
serial cable, run hyperterm (38400,n,8,1), reset board. What will you
see? I thought about your port code. Is is alive? Next, get other tests
in ihex format and try all them. All tests works for ROM startup? Only
then go to GDB/RedBoot/stubs, etc.

Sergei

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