2013-12-09 06:19 PM
Hello everyone,
I wrote a hello world program, which is used eCos, for STM32F4 Cortex-M4 platform. Then, I type the command, which is sudo screen /dev/ttyUSB0 -115200, to see the result in the Ubuntu 12.04. It always loses the first character. But, I use putty to see the result in the Window 7. It is fine. No character data is lost. Thank you in advance for your help. #stm32f4 #ecos #ubuntu2013-12-09 11:03 PM
PuTTY is a terminal; screen (AIUI) is not.
http://en.wikipedia.org/wiki/PuTTY
http://www.rackaid.com/resources/linux-screen-tutorial-and-how-to/
Have you tried this with a proper terminal under Ubuntu?Maybe your Ubuntu is expecting (hardware) flow control to be observed...?2013-12-10 01:25 AM
Thanks you for your hits.
I change to use minicom to see the result. It's successful. :)2014-04-18 09:39 AM
Gapry,
I suppose your ''Hello World'' program must have printf() in it. If it is true, I hope you would tell me how do you build that program. My platform is same like yours - stm32f4discovery. My host system is 32-bit Ubuntu-13.10 with arm-none-eabi-gcc-4.8.3 20140228 and stlink installed. The stlink st-util utility and the arm-none-eabi-gdb debugger work good on the debugging of my LED blinking program. I am now trying to enable the logging mechanism. Yesterday I encountered a problem of building my program which has the printf() code in it. Your feedback, I believe, could help me to resolve this building problem. Thanks, Tommy2014-04-18 11:27 AM
Probably need to add some additional code to get printf() working and fix up linkage issues.
seehttps://docs.google.com/file/d/0B7OY5pub_GfIcnFFUGJRT3ZTV00/edit