Accessing debugging output from STM32F4 Discovery board

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
crosstalk
Posts: 2
Joined: Wed Nov 21, 2012 5:42 am

Accessing debugging output from STM32F4 Discovery board

Post 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.
Abhishek
Posts: 266
Joined: Wed May 23, 2012 3:15 pm

Re: Accessing debugging output from STM32F4 Discovery board

Post 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
crosstalk
Posts: 2
Joined: Wed Nov 21, 2012 5:42 am

Re: Accessing debugging output from STM32F4 Discovery board

Post by crosstalk »

Thank you -- I'll give that a try (hopefully tomorrow) and let you know if I run into any issues.
mabl
Posts: 417
Joined: Tue Dec 21, 2010 10:19 am
Been thanked: 1 time

Re: Accessing debugging output from STM32F4 Discovery board

Post 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-embedded
https://github.com/EliasOenal/TNT
Post Reply