Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 11 months ago.
Serial communication doesn't work (Using teraterm)
I am new mbed programming and in process of learning it. I wrote a really simple program that outputs something to a console. Since we don't get outputs in the console (using Keil), we have to establish a serial connection for which I used Teraterm. Despite setting the parameters and selecting the correct port, I am not getting anything in the display. What I may be doing wrong?
Regards
Question relating to:
1 Answer
6 years, 11 months ago.
Hi Huzaifa,
Thanks for getting in touch and welcome! :)
If you could post your code here that would help to :)
So, the best place to start to look is here: https://docs.mbed.com/docs/mbed-os-api-reference/en/latest/APIs/interfaces/digital/Serial/
Now remember that mbed defaults to 9600 baud, unless you specify otherwise, so make sure this is set in TeraTerm.
Now if thats all good. Then here are some points that may be causing the issue.
1. You need to install mbed serial driver - https://developer.mbed.org/handbook/Windows-serial-configuration 2. You need to install STlink drivers - https://developer.mbed.org/teams/ST/wiki/ST-Link-Driver
Let me know if there is anything else i can help with! :)
Regards,
Andrea, team mbed
Thanks for the response. I did configure teraterm the way they showed and still of no help! I feel like mbed serial drivers aren't installed. Anyways, I realized I should work on simulation mode for now. So when I put a breakpoint and enter the debug mode, upon clicking 'run' option, I get "* error 65: access violation at 0x40023804 : no 'write' permission". My attempt was I mapped the range of the addresses in the intialization file.. "MAP 0x40023800, 0x4002380F READ WRITE" but still didn't get rid of it. I will really appreciate your help!
posted by 09 May 2017