Subversion Repositories svn.mios

Rev

Rev 919 | Rev 988 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 919 Rev 931
Line 55... Line 55...
55
55
56
<P CLASS=DESC>There are also cheaper, LPT (parallel port) based JTAG interfaces on the market (especially on EBay), but LPT ports are normaly not available on modern computers anymore, and USB Printer adapters won't allow you to access the wiggler.</P>
56
<P CLASS=DESC>There are also cheaper, LPT (parallel port) based JTAG interfaces on the market (especially on EBay), but LPT ports are normaly not available on modern computers anymore, and USB Printer adapters won't allow you to access the wiggler.</P>
57
57
58
<P CLASS=DESC>The 20 pin JTAG cable has to be connected to J3 of the <A HREF="mbhp_core_stm32.html">MBHP_CORE_STM32</A> module. This can even be done while an application is running (hot-attach).</P>
58
<P CLASS=DESC>The 20 pin JTAG cable has to be connected to J3 of the <A HREF="mbhp_core_stm32.html">MBHP_CORE_STM32</A> module. This can even be done while an application is running (hot-attach).</P>
59
59
60
<P CLASS=DESC>With <A HREF="http://openocd.berlios.de/web/" TARGET="_blank">OpenOCD</A> a platform independent open source tool is available to access the STM32. The scripts in the MIOS32 programming platform are prepared for v0.1.0 and not probably compatible to newer versions, therefore it is recommented to try v0.1.0 first before using a newer version.</P>
60
<P CLASS=DESC>With <A HREF="http://openocd.berlios.de/web/" TARGET="_blank">OpenOCD</A> a platform independent open source tool is available to access the STM32. The scripts in the MIOS32 programming platform are prepared for v0.1.0 and not probably compatible to newer versions, therefore it is recommended to try v0.1.0 first before using a newer version.</P>
61
61
62
<P CLASS=DESC><B>Installation:</B>
62
<P CLASS=DESC><B>Installation:</B>
63
<UL CLASS=CL>
63
<UL CLASS=CL>
64
  <LI>You can download an installation package of OpenOCD v0.1.0 (.msi file for Windows, .rpm for Linux, source code for MacOS) <A HREF="http://developer.berlios.de/project/showfiles.php?group_id=4148" TARGET="_blank">here</A><BR>
64
  <LI>You can download an installation package of OpenOCD v0.1.0 (.msi file for Windows, .rpm for Linux, source code for MacOS) <A HREF="http://developer.berlios.de/project/showfiles.php?group_id=4148" TARGET="_blank">here</A><BR>
65
      If you prefer to compile the source code by yourself, you might need to install <A HREF="http://sourceforge.net/project/showfiles.php?group_id=1674&package_id=1632&release_id=398442" TARGET="_blank">usblib</A> before, which gives OpenOCD access to the USB interface.
65
      If you prefer to compile the source code by yourself, you might need to install <A HREF="http://sourceforge.net/project/showfiles.php?group_id=1674&package_id=1632&release_id=398442" TARGET="_blank">usblib</A> before, which gives OpenOCD access to the USB interface.
Line 109... Line 109...
109
    <UL CLASS=CL>
109
    <UL CLASS=CL>
110
      <LI><TT>export MIOS32_PATH = /Users/TK/svn/mios32/trunk</TT></LI>
110
      <LI><TT>export MIOS32_PATH = /Users/TK/svn/mios32/trunk</TT></LI>
111
    </UL>
111
    </UL>
112
    Open a new shell, <B>go into the directory where you built the code</B>, and start the OpenOCD server with:
112
    Open a new shell, <B>go into the directory where you built the code</B>, and start the OpenOCD server with:
113
    <UL CLASS=CL>
113
    <UL CLASS=CL>
114
      <LI><TT>openocd -f $MIOS32_PATH/etc/openocd/interface/in-circuit-openocd.cfg -f $MIOS32_PATH/etc/openocd/target/STM32F10x.cfg</TT>
114
      <LI><TT>openocd -f $MIOS32_PATH/etc/openocd/interface/in-circuit-openocd.cfg -f target/stm32.cfg -f chip/st/stm32/stm32.tcl</TT>
115
    </UL>
115
    </UL>
116
   Note that you probably need to adapt the interface setup file!<BR>
116
   Note that you probably need to adapt the interface setup file!<BR>
117
   You can left this shell window open while rebuilding your application - it can run permanently to talk with your STM32<BR>
117
   You can left this shell window open while rebuilding your application - it can run permanently to talk with your STM32<BR>
118
   If you are using a different JTAG interface, create a new .cfg file for it and
118
   If you are using a different JTAG interface, create a new .cfg file for it and
119
   adapt the USB search string (thereafter commit your new file to the repository,
119
   adapt the USB search string (thereafter commit your new file to the repository,