|
TM STM32F4xx Libraries
v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
|
SWO Debugging library for Cortex-M4/M3 processors including STM32F4xx - http://stm32f4-discovery.com/2014/12/library-46-debug-stm32f4-device-swo-feature/. More...
Modules | |
| TM_SWO_Macros | |
| Library defines. | |
| TM_SWO_Functions | |
| Library Functions. | |
SWO Debugging library for Cortex-M4/M3 processors including STM32F4xx - http://stm32f4-discovery.com/2014/12/library-46-debug-stm32f4-device-swo-feature/.
Instead of using UART for debugging your program, you can use better solution for this.
STM32F4xx (all Cortex-M4 MCUs) have SWD programming/debugging mode.
It also contains SWO (Single Wire Output) for debugging purpose.
This output works only (!!) when you are in debug mode with your processor.
This library allows you to send data to PC using SWO peripheral.
Library is designed in a way that you can with simple define disable debug functionality, but you don't need to clear all your debug statements somewhere in your code.
By default, debug mode is active, but if you want to disable it, you can open defines.h file and add following define inside:
//Disable debug mode, disable all functions #define SWO_DEBUG_ENABLED 0
Note, that if you don't disable SWO debugging in end application, it will work, but will take some processor cycles to try to output data. To prevent this checking, using define above, my functions becomes empty defines and compiler will throw them out from program.
Important notes:
Pin PB3 is output for SWO in STM32F4xx.
Version 1.0 - First release
- STM32F4xx - defines.h - TM STDIO - stdio.h