printf statement on a hyperterminal
Up to H8
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
jeromechia wrote: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?
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
it gives me a error L2310 undefined external symbol "_write"referenced in "_flshbuf"...
how to solve this problem , please ? thx a lot !!!!!!
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.
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.
Previously Michael Q wrote:
Acutally it was my post ... and it does not help... I think renesas HEW is a jerk...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!
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.
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
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:
- 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?
- _exit may be a function in the start-up code. See if you can locate it in resetprg.c
- Try Rebuild All
If you are still having trouble, try posting more details about what you're trying to accomplish.
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.
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.

