3/16/2024 0 Comments Keil 5 debug stm32f4Select your debugger, if you are working with STM32F4-Discovery, select ST-Link.Open “Options for Target” -> “Debug” tab.First is that you need to specify real CPU clock so trace will be synchronous (like baudrate in USART). To get this to work, you have to make sure for some things. In production (non debug) mode, SWV will not work. This feature is enabled only when MCU is in debug mode. If you are using external programmer/debugger (Keil ULINK2, Keil ULINK Pro, Segger J-Link, etc), then you should check if they have SWO option, but every serious debugger should have this! Some boards (like F429-Discovery) needs solder bridge if you want to enable connection. ST-Link on STM32 boards has this input, if SWO from MCU is connected to ST-Link by default, check schematics. This is called SWV (Serial Wire Viewer) using SWO ( Serial Wire Output) output. Full SWD also enables you to output something from MCU which debugging. For programming, only clock and data lines are required. All STM32 boards, which have ST-Link on board, uses this option. STM32F4 has SWD ( Serial Wire Debug) option for programming/debugging. This can be used instead of one USART available in STM32F4 to display data to user when something is going wrong and you want use debug. All Cortex-M4 devices have feature to output different data for debugging.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |