Hi Victor,
>> I'm certain I read somewhere that they provides puts() output
>> code from their initial bootloader. I'd write something like
>> a hello-world program that sends a message to the serial port,
>> and then after that figure out how to program an interrupt.
>
> Could you please elaborate on the puts() function usage in the "hello
> world (write to serial)" program for understanding how interrupt
> handlers are programmed. Are you suggesting using puts() inside the
> hello world? and set breakpoints to see where the program jumps during
> the puts command?
The idea would be to get puts() working without any interrupts,
so that you can confirm you are booting your own code and
it is hooked into TS's code correctly. Then modify the code
to enable interrupts and connect up an interrupt handler
(similar to the LPC2000 document I referred to). The code could
initialize a global to zero, and then set it in the ISR. Your
main application code could just poll the variable until
set. Eg. lets say you hooked up an interrupt on an external
pin, and attached a push-button. Every time you pressed the
button your app could print a message, and clear the global
variable. Once you have that working, you know how interrupts
work, and you have sufficient information to port the RTOS.
Cheers,
Dave
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|