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: Debugging via JTAG - problems?


On 25.04.2013 02:13, Lukas Riezler wrote:
> Hello ecos-guys!
>
[snip]
> 8) I am able to start debugging --> the debugger starts at vectors.S and after some steps I get into the main() of Hello World. What makes me a little
>    perplex is that I don't leave vectors.S until I reach the main() of Hello World.
>    I expected that I should run through the different files of the HAL to see among other things the steps of my clock initialisation.

How do you get to main? by single stepping? Breakpoint?
Put breakpoint on hal_system_init() . That's an early breakpoint and
will give you chance to step through system booting.

> 9) like I said I arrive at main() of Hello World...but exactly the line of code which should cause the LED to switch on is ignored by the debugger!

It is possible that your code has been optimised by GCC. Did you get
some warnings for unused variables from GCC? I assume you are writing to
some port, try to declare the port (variable) as volatile.

>    A few steps later I get with the debugger to serial.c
> Do you know what I'm doing wrong? If there are some passages you don't really understand because of my english --> please tell ;)
>
> ---
>
> By the way - can you tell me what I have to do for answering in the mailing-list? I think I still don't understand how that works ;)
> With kind regards, Lukas

You simply reply to the e-mail (I assume that you do so). If you click
reply to all recipients than the mailing list address should appear as
either To or Cc. One thing that you should take care is to send only
plain text (no HTML).

Ilija


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