[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-720226-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-720226-en":130,"doc-similar-720226":160},{"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","stm32-datasheet-and-user-manual-lecture-5-microprocessor-based-systems-e155","STM32 Datasheet and User Manual - Lecture 5 - Microprocessor-based Systems (E155)","","Lecture 5 for microprocessor-based systems (E155) explains how startup code prepares a Cortex-M4 application before main runs. It covers the startup.c workflow, vector table setup, stack pointer, reset_handler location, copying initialized data from flash to RAM, initializing global/extern variables in .bss, and the jump to main with correct linker mapping. The lecture then introduces STM32F401RE documentation (datasheet, reference manual, programming manual, Nucleo-64 user manual) and guides “datasheet hunting” questions covering memory addresses, flash/RAM sizes, clocks, GPIO count, package, electrical characteristics, and OSC_IN pin location.",{"@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/stm32-datasheet-and-user-manual-lecture-5-microprocessor-based-systems-e155/720226/",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/stm32-datasheet-and-user-manual-lecture-5-microprocessor-based-systems-e155/720226.png","ImageObject",300,407,{"name":42,"@type":43},"Rowan","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-23","2026-11-18",true,{"@type":52,"interactionType":53,"userInteractionCount":26},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What is the purpose of startup code before main runs?","Question",{"text":62,"@type":63},"Startup code sets up the vector table and stack pointer, performs reset_handler logic, copies initialized variables from flash to RAM, initializes .bss global/extern variables, and then jumps to main. It must execute before any other program actions.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How does this lecture suggest you use STM32 documentation for hardware details?",{"text":67,"@type":63},"It distinguishes the datasheet (functional overview, pinouts, memory mapping, electrical characteristics, package details) from the reference manual (how to use memory and peripherals, register mappings) and the programming manual (how to program the Cortex-M4 core and peripherals).",{"name":69,"@type":60,"acceptedAnswer":70},"What kinds of questions does the “datasheet hunting” activity include?",{"text":71,"@type":63},"It asks for memory address and base address values, flash and RAM sizes, max clock speed, GPIO count, package type, electrical voltage level parameters (VOH/VOL/VIH/VIL), operating limits, GPIO pin current, and which pin connects to OSC_IN.","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},720226,1795035878,{"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":26,"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},1099514067415,"https://ap-avatar.wpscdn.com/avatar/100002539d78ffe74a7?x-image-process=image/resize,m_fixed,w_180,h_180&k=1779092875211072502","STM32 Datasheet and User  \nManual  \nLecture 5  \nMicroprocessor-based Systems (E155)  \nProf. Josh Brake  \nFrom last time…  \n• What’s going on in startup.c?  \n• Setup vector table  \n• Stack pointer  \n• reset_handler function location (startup() in our case)  \n• Copy variables from flash to RAM  \n• Setup initialization for global/extern variables in Block Started by Symbol section (. bss)  \n• Jump to main  \n• Make sure that you do the startup before you do anything else! (hint: make sure you link your files correctly. You need to make sure your vector table gets mapped to 0x00 and that startup() executes before main()) .  \nOutline  \nDocumentation for NucleoF401RE board  \n• STM32F401RE  \n• Datasheet  \n• User Manual  \n• Programming Manual (All STM32 Cortex-M4)  \n• Nucleo-64 User Manual  \nWhat is each piece of documentation for?  \n• Datasheet – what is it?  \n• Functional overview  \n• Pinouts  \n• Memory mapping  \n• Electrical characteristics  \n• Package details  \n• Reference manual – how do I use it?  \n• How to use memory and peripherals  \n• Register mappings  \n• Programming manual – how do I program it?  \n• Cortex-M4 processor details  \n• Instruction set  \n• Core peripherals  \nThe STM32F401RE  \n• Cortex-M4 Microprocessor  \n• Up to 84 MHz  \n• UART/USARTs, GPIO, Timers, I2C, SPI, RTC  \np.14 STM32F401RE Datasheet 4  \nPart Numbering  \n5  \nActivity: Datasheet hunting  \n• Don’t use search  \n• Look for the value and click yes button on Zoom when you think you’ve found it  \n• Give answer and reference (place where you found it)  \nQuestions!  \n• Memory address for Timer 1  \n• What is flash memory base address?  \n• How much flash memory does the board have?  \n• How much RAM?  \n• Max clock speed?  \n• How many GPIO pins?  \n• What package is the STM32F401RE on our board?  \nQuestions!  \n• Input output logic voltage levels?  \n• VOH  \n• VOL  \n• VIH  \n• VIL  \n• Max operating temperature?  \n• Max operating voltage?  \n• Max current draw for GPIO pin?  \nQuestions!  \n• What is the maximum voltage I could apply to a pin before destroying it?  \n• What is the maximum voltage I could apply to while expecting proper operation?  \n• Which pin is connected to the OSC_IN input?","cbCain9OmmD0f5Wt","https://ap.wps.com/l/cbCain9OmmD0f5Wt","pdf",2555082,21,"English","# From last time\n## Startup workflow: vector table, stack pointer, reset_handler, data copy, .bss init, jump to main\n# Outline\n## Documentation for NucleoF401RE board\n## Purpose of each document type\n# The STM32F401RE\n## Cortex-M4 microprocessor and key peripherals\n# Activity: Datasheet hunting\n## Memory and clock questions\n## Electrical characteristics and pin-related questions","[{\"question\":\"What is the purpose of startup code before main runs?\",\"answer\":\"Startup code sets up the vector table and stack pointer, performs reset_handler logic, copies initialized variables from flash to RAM, initializes .bss global/extern variables, and then jumps to main. It must execute before any other program actions.\"},{\"question\":\"How does this lecture suggest you use STM32 documentation for hardware details?\",\"answer\":\"It distinguishes the datasheet (functional overview, pinouts, memory mapping, electrical characteristics, package details) from the reference manual (how to use memory and peripherals, register mappings) and the programming manual (how to program the Cortex-M4 core and peripherals).\"},{\"question\":\"What kinds of questions does the “datasheet hunting” activity include?\",\"answer\":\"It asks for memory address and base address values, flash and RAM sizes, max clock speed, GPIO count, package type, electrical voltage level parameters (VOH/VOL/VIH/VIL), operating limits, GPIO pin current, and which pin connects to OSC_IN.\"}]","STM32 Datasheet and User Manual - Lecture 5 - Microprocessor-based Systems (E155) | PDF",53,[146,150,153,157],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/8d6340ff0c712ca07bc79c7d6b92a3fc.webp",983,552,{"page_no":26,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/50b2b1f3463cec2db8d16ff94a776694.webp",982,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/65d213cb386f75b8ffb591c1a042f5d5.webp",981,551,{"page_no":33,"url":158,"width":159,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/6a4616a0cf69f4629c429fcc88adcb4e.webp",980,{"list":161,"token":11},[162,169,175,181,187,193,199,205,212,218],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":167,"category_name":29,"create_tm":168},559625,"ESP32-CAM WiFi+Bluetooth+Camera Module - Datasheet - Overview & Wiring","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947583449/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=3fPA9byJcQnwJ6vyi63oOF6X9xI%3D","esp32-cam-wifibluetoothcamera-module-datasheet-overview-wiring",12,1791800831,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":30,"category_name":29,"create_tm":174},700187,"STM32H747xI/G Datasheet - Product Features Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012015365/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=oNlM%2BnegvoVPThvUsMezXMT66kM%3D","stm32h747xig-datasheet-product-features-overview",1794516610,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":96,"category_name":29,"create_tm":180},700222,"GD32F407xx Datasheet - Rev1.0 - Reference document","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011564297/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=sZa0ahU8uLTDOCgkSbVfl1JJQww%3D","gd32f407xx-datasheet-rev10-reference-document",1794517308,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":105,"category_name":29,"create_tm":186},562062,"80C51 8-bit Flash microcontroller family - Preliminary data","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947791374/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=U1sNpCykeUIlivjxWMX10Db511g%3D","80c51-8-bit-flash-microcontroller-family-preliminary-data",1791807622,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":101,"category_name":29,"create_tm":192},700225,"Adafruit STM32F405 Feather Express","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011564446/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=PA8XPQ8NXZwu2Xye39LYX7CHRJ8%3D","adafruit-stm32f405-feather-express",1794517354,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":33,"category_name":29,"create_tm":198},685739,"Lecture 09 - C Structs and Linked Lists - Structs in C, BMP Headers, and Passing Structs to Functions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000186206/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=8ceEeTw1nkB0xTi%2B1PXGtRiqePs%3D","lecture-09-c-structs-and-linked-lists-structs-in-c-bmp-headers-and-passing-structs-to-functions",1794017220,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":96,"category_name":29,"create_tm":204},700206,"GD32F407xx Arm Cortex-M4 32-bit MCU - Datasheet - Revision 2.5","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012017057/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=at03fT8KMw%2BZGJZ1PN55MfKx8Po%3D","gd32f407xx-arm-cortex-m4-32-bit-mcu-datasheet-revision-25",1794516866,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":29,"create_tm":211},562626,"PIC16F62X - FLASH-Based 8-Bit CMOS Microcontrollers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947820421/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=b7HfpoDrXNxe8I%2BQggs%2BC3%2F%2Bdk8%3D","pic16f62x-flash-based-8-bit-cmos-microcontrollers",11,1791809127,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":96,"category_name":29,"create_tm":217},700214,"GD32C103 - Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012018681/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=NbpCpOgssk0y17Qz4qOhUIDfZs0%3D","gd32c103-datasheet",1794517120,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":96,"category_name":29,"create_tm":223},700210,"AT32F403A Series Datasheet - Core Features Summary","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012017947/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=xSlDYYv5vvAB%2FXCJy7b9SIWYsms%3D","at32f403a-series-datasheet-core-features-summary",1794517035]