Page 1 of 1
Accessing debugging output from STM32F4 Discovery board
Posted: Wed Nov 21, 2012 5:50 am
by crosstalk
I'm new to embedded programming, and am just beginning to work on a STM32F4 Discovery kit. I am using summon-arm-toolchain for my toolchain, ChibiOS/RT, and OpenOCD to deploy the image. All of this is done from a Linux PC (Linux Mint).
I'm currently deploying over USB. Although I understand I should be able to get debug output (by which I mean printf-type output) from a UART, can I access it directly over USB? If so, how?
Thank you for any help.
Re: Accessing debugging output from STM32F4 Discovery board
Posted: Wed Nov 21, 2012 6:13 am
by Abhishek
If you are using the ARM-CM4-STM32F4DISCOVERY-MEMS demo, this uses the USB-CDC serial port. This means you can connect the microUSB connector (on the bottom of the board) to your system and it will work using the onboard USB which emulates a serial port.
If you are using the other demos, they use the USART peripheral and you would have to use an external COM port and connect the PA2 and PA3 lines to it through a MAX232/MAX3232.
If you do not have a USB serial port (or a real serial port) on your PC, you would probably try that demo. Since you are using Linux, it would work right away (windows users need to install a driver).
Best Regards
Abhishek
Re: Accessing debugging output from STM32F4 Discovery board
Posted: Wed Nov 21, 2012 6:38 am
by crosstalk
Thank you -- I'll give that a try (hopefully tomorrow) and let you know if I run into any issues.
Re: Accessing debugging output from STM32F4 Discovery board
Posted: Wed Nov 21, 2012 7:16 am
by mabl
Just to warn you:
summon-arm-toolchain has some problems with function calls and generates invalid assembler code. I've never figured out why. I recommend looking into one of those:
https://launchpad.net/gcc-arm-embeddedhttps://github.com/EliasOenal/TNT