User Tools

Site Tools


en:arm_programming

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:arm_programming [2013/07/28 11:24] fluktuaciaen:arm_programming [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 26: Line 26:
 To help you with the Ubuntu installation it is possible to used a ready-made [[https://launchpad.net/~terry.guo/+archive/gcc-arm-embedded|deb packages]]. A PPA repository currently works only for Ubuntu version 12.04.   To help you with the Ubuntu installation it is possible to used a ready-made [[https://launchpad.net/~terry.guo/+archive/gcc-arm-embedded|deb packages]]. A PPA repository currently works only for Ubuntu version 12.04.  
  
-== Quick installation using a __repository__ ==+== Quick installation using a software repository ==
  
   sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded   sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
   sudo apt-get update   sudo apt-get update
-  sudo apt-get install gcc-arm-none-eabisudo+  sudo apt-get install gcc-arm-none-eabi
      
 == Compilation procedure ==   == Compilation procedure ==  
Line 80: Line 80:
 == Connecting the module == == Connecting the module ==
  
-In order to be able to use the bootloader, it in necessary to connect it to the serial link. In the case of using [[cs:usb232r|USB232R01B]] module, it is sufficient to have only RXD and TXD connected in a following way:+In order to be able to use the bootloader, it in necessary to connect it to the serial link. In the case of using [[en:usb232r|USB232R01B]] module, it is sufficient to have only RXD and TXD connected in a following way:
  
  
Line 151: Line 151:
 An external programmer is required to program through JTAG. In the case of [[cs:stm32f10xrxt|STM32F10xRxT01A]] module, the JTAG wires have a special __pin-out__ (J51). The [[http://www.mlab.cz/PermaLink/JTAGFT2232V02A|JTAGFT2232V02A]] module can be used as an external programmer. An external programmer is required to program through JTAG. In the case of [[cs:stm32f10xrxt|STM32F10xRxT01A]] module, the JTAG wires have a special __pin-out__ (J51). The [[http://www.mlab.cz/PermaLink/JTAGFT2232V02A|JTAGFT2232V02A]] module can be used as an external programmer.
  
-For programing is suitable eg. [[http://openocd.sourceforge.net/|OpenOCD]], an open programm that supports the majority of JTAG programmers and is able to create the back-end for [[http://www.gnu.org/software/gdb/|GDB]] thus supporting the debugging as well.+For programing is suitable eg. [[http://openocd.sourceforge.net/|OpenOCD]], an open programm that supports the majority of JTAG programmers and is able to create the back-end for [[http://www.gnu.org/software/gdb/|GDB]]thus supporting the debugging as well.
  
-Though there already exist natively supported packages for OpenOCD in Ubuntu, their versions are usually quite old compared to the latest development. It is therefore recommended to compile the current version...+ 
 +=== Ubuntu === 
 + 
 +Though there already exist natively supported packages for OpenOCD in Ubuntu, their versions are usually  
 +quite old compared to the latest development. It is therefore recommended to compile the current version...
  
   sudo apt-get install libtool git gcc automake libftdi-dev texinfo   sudo apt-get install libtool git gcc automake libftdi-dev texinfo
Line 187: Line 191:
  
  
-Tho OpenOCD has created a server, that you can connect with throuh telnet+Tho OpenOCD has created a server, that you can connect with through telnet
  
   telnet localhost 4444   telnet localhost 4444
Line 197: Line 201:
   >    > 
    
 +
 +=== Mac OS X ===
 +
 +
 +  ./configure --enable-ft2232_ftd2xx openocd -f busblaster.cfg -f /usr/local/share/openocd/scripts/target/stm32f1x.cfg\\
 +\\
 +busblaster.cfg:\\
 +  interface ft2232
 +  ft2232_device_desc "Dual RS232-HS"
 +  ft2232_layout jtagkey
 +  ft2232_vid_pid 0x0403 0x6010
 +
 +basic info: http://pramode.net/fosstronics/stm32-circle.txt
 +
 ===== RTOS ===== ===== RTOS =====
  
Line 203: Line 221:
 [[http://www.chibios.org/dokuwiki/doku.php|Webpage of the project]] [[http://www.chibios.org/dokuwiki/doku.php|Webpage of the project]]
  
-Chibios is a basic realtime OS with HAL component that simplifies the work with microprocessor. To facilitate the work a Chibios configuration directly for module with ARM has been created and it is available at [[https://github.com/toxygen/mlab-chibios|github]]. +Chibios is a basic realtime OS with HAL component that simplifies the work with microprocessor. To facilitate the worka Chibios configuration directly for module with ARM has been createdand it is available at [[https://github.com/toxygen/mlab-chibios|github]]. 
  
-In order to obtain more documentation us [[http://chibios.sourceforge.net/html/index.html|ChibiOS/RT]] site.+In order to obtain more documentation use [[http://chibios.sourceforge.net/html/index.html|ChibiOS/RT]] site.
  
 === LED blink demo === === LED blink demo ===
en/arm_programming.1375010689.txt.gz · Last modified: 2013/07/28 11:24 (external edit)