Board and software communication

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Board and software communication

3,548 Views
abbrielle
Contributor I
Hi,
I am new to programming microcontrollers and I was wondering how am I able to use the terminal to send/receive messages? I m using  HCS12X microcontrollers CodeWarrior and the board model is MC9S12XFR128EVB. Am currently using a Multilink for communication.
 
Thanks.
ML
 
Labels (1)
0 Kudos
Reply
6 Replies

1,578 Views
abbrielle
Contributor I
Greetings,
 
Is the P&E Multilink USB considered a serial port? Also, i failed to mention that this board is a Flexray module and I have 2 development boards and would like to have it interact with one another.
I have no printfs but mostly memory buffers.
How can I display it in the terminal? Do I still need to include printfs?
Thanks.
 
ML:smileyvery-happy:  
 
0 Kudos
Reply

1,578 Views
CrasyCat
Specialist III
Hello
 
I probably misunderstood the question.
Are you looking for a way to look at the content of memory from your target board in the debugger?
 
You can just look at the Memory Window in CodeWarrior Debugger.
 
If this is not what you are looking for, can you please explain what you want to achieve here.
 
CrasyCat
0 Kudos
Reply

1,578 Views
abbrielle
Contributor I
I am looking for a way to see the input and output through the terminal. I would like to see if the output has the same result as the input but I am not sure how to implement using the terminals.
 
There are some termio files which I am not sure how to use it. Could you shed some light on this problem?:smileyhappy:
 
 
0 Kudos
Reply

1,578 Views
Alban
Senior Contributor II
Hello,
 
If you look through the 16-bit board you will see a lot of discussion on the SCI and how to use the Terminal.
You will also be able to find pieces of software you can plug into your EVB.
SCI modules of the S12X are able to work as UART. The only thing is that a computer serial port is about 12V and not 3-5V, so you need to translate the level.
But once again, all this info is available in previous posts.
I can also advise you CodeWarrior boards for the use of the printf in embedded. There is more than one long thread about options and members who posted their worries and solutions.
 
USB multilink is a single wire debugger but is not a "serial port" as I believe you mean it.
 
FlexRay protocol is not that easy and you will need to read documentation. You cannot improvise on FlexRay.
 
Regards,
Alban.
 
 
 
0 Kudos
Reply

1,578 Views
abbrielle
Contributor I
Hello,
Could you please advise on how to use the printf embedded? Basically we got the boards to work but my main issue is how to get the results to display? I am new to Code Warrior and have no experience in microcontroller programming. Another software engineer and I are trying to learn CodeWarrior but we are not sure.
 
Also, are there any demo codes which allows me to to hook a LED to the board and test it. My goal is to light up the LED when there the information is sent and I have no idea how to implement that. Does the registers play any role here and if so how can I get them connected?
 
Thanks!
0 Kudos
Reply

1,578 Views
CrasyCat
Specialist III
Hello
 
Hello do you mean you want to redirect stdout (printfs) from your application to the terminal window in the CodeWarrior debugger?
 
This is possible is:
   1- You connect the target board SCI to one of your Host serial port
   2- You link an implementation of termio.c writing to the target board SCI to your application
   3- You Map the terminal window to the host serial port.
        This is done as follows:
            - Open a Terminal window
            - Click right in the window and select "Configure Connection"  
            - Set "Default Configuration" to "Serial Port"
            - Specify the appropriate serial port and baud rate and this should be it.
 
CrasyCat
0 Kudos
Reply