In article <ei7t4459fh2qkd9d80kho9ikm2h0j2mrte@4ax.com>, Rich Webb
says...
> On Tue, 10 Jun 2008 10:11:54 -0500, "adsouzp" <adsouzp@gmail.com>
> wrote:
>
> >yes, it will, i understand. however, what about the STR710 specific
> >parts such as those that enable printf to send data to UART console?
>
> Often, to use printf() in an embedded application you'll just need to
> write a putchar() that outputs a single char to your target device:
> LCD, serial port, FIFO queue, etc. Typically there's a stub for
> putchar() in the library; the new putchar() included in the
> application code will then be linked in place of the stub and used by
> printf().
Notwithstanding Rich's good advice, if you really want to get the full
newlib implementation you need to implement a set of stub functions.
I've done that for the LPC (NXP) series
http://www.aeolusdevelopment.com/Articles/download.html You could easily
do the same for the STR7.
Robert
** Posted from http://www.teranews.com **
Reply by Rich Webb●June 10, 20082008-06-10
On Tue, 10 Jun 2008 10:11:54 -0500, "adsouzp" <adsouzp@gmail.com>
wrote:
>yes, it will, i understand. however, what about the STR710 specific
>parts such as those that enable printf to send data to UART console?
Often, to use printf() in an embedded application you'll just need to
write a putchar() that outputs a single char to your target device:
LCD, serial port, FIFO queue, etc. Typically there's a stub for
putchar() in the library; the new putchar() included in the
application code will then be linked in place of the stub and used by
printf().
--
Rich Webb Norfolk, VA
Reply by adsouzp●June 10, 20082008-06-10
hello Francesco:
sorry for the long delay in replying.
On 17 May 2008 8:46, Francesco Sacchi replied:
> adsouzp ha scritto:
>> is there a port of newlib for the STR710?
>> where can i find it?
>
> AFAIK STM STR7 are ARM7TDMI cpus, so gcc and newlib will work for them.
> From the compiler point of view there's no difference between ARM
> cpus if the core is the same.
yes, but if i have to printf to the console that is connected to a UART,
wouldn't i need to do some STR71 specific programming?
how would GNUARM's newlib be able to use printf to send characters to
the STR710's UART?
i can understand how ARM7 only code will work, of course.
>> what platforms are supported by GNUARM's
>> newlib? will it work on the STR710?
>
> GNUARM (gcc + newlib) supports ARM7TDMI core, so I suppose it can work
> even on STR7 devices.
yes, it will, i understand. however, what about the STR710 specific
parts such as those that enable printf to send data to UART console?
that's why i wanted to know if someone has a ready newlib for STR710.
Aaron
Reply by Anton Erasmus●May 17, 20082008-05-17
On Sat, 17 May 2008 07:01:53 -0500, "adsouzp" <adsouzp@gmail.com>
wrote:
>hello:
>
>is there a port of newlib for the STR710?
>where can i find it?
>
>what platforms are supported by GNUARM's
>newlib? will it work on the STR710?
>
>thank you for the information,
You can download a free version of the Raisonance IDE (RIDE) from
the raisonance site. It comes with a gnuarm and some extra header
files and library code to help one to quickly get going on the ST ARMs
as well as the new ST Cortex devices.
http://www.raisonance.com
Regards
Anton Erasmus
Reply by Francesco Sacchi●May 17, 20082008-05-17
adsouzp ha scritto:
> hello:
>
> is there a port of newlib for the STR710?
> where can i find it?
>
> what platforms are supported by GNUARM's
> newlib? will it work on the STR710?
>
> thank you for the information,
AFAIK STM STR7 are ARM7TDMI cpus, so gcc and newlib will work for them.
From the compiler point of view there's no difference between ARM
cpus if the core is the same.
GNUARM (gcc + newlib) supports ARM7TDMI core, so I suppose it can work
even on STR7 devices.
--
_|/ Francesco Sacchi - Develer S.r.l., R&D dept.
|\ http://www.develer.com/ - http://www.bertos.org
Reply by adsouzp●May 17, 20082008-05-17
hello:
is there a port of newlib for the STR710?
where can i find it?
what platforms are supported by GNUARM's
newlib? will it work on the STR710?
thank you for the information,
Aaron
--
adsouzp@gmail.com