Hi
I am currently working with a MC9S08GT32A target connected via BDM to a Demo9S08QG8 development board. The interface with Codewarrior V6.0 is P&E Multilink Cyclone Pro.
My question is is it possible to redirect the output from the printf statement not to one of the 2 SCI ports but to the BDM interface itself so that I can view using the terminal window in True time simulator
Any suggestions would be much appreciated
I don't think you can redirect to the BDM port. Since it is a usb peripheral, it can only respond to requests from the master (PC).
You can output to the debugger terminal window via a SCI port, so why not use this way?
You will have to check with the debugger setup. I have found in the past that not all SCI ports are able to output to the terminal window, but usually at least one of them can.
uCTechnoGeek
I was talking about the terminal window emulator built into the debugger. I don't think it uses the UART on the PC.
I think it just extracts the data from the running code and shows it like it was an external terminal window.
are you sure it is possible to redirect SCI I/O to terminal window when running code in simulator? I know this is possible for S12(X) and Coldfire targets. But HCS08 and RS08?
When I Set Connection = COLDFIRE, Full Chip Simulator, in the edit box below I see
"This Connection supports:
- Freescale Coldfire V1 Full Chip Simulation"
When I Set Connection = HCS08, Full Chip Simulator, I see:
"This Connection supports:
- P&E HCS08 Full Chip Simulation (FCS)"
As far as I know with P&E FCS it's not possible to printf to simulator terminal window. Unfortunately. Would be nice to have such feature.
Hello
Are you debugging on real hardware or on simulator?
If you are debugging on simulator, you cannot redirect stout to terminal window (as far as I know).
If you are debugging on real hardware, you should be able to redirect Terminal window to display character coming on serial port.
Make sure to connect your board SCI to one of the PC serial port.
Configure the Terminal window to use Serial Port instead of Virtual SCI.
I agree with you that printing to simulator terminal window would be a neat feature to add.
Here I would suggest you to submit a Change request for that through our on line support web site.
https://www.freescale.com/webapp/servicerequest.create_SR.framework?regFlag=fromOpenSR
CrasyCat
Hello- thanks for your reply
I am debugging on real hardware and have re directed the terminal window to display characters coming in on a serial port.
What I really wanted to do was to display in a window in the debugging environment the output of printf statements in my program.
It is possible to put a breakpoint in , halt the program and then enter printf commands in the command window, I was trying to do this automatically (via bdm) from my program when it was running
Thanks