LCD of PBMCUSLK (project board 2)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LCD of PBMCUSLK (project board 2)

跳至解决方案
3,761 次查看
q8Nsde
Contributor I
 i have PB\MCUslk,
when i download my application on  MCU , the output must appear on the LCD , but it didnt
 
 
note:the LCD is on but there is no result appear on it
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,508 次查看
CrasyCat
Specialist III
Hello
 
CodeWarrior for HC08 V5.1 is configured to redirect stdout (printf) to a SCI.
If you want to see output of your printf on your LCD:
  - Start CodeWarrior
  - Open the file {Install}\lib\hc08c\src\termio.c
  - Select "File" -> "Save As"
  - Save the file in your project source directory and give is a meaningful name (for example
     term_LCD.c)
  - Add that file to your project
  - Modify the implementation of the functions TERMIO_Init and  TERMIO_PutChar to respectively
     initialize the LCD device and send a character there.
  - Define an empty TERMIO_GetChar as you will not be able to get input char from the LCD.
  - Build the application.
 
That should do it.
 
CrasyCat

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,508 次查看
CrasyCat
Specialist III
Hello
 
According to Freescale web page, PBMCUSLK is available for different microcontrollers. So I need more information to answer your question.
 
- Which CPU are you targeting (HC08, HC12, Coldfire, ..)
- Which version of CodeWarrior are you using?
  To retrieve that info:
  - Start CodeWarrior
  - Select Help -> About Freescale CodeWarrior
  - Click on "Install Products"
  - CodeWarrior version used is displayed on top in the Installed Products dialog.
 
Finally how are you trying to print something to the LCD? Are you expecting stdout (printf) to be redirected there?
 
CrasyCat
0 项奖励
回复
1,508 次查看
q8Nsde
Contributor I
hello CrasyCat,
as answetrof your questions:
 
 CPU im targeting  is HC08
version of CodeWarrior is 5.1
if u need any more information ask it
 

 
 
0 项奖励
回复
1,508 次查看
q8Nsde
Contributor I
and,
yes i expect output on LCD , as my application software that i loaded in  the cpu programmed
0 项奖励
回复
1,509 次查看
CrasyCat
Specialist III
Hello
 
CodeWarrior for HC08 V5.1 is configured to redirect stdout (printf) to a SCI.
If you want to see output of your printf on your LCD:
  - Start CodeWarrior
  - Open the file {Install}\lib\hc08c\src\termio.c
  - Select "File" -> "Save As"
  - Save the file in your project source directory and give is a meaningful name (for example
     term_LCD.c)
  - Add that file to your project
  - Modify the implementation of the functions TERMIO_Init and  TERMIO_PutChar to respectively
     initialize the LCD device and send a character there.
  - Define an empty TERMIO_GetChar as you will not be able to get input char from the LCD.
  - Build the application.
 
That should do it.
 
CrasyCat
0 项奖励
回复