Report
2 weeks, 5 days 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:

Affordable and flexible platform to ease prototyping using a STM32F401RET6 microcontroller.
Comment on this question

2 Answers

2 weeks, 5 days 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 Huzaifa Asif 09 May 2017
2 weeks, 5 days ago.

Hello Huzaifa, You could try ST example code Nucleo-printf here https://developer.mbed.org/teams/ST/code/Nucleo_printf/?platform=ST-Nucleo-F401RE to check that your teraterm setup, usb and st-link drivers setup are correct. The hyperterminal configuration for this example is the following: 9600 bauds, 8-bit data, no parity

Kind regards Armelle


To post an answer, please log in.