sander dijkstra

Can't print on the monitor

Discussion created by sander dijkstra on Oct 18, 2006
Latest reply on Oct 19, 2006 by CrasyCat
Hi all,
 
For days i've been trying to print something on my monitor, but without succes.
 
I use the MC9S12DP512 (CardHCS12) which has the Twinpeeks monitor on it. Thereby I use the OC-console and CodeWarrior.
 
The following example works in the Simulator and I can load it into the HCS12 with OC-console (after using sreccvt and updating the .prm-file to prevent "invalid bank load address errors" ).
When I run the prog, the HCS12 responds (I assume, because the default led stops) but doesn't show anyting on the OC-console.
 
--example from CW Help System: "Library: printf support"---
 
#include "Cpu.h"
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
#include <stdio.h>
#include <termio.h>
void main(void)
{
 /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
 PE_low_level_init();
 /*** End of Processor Expert internal initialization.                    ***/
 
 TERMIO_Init();
 for (;:smileywink: {
   (void)printf("Hello %s\n", "World");
 }

 /*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
 for(;:smileywink:{}
 
(I also tried the Guess the Number-tutorial without succes)
 
Can somebody give me a hint how to get printf working?? 
 
Thank a lot,
Sander Dijkstra
 

Outcomes