Personal tools
You are here: Home Forums H8 printf statement on a hyperterminal

printf statement on a hyperterminal

Up to H8

printf statement on a hyperterminal

Posted by jeromechia at September 09. 2006
Hi,

I currently developing a mini project using the H8S-2377.
Im using a hyperterminal to communicate with the development board.
My Qxn is:
When the hyperterminal is running, how do I have words already on the screen
like a printf statement.
I.e: when the hyperterminal is open, The words should appear and remain there.
Thanks

RE: printf statement on a hyperterminal

Posted by pn_admin at September 11. 2006
jeromechia wrote:
Hi,
I currently developing a mini project using the H8S-2377.
Im using a hyperterminal to communicate with the development board.
My Qxn is:
When the hyperterminal is running, how do I have words already on the screen
like a printf statement.
I.e: when the hyperterminal is open, The words should appear and remain there.
Thanks
Do you mean you want some advice as to how to send text to H.T or do you mean that text you did not send is already on H.T?

RE: printf statement on a hyperterminal

Posted by Michael Q at July 13. 2007
dear friends , i got the same problem for H8sx , i would like to use printf to output some string and values to the computr through the hyperterminal .... but i am in trouble...
it gives me a error L2310 undefined external symbol "_write"referenced in "_flshbuf"...
how to solve this problem , please ? thx a lot !!!!!!

RE: printf statement on a hyperterminal

Posted by George Patsilaras at July 17. 2007
The compiler cant find some libraries most likely.

This is for a different controller but same principal:

http://www.renesasrulz.com/forum/sh-family/994927242/#859103224

Let me know if that doesn't help you.

RE: printf statement on a hyperterminal

Posted by Michael Q at July 18. 2007
Acutally it was my post ... and it does not help... I think renesas HEW is a jerk...
I deleted printf.... all of them , and it tells something wrong with exit... such like it gives me a error L2310 undefined external symbol "_exit" referenced in x:\xxxxxxxx xxxx.obj"
if i delete both printf and exit, my project is nothing to process...
so i really want to know where is the problem.

RE: printf statement on a hyperterminal

Posted by Rob Wehrli at August 04. 2007

Previously Michael Q wrote:

Acutally it was my post ... and it does not help... I think renesas HEW is a jerk...
I deleted printf.... all of them , and it tells something wrong with exit... such like it gives me a error L2310 undefined external symbol "_exit" referenced in x:\xxxxxxxx xxxx.obj"
if i delete both printf and exit, my project is nothing to process...
so i really want to know where is the problem.

You need to link to the C-runtime library. Removing symbols from your code so it will link is like telling everyone to get out of the car so that you can drive them to town. HEW can not prevent user error. Take Care. Rob!

Re: printf statement on a hyperterminal

Posted by ioannes at June 30. 2008

Hello, I have the same problem !!!  But I do not undersand Rob's suggestion. I already have C-Runtime libraries linked !!! It is impossible to deselect them !!! (I am using SH2 - 7086 device)

Any other suggestion ?

thanks

Re: printf statement on a hyperterminal

Posted by Calvin Grier at June 30. 2008

Rob was suggesting that the problem reported by the linker should be resolved by fixing the linker, not disabling all of the function calls in the source code.

There's a couple of troubleshooting tips that might help:

  1. try going back to a version of the project that didn't report the errors. See if you can "reproduce" the problem. Does doing that help you understand what's wrong?
  2. _exit may be a function in the start-up code. See if you can locate it in resetprg.c
  3. Try Rebuild All

If you are still having trouble, try posting more details about what you're trying to accomplish.

Re: printf statement on a hyperterminal

Posted by Michael Thomas at July 10. 2008

The reason you are having issues with printf is because a file lowlvl.src is not included in your project. The printf() function uses processor specific primitives that are defined in this file. Without it printf will not compile.

Refer to an earlier thread on the exact same question posted by Hoong Song in this forum. I have answered that and included a workspace as well.

Re: printf statement on a hyperterminal

Posted by Michael Thomas at July 10. 2008

http://www.renesasrulz.com/forum/h8/933110165  That is the link on teh thread that explains how to use the printf and includes a sample workspace.

Powered by Ploneboard