[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-720333-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-720333-en":130,"doc-similar-720333":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","stmicroelectronics-cortex-m4-training-stm32f407-discovery-serial-wire-viewer-summer-2014-version-23-tutorial","STMicroelectronics Cortex-M4 Training STM32F407 Discovery - Serial Wire Viewer - Summer 2014 Version 2.3 - Tutorial","","Instructional guide for training with the STMicroelectronics Cortex-M4 processor on the STM32F407 Discovery evaluation board using the ARM Keil MDK toolkit, IDE µVision, and the on-board ST-Link V2 debug adapter. Covers Serial Wire Viewer (SWV) for real-time PC samples, exceptions, memory accesses, ITM output, and timestamps, plus Embedded Trace Macrocell concepts for code tracing and coverage. Explains MDK-Lite limits, RTX RTOS integration, RTX Viewer kernel awareness, breakpoints/watchpoints, and practical lab steps including Blinky and RTX_Blinky.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/stmicroelectronics-cortex-m4-training-stm32f407-discovery-serial-wire-viewer-summer-2014-version-23-tutorial/720333/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/stmicroelectronics-cortex-m4-training-stm32f407-discovery-serial-wire-viewer-summer-2014-version-23-tutorial/720333.png","ImageObject",300,407,{"name":42,"@type":43},"Jasmine","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-24","2026-11-18",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What tools does this tutorial use to work with STM32F407 Cortex-M4?","Question",{"text":62,"@type":63},"It uses the ARM Keil MDK toolkit with the µVision IDE and the Serial Wire Viewer (SWV), together with the on-board ST-Link V2 Debug Adapter.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"What can Serial Wire Viewer (SWV) display during program execution?",{"text":67,"@type":63},"SWV shows PC samples, exceptions (including interrupts), data reads/writes, ITM (printf), CPU counters, and timestamps, sourced from the ARM CoreSight debug module in the STM32 CPU.",{"name":69,"@type":60,"acceptedAnswer":70},"How does RTX integrate with Keil MDK in these labs?",{"text":71,"@type":63},"All MDK variants include RTX with source code, and the tutorial uses RTX Viewer (kernel awareness) to update while the program runs, alongside examples such as RTX_Blinky.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},720333,1795036632,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":33,"preview_urls":145},2336478487870,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","STMicroelectronics: Cortex™-M4 Training STM32F407 Discovery evaluation board using ARM® Keil ™ MDK toolkit  \nfeaturing Serial Wire Viewer Summer 2014 Version 2.3 by Robert Boys, [bob.boys@arm.com](bob.boys@arm.com)  \nIntroduction:  \nThe latest version of this document is here: For a CAN lab on the STM32F4 Discovery:  \n[www.keil.com/appnotes/docs/apnt_261.asp](www.keil.com/appnotes/docs/apnt_261.asp)[ ](www.keil.com/appnotes/docs/apnt_261.asp)[www.keil.com/appnotes/docs/apnt_236.asp](www.keil.com/appnotes/docs/apnt_236.asp)  \nThe purpose of this lab is to introduce you to the STMicroelectronics Cortex™-M4 processor using the ARM® Keil™ MDK toolkit featuring the IDE μVision® . We will use the Serial Wire Viewer (SWV) and the on-board ST-Link V2 Debug Adapter. At the end of this tutorial, you will be able to confidently work with these processors [and Keil MDK. See www.keil.com/st](and Keil MDK. See www.keil.com/st). Keil MDK supports and has examples for most ST ARM processors. Check the Keil Device Database ® [on](on www.keil.com/dd)[ ](on www.keil.com/dd)[www.keil.com/dd](on www.keil.com/dd)[ ](on www.keil.com/dd)[for the complete list which is also included in MDK: in](for the complete list which is also included in MDK: in) μVision, select Project/Select Device for target…  \nLinux: For ST processors running Linux, Android and bare metal are supported by ARM DS-5™ . [www.arm.com/ds5](www.arm.com/ds5) .  \nKeil MDK-Lite™ is a free evaluation version that limits code size to 32 Kbytes. Nearly all Keil examples will compile within this 32K limit. The addition of a valid license number will turn MDK into a full commercial version.  \nRTX RTOS: All variants of MDK contain the full version of RTX with source [code. See](code. See www.keil.com/rl-arm/kernel.asp)[ ](code. See www.keil.com/rl-arm/kernel.asp)[www.keil.com/rl-arm/kernel.asp](code. See www.keil.com/rl-arm/kernel.asp). Why Use Keil MDK ? MDK provides these features particularly suited for Cortex-M users:  \n1. µVision IDE with Integrated Debugger, Flash programmer and the ARM® Compiler toolchain. MDK is a turn-key product.  \n2. A full feature Keil RTOS called RTX is included with MDK. RTX comes with a BSD type license. Source code is provided. See [www.keil.com/demo/eval/rtx.htm](www.keil.com/demo/eval/rtx.htm for)[ for](www.keil.com/demo/eval/rtx.htm for) full RTX software.  \n3. Serial Wire Viewer and ETM trace capability is included.  \n4. RTX Kernel Awareness window. It is updated in real-time.  \n5. Keil Technical Support is included for one year and is easily renewable. This helps you get your project completed faster.  \nThis document details these features:  \n1. Serial Wire Viewer (SWV) and ETM trace. Real-time tracing updated while the program is running.  \n2. Real-time Read and Write to memory locations for Watch, Memory and RTX Tasks windows. These are nonintrusive to your program. No CPU cycles are stolen. No instrumentation code is added to your source files.  \n3. Six Hardware Breakpoints (can be set/unset on-the-fly) and four Watchpoints (also known as Access Breaks) .  \n4. RTX Viewer: a kernel awareness program for the Keil RTX RTOS that updates while your program is running.  \n[5. A DSP example program using ARM CMSIS-DSP libraries. www.arm.com/cmsis](5. A DSP example program using ARM CMSIS-DSP libraries. www.arm.com/cmsis)  \nSerial Wire Viewer (SWV):  \nSerial Wire Viewer (SWV) displays PC Samples, Exceptions (including interrupts), data reads and writes, ITM (printf), CPU counters and a timestamp. This information comes from the ARM CoreSight™ debug module integrated into STM32 CPU. SWV does not steal any CPU cycles and is completely non-intrusive. (except for the ITM Debug printf Viewer) .  \nCoreSight displays memory contents and variable values in real-time and these can be modified on-the-fly.  \nEmbedded Trace Macrocell (ETM):  \nETM records and displays all instructions that were executed. This is very useful for debugging program flow problems such as “goin","cbCaipvHYq8SNeBO","https://ap.wps.com/l/cbCaipvHYq8SNeBO","pdf",1413725,33,"English","# Keil Evaluation Software\n# Keil Software Installation\n# CoreSight Definitions\n# CMSIS: Cortex Microcontroller Software Interface Standard\n# Configuring the ST-Link V2\n# Blinky example using the STM32F4 Discovery board\n# Hardware Breakpoints\n# Call Stack & Locals window\n# Watch and Memory windows and how to use them\n# How to view Local Variables in Watch and Memory windows\n# View Variables Graphically with the Logic Analyzer (LA)\n# Watchpoints: Conditional Breakpoints\n# RTX_Blinky example\n# RTX Kernel Awareness using RTX Viewer\n# Logic Analyzer: View variables real-time in a graphical format\n# ITM (Instrumentation Trace Macrocell)\n# Serial Wire Viewer (SWV) and how to use it\n## Data Reads and Writes\n## Exceptions and","[{\"question\":\"What tools does this tutorial use to work with STM32F407 Cortex-M4?\",\"answer\":\"It uses the ARM Keil MDK toolkit with the µVision IDE and the Serial Wire Viewer (SWV), together with the on-board ST-Link V2 Debug Adapter.\"},{\"question\":\"What can Serial Wire Viewer (SWV) display during program execution?\",\"answer\":\"SWV shows PC samples, exceptions (including interrupts), data reads/writes, ITM (printf), CPU counters, and timestamps, sourced from the ARM CoreSight debug module in the STM32 CPU.\"},{\"question\":\"How does RTX integrate with Keil MDK in these labs?\",\"answer\":\"All MDK variants include RTX with source code, and the tutorial uses RTX Viewer (kernel awareness) to update while the program runs, alongside examples such as RTX_Blinky.\"}]","STMicroelectronics Cortex-M4 Training STM32F407 Discovery - Serial Wire Viewer - Summer 2014 Version 2.3 - Tutorial | PDF",83,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/bcbaa906d3693710a6dea02cf7ca259c.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/f827a310a27da472c87dc18d27c27789.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/a6abd86e531d417e4abd1124d6cbb999.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/6a704372a0a90b7631ebf9a7bd4f0458.webp",980,1268,{"list":163,"token":11},[164,170,177,183,190,197,204,211,218,225],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":96,"category_name":29,"create_tm":169},700394,"Infineon XMC1100 2Go Kit - Cortex-M0 Lab - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012025123/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=pjrY%2B%2BPSwUuLFdiyxvgrd2v%2FWhM%3D","infineon-xmc1100-2go-kit-cortex-m0-lab-introduction",1794518546,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":29,"create_tm":176},400033,"CEC1702 Cryptographic Embedded Controller - Key Features Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229919942448/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=toW5phORfdc0mFGYxDbUtdJ7zx8%3D","cec1702-cryptographic-embedded-controller-key-features-overview",15,1790506772,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":101,"category_name":29,"create_tm":182},700347,"STM32429I-EVAL evaluation board for STM32F429","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011565177/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=1Ag4d8UFuTcONCdffECJpLpiwF0%3D","stm32429i-eval-evaluation-board-for-stm32f429",1794518354,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":29,"create_tm":189},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=aAcGp3dYlEOKdAAvc%2BhS1HWg7z0%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",912,1785472614,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":29,"create_tm":196},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=ioTtHEYx44yTbrYNYFRYPoUTFK8%3D","xnx-universal-transmitter-installation-manual",854,1776135954,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":29,"create_tm":203},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=uzaASthMzUPFOsX6Gykjrg7zsXQ%3D","the-candlestick-trading-bible-trading-guide",804,1789767270,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":209,"category_name":29,"create_tm":210},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=BDqADcIylyLgKtq1j7qz8y1cqlU%3D","free-fire-proxy-server",565,1776135932,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":29,"create_tm":217},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=8uMEnw8k2DscKb%2FoaJjL6YgB2ok%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",498,1786012506,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":223,"category_name":29,"create_tm":224},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=l9z0wcbwhUoc0SXFeMcZdTdt4H4%3D","tiktok-content-tricks-from-0-to-fyp",489,1776338393,{"doc_id":226,"doc_title":227,"file_type":137,"home_preview_img_url":228,"slug":229,"view_count":230,"category_name":29,"create_tm":231},387603,"Building Applications with AI Agents - Multiagent Systems - Designing and Implementing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916172328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=s9PqHsKWogyEXmkakXqJLNHargo%3D","building-applications-with-ai-agents-multiagent-systems-designing-and-implementing",454,1790287169]