Category.General optionisC/C++CompilerAssemblerTargetOutput Library Configuration Library OptioOutput ConverterCustom BuildProcessor variantBuild ActionsCortex-1M3国CCoreLinkerDebuggerSTSTM32F107xCCDeviseSimulatorAngelGDBServerEPUEndian modeIAR ROM-monitorLittleHone国J-Link/3-TraceLMIFTDIEigMacraigorCEBB2RDIGBRST-LinkThird-Party DriverLdeyuly,General OptionsCJC++ CompilerAssemblerTargetoutputLibrary Configuration Library Option!Output ConverterCustom Build选择使用的芯片Build ActionsProcessor variantLinker国Cortex-MaCCoreDebuggerSimulatorSTSTM32F107xCDeviceAngelGDBServerIAR ROM-monitorEPUEndian modeJ-Linkj3-TracePDF文件使用"pdfFactoryPro”试用版本创建www.fineprint.cn
PDF 文件使用 "pdfFactory Pro" 试用版本创建 www.fineprint.cn
CategoryFactory Settings丽Multi-file CompilationGeneral OptionsCiC++CompilerDiscard Unused PubliosAssemblerPreproces4Language CodeOptimizationsOutput ListOutput Converter把.h文件的路径全部列Custom Build出Build ActionsIgnore standardPUTTETSTOULKIT DIRS INGLinkerDebuggerAdditional include directories: (one per line)Simulator$PROJDIRSV人AngelSPROJ DIRS.A.AineGDBServer$PRDJDIRS......LibrariesCMSISiCM3DeviceSupportIS)VIARROM-monitor$PROJ_DIRSt....../LibrariesCMSISICM3ICoreSupportJ-Link/3-TraceLMI FTDIMacraigorinecsvmbolsRDIe选择使用的芯节和使用库STM32F10X_CLST-LinkUSESTM3210CEVALmat件定文Third-Party DriverUSESTDPERIPHDRIVERline-directiyCategoryFactory SettingsGeneralOptions选择工程下的.icf文件C/C++ CompilerAssemblerConfig Library| Input Output|List#define DiagnostOutput ConverterCustom BuldBuildActionsLinker configuration fileLinke Override defaultDebugger10x_StdPeriph_TemplatelEWARM/stm32f10x_flashlicfSimulatorAngelEdit.GDBServerIARROM-monitoConfiguration file symbol definitions: (one per line)J-Link/J-Trace选择相应的调试下载工具Factory SettinGeneral OptionsCJC++ CompilerAssemblerSetupDowrload Extra OptionsImages PluginsOutput ConverterCustomBuildDriverEuntoBuld ActionsLinkerk/-TracoFmainDebuggerSatup macrosSimulatorFUsemacrofile(s)AngelGDBServerIARROM-monitorJ-Link/)-TraceLMIFTDIDevige description fileMacraigorQverride defaultRDIST-LinkFETOOLICTTDIRSICOIGYaabuarSTVostm32f1O7xxddfThird-Party Driver勾选下载到flashPDF文件使用”pdfFactoryPro”试用版本创建www.fineprint.cn
选择相应的调试下载工具 勾选下载到 flash PDF 文件使用 "pdfFactory Pro" 试用版本创建 www.fineprint.cn
CategoryF8General OptionsCJC++ CompilerAssemblerSetupDownloadExtra OptionsImagesPluginsOutput ConverterCustom BuildFAttachto.promBuild ActionsYerify downloadLinkerSuppress downloa(Debugger Sinulator Use flash loaderAngelQverride default board fileGDB ServerTOOLTTDIRSkconfiglElashIoaderiSTAFIashsIARROM-monitorJ-Link/J-TraceEaitaLMIFTDIMacraigorRDIST-LinkThird-Party Driver好了这样工程配置就完成了可以编译下载了/*Reset PDO and PD2 */ProjectfolMessages1032bytesofreadwritedatamemoryErrors:noneWarnings.noneLinktime:0.17 (CPU) 0.58 (elapsed)Total numberoferrors:0Total numberofwarnings:0温馨小提示:对于代码的优化在配置中都有相关选项分为速度和大小两种优化。在库文件的使用的没有用到的文件可以不必添加进来,这样可以节省很多的代码空间。当然这些细节我们在后面的学习中仔细观察和理解都能掌握。一句话闻道有先后不要觉得别人比我们知道的多其实只是知道的早点而已我们能做的就是尽早的赶上PDF文件使用”pdfFactoryPro”试用版本创建www.fineprint.cn
好了 这样 工程配置就完成了 可以编译下载了 温馨小提示:对于代码的优化在配置中都有相关选项 分为速度和大 小两种优化。在库文件的使用的 没有用到的文件 可以不必添加进 来,这样可以节省很多的代码空间。当然这些细节我们在后面的学习 中仔细观察和理解都能掌握。一句话 闻道有先后 不要觉得别人比我 们知道的多 其实只是知道的早点而已 我们能做的就是尽早的赶上 PDF 文件使用 "pdfFactory Pro" 试用版本创建 www.fineprint.cn
3MDK工程的修改---安装我们自带的mdk程序1.3点击工程下面的MDK-ARM文件加下的工程图标Vpre卫ion4 Projectaenn打开后如图:LFeepeeNAS01AEUoaSX-heetsHs psgruDaadet.lsNoneBmaeMtBnmuniAJntaseMaIDoatSeneraint)nwmwgAAr4n_tstiaLdcaatarosgtDsautattatiar itichiaaodtrnwtatuarnmXtslecttapacitipea.ni betcretoorechtoopl:cttormttaaT:toentimretsedifoultonttineotamtindsstd tmetaabrtetttadatAnehonOX2aaalw.lJertefeiinekcoley25ma(bpc)JNcn_amenoutTatCotigeetoodrinotytypaulsocstwenhtaooXmRfot)Rowtittrotrs.opena.oweiaauEnOA.E Et 6.简单的对工程配置做些修改即可对照图示参看一下PDF文件使用”pdfFactoryPro”试用版本创建www.fineprint.cn
1.3 MDK 工程的修改-安装我们自带的 mdk 程序 点击工程下面的 MDK-ARM 文件加下的工程图标 打开后 如图: 简单的对工程配置做些修改即可 对照图示参看一下 PDF 文件使用 "pdfFactory Pro" 试用版本创建 www.fineprint.cn
DODeviceTarget Output Listing UserC/C++ AsmLinker DebugUtilitiesDatabase:Generic CPU Data BaseVendor:STMicroelectronicsDevice:STM32F107VCToolset_ARMSTM32F103ZDCoreAARM32-bit Cortex-M3Microcontroller,CPUclock up to 72MHzCSTM32F103ZECSTM32F103ZFMemories:RSTM32F103ZG256kB Embedded FlashMSTM32F105R864kB Embedded SRAMSTM32F105RBSpecific Features.鲜STM32F105RCUSB2.0FulSpeedDevice/Host/OTGControllerwithon-chipPHY鲜STM32F105V810/100EthernetMACwithdedicatedDMAandSRAMRSTM32F105VB.12-channelDMA.controllerSTM32F105VC2*CAN Interface (20B Active)2*12-bitADC (16-channel)R.STM32F107RB212-bitDACCSTM32F107RC2*12C家STM32F107VB5*UARTVSTM32F107VCSSTR710F71-OKCancelDefaultsHelpDeviceTargetOutputListingUserC/C++AsmLinkerDebugUtilitiesSTMicroelectronics STM32F107VCCode Generationtal MHz)25.0Use Cross-Module OptimizationOperating system:None-FBig EndianPUseMicroLIBUse Link-Time Code GenerationRead/OnlyMemoryAreasRead/WriteMemoryAreasSizeStartSizeNolnit:defaultoff-chipStartStartupdefaultoffchipC厂L用ROM1:RAM1:厂L网ROM2CRAM2:LROM3:RAM3:厂on-chipon-chip0x80000000x40000C0x200000000x10000VIROM1:?IRAM1:2IROM2品IRAM2:广OKCancelDefaultsHelpPDF文件使用”pdfFactoryPro”试用版本创建www.fineprint.cn
PDF 文件使用 "pdfFactory Pro" 试用版本创建 www.fineprint.cn