在STM32F10x大容量产品上移植uClinux(英文)

所需积分/C币:18 2013-04-30 16:33:32 863KB PDF

在STM32F10x大容量产品上移植uClinux,官方英文版文档
AN3012 Contents 8 How to add new features 29 8.1 How to add a new hardware driver .29 8.1.1 References 8.1.2 Example of a kernel driver 29 8.2 How to add a new application 34 Revision history .... ■■■■■■■■■■■■■■■■■■■■■■■ n,,.,35 Doc D 16051 Rev 2 3/36 List of tables AN3012 List of tables Table 1 Document revision history .35 4/36 Doc D 16051 Rev 2 AN3012 List of figures List of figures Figure 1. STM3210E-EVAL board 8 Figure 2. Configuring the installation parameters Figure 3. uClinux-dist directory........ ,,,,,,,,,,,12 Figure 4. uClinux kernel directory 13 Figure 5. uClinux configuration main menu 14 Figure 6. Vendor Product selection 14 Figure 7. Kernel / Library /Defaults selection 15 Figure 8. System Type configuration Figure 9. STM3210-EVAL demonstration menu Figure 10. Device Manager window 19 Figure 11. Flash loader demonstrator download configuration Figure 12. Multi Bin injection window(STM3210E-EVAL-jffs configuration) ....22 Figure 13. Multi Bin injection window(STM3210E-EVAL-MCU_Flash configuration) 2 Figure 14. FusE demonstration window ,,,,24 Figure 15. Example of MS HyperTherminal 25 Figure 16. uClinux boot log 26 Figure 17. Linux device driver architecture .29 Figure 18. STM3210E-EVAL uart_driver struct 30 Figure 19. STM3210E-EVAL uart_port struct 30 Figure 20. STM3210E-EVAL uart_ops struct. ,...,,,30 Figure 21. STM3210E-EVAL console struct Figure 22. STM3210E-EVAL console Init function Figure 23. Simple GPIO file_operations struct. 32 Figure 24. Simple GPIO write operation Doc D 16051 Rev 2 5/36 Package description AN3012 Package description This section presents all the files in the package, that are needed to get started with uclinux on stm32F101XC/D/E and sTm32F103XC/D/E devices uClinux_on_ stm32patch.gz: the uClinux patch, using which the ARM Cortex-M3 CPU and sTM3210E-EVAL board are supported O AN3012 pdf the purpose of this guide is to show all the steps necessary to successfully configure, build and run uclinux on the board. It also presents the procedure to add new hardware driver and applications to the kernel Tiny_kernel_boot_ loader. hex /kernel_boot_ loader. hex. these are the boot loaders required to boot up the board and load uClinux(kernel loader / firmware updater) o uClinux_on_ stm 32- ffs dfu /uClinux_on_ stm32-MCUFlash dfu: these are the binary image files that can immediately be downloaded to the board to get uClinux running 36 Doc D 16051 Rev 2 AN3012 Hardware description Hardware description The STM3210E-EVAL evaluation board is designed as a complete development platform for STMicroelectronics s ARMTM Cortex -M3 core-based STM32F103xx microcontrollers delivered in 144-pin packages. This device features: full speed USB2.0, CAN2.0A/B compliant interface, two ls channels, two I-c channels, five USART channels with Smartcard support, three sPI channels, two DAC channels, FSMC interface, SDIO, 64 Kbyte of internal SRAM and 512 Kbyte of Flash memory, JTAG and SWd debug support The STM3210E-EVAL has the following onboard hardware features Three 5 v power supply options: power jack, USB connector or daughterboard Boot from user Flash memory, system memory or SRAM 0 12S audio DAC, stereo audio jack 128 Mbyte Micro SD card A- and B-type Smartcard support 64 or 128 Mbit serial Flash memory, 512 Kbit x 16 SRAM, 512 Mbit or 1 Gbit NAND Flash and 128 Mbit NOR Flash memory 2C/SMBus compatible serial intertace temperature sensor Two RS-232 channels with RTS/CTS handshake support on one channel IrDa transceiver o USB2.0 full speed connection O CAN2.0A/B compliant connection Inductor motor control connecto JTAG and trace debug support 240×320 TET color lcd o Joystick with 4-direction control and selector Reset, wakeup, tamper and user buttons 4 color LEDs RTC With backup battery Doc D 16051 Rev 2 7/36 Hardware description AN3012 Figure 1. STM3210E-EVAL board STM3e Releasing yo.r creativity 8/36 Doc D 16051 Rev 2 AN3012 Getting the tools 3 Getting the tools This section explains how to get the software tools that are required to build and run uclinu on the stm3210E-EVAL evaluation board 3.1 uclinux package 3.11 Standard distribution You should first download the original uClinux source files from the uClinux project page (http.//www.uclinux.org/,orsimplyfollowthefollowingdirectlink http://www.uclinux.org/pub/uclinux/dist/uclinux-dist-20080808.tar.bz2 To get the uclinux-dist-20080808. tar. bz2 file(281 Mbytes), which is compatible with the STM3210E-EVAL uClinux kit Porting is based on the latest stable version of uClinux which implements the Linux kernel 2.626-uc0. You also need the uClinux distribution update patch file: uClinux-dist-20080808 20090112 patchgz (47.1 Mbytes) available from http://www.uclinux.org/pub/uclinux/dist/patches/uclinux-dist-20080808-20090112.patch.gz 3.1.2 STM3210E-EVAL uClinux software kit This package contains the kernel patch(update of 399 files) and the kernel boot loader(see Section1:PackagedescriptionTHepackageisavailablefromhttp://www.st.com/stm32 3.2 GNU toolchain a toolchain known to successfully build the kernel for ARM Cortex -M3 targets can be downloadedfromtheCodeSourcerywebsitehttp://www.codesourcery.com/,orusingthe followinglinkhttp://www.codesourcery.com/sgpp/lite/arm/porta/lrelease827 The G++ Lite 2009q 1 toolchain is a free version of the Code Sourcery G++toolchain, which is an improvement of the GNU toolchain for ARM processors. It supports ARM, thumb and thumb-2 compilation for all architectures, including Version 7 of the ARM Architecture Note: 1 This application note only shows how to install the "easy-to-install recommended packages 2 You need a Pc running on the Linux operating system to be able to install and compile uClinux. The Linux distribution (Fedora, Mandriva, Ubuntu, etc. should have the kernel development kit 3.3 DFuSe flash loader demonstrator These two tools are needed to load the final binary images to the board Doc D 16051 Rev 2 9/36 Getting the tools AN3012 3.3.1 FUsE applet DFuSe stands for Device firmware upgrade application This applet, coupled to the kernel boot loader firmware, allows the upgrade of the final. dfu file to the on-board Flash memory It can be downloaded from the STMicroelectronics website or directly, using the following linkhttp://www.st.com/ston/ine/products/support/micro/files/um0412.zip 3.3.2 Flash loader demonstrator This applet, together with the System memory boot loader capabilities, is used to upgrade kernelbootloader. hex to the sTM32F101/103X C/D/E's 512-Kbyte internal Flash memory The Flash loader demonstrator is available from st. com at http://www.st.com/stonline/products/support/micro/files/um0462.zip Note You need a pc running on the Microsoft Windows operating system to be able to run and use these two applets 10/36 Doc D 16051 Rev 2

...展开详情
试读 36P 在STM32F10x大容量产品上移植uClinux(英文)

评论 下载该资源后可以进行评论 1

bailiju 资料还不错,可用,收藏。
2014-04-29
回复
img
sdwuyawen

关注 私信 TA的资源

上传资源赚积分,得勋章
    最新推荐
    在STM32F10x大容量产品上移植uClinux(英文) 18积分/C币 立即下载
    1/36
    在STM32F10x大容量产品上移植uClinux(英文)第1页
    在STM32F10x大容量产品上移植uClinux(英文)第2页
    在STM32F10x大容量产品上移植uClinux(英文)第3页
    在STM32F10x大容量产品上移植uClinux(英文)第4页
    在STM32F10x大容量产品上移植uClinux(英文)第5页
    在STM32F10x大容量产品上移植uClinux(英文)第6页
    在STM32F10x大容量产品上移植uClinux(英文)第7页
    在STM32F10x大容量产品上移植uClinux(英文)第8页
    在STM32F10x大容量产品上移植uClinux(英文)第9页
    在STM32F10x大容量产品上移植uClinux(英文)第10页
    在STM32F10x大容量产品上移植uClinux(英文)第11页

    试读已结束,剩余25页未读...

    18积分/C币 立即下载 >