aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-03-23 19:09:32 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-03-23 19:09:32 +0000
commitf38a21493342f3bd2f7e3371508e4ff280f76fb3 (patch)
tree2b6f285acc971c101bd7930add4da23247baae7e /docs/src
parent2fc7d70a735c84daa85a92a9a0fb23c0997f8355 (diff)
downloadChibiOS-f38a21493342f3bd2f7e3371508e4ff280f76fb3.tar.gz
ChibiOS-f38a21493342f3bd2f7e3371508e4ff280f76fb3.tar.bz2
ChibiOS-f38a21493342f3bd2f7e3371508e4ff280f76fb3.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1776 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/eclipse2.dox50
1 files changed, 48 insertions, 2 deletions
diff --git a/docs/src/eclipse2.dox b/docs/src/eclipse2.dox
index 18c4d565a..88a222fc8 100644
--- a/docs/src/eclipse2.dox
+++ b/docs/src/eclipse2.dox
@@ -160,7 +160,47 @@
* - Set an initial breakpoint in the main function.
* - Start the target (which will immediately stop on the breakpoint).
* .
- * **To be completed**
+ * The first thing to do is to open the "Debug Configurations..." dialog:
+ * <br><br>
+ * @image html eclipse006.jpg
+ * <br>
+ * The configuration dialog will appear, we must create a native Zylin
+ * configuration:
+ * <br><br>
+ * @image html eclipse007.jpg
+ * <br>
+ * Now we must give the configuration a name, "ARMCM3-STM32F103-GCC (flash and
+ * run)" in this example, then setup the various configuration pages as follow:
+ * <br><br>
+ * The "Main" tab:
+ * @image html eclipse008.jpg
+ * <br><br>
+ * The "Debugger" tab:
+ * @image html eclipse009.jpg
+ * <br><br>
+ * The "Commands" tab:
+ * @image html eclipse010.jpg
+ * <br>
+ * Note that the "Commands" tab contains the part that changes depending on
+ * the target. The complete commands sequence (it is not fully visible in the
+ * image) for STM32 is:
+ * @code
+ * monitor soft_reset_halt
+ * monitor wait_halt
+ * monitor poll
+ * monitor flash probe 0
+ * monitor stm32x mass_erase 0
+ * monitor flash write_bank 0 ch.bin 0
+ * monitor soft_reset_halt
+ * symbol-file ch.elf
+ * thbreak main
+ * continue
+ * @endcode
+ * <br><br>
+ * The "Common" tab:
+ * @image html eclipse011.jpg
+ * <br>
+ * Now the debug configuration is complete.
*
* @subsection eclipse2_configuring_openocd Configuring and running OpenOCD
* OpenOCD must be run, with appropriate parameters, before starting your
@@ -184,10 +224,16 @@
* debug configuration (we created just one but you may have multiple
* debug configurations in your project, as example I usually create
* another debug configuration that just starts the target without
- * uploading the code).<br>
+ * uploading the code).
+ * <br><br>
+ * @image html eclipse012.jpg
+ * <br>
* The debugger will be initialized, you will see the operation in progress on
* the console then Eclipse will switch to the debug perspective and you will
* see your program stopped on the default breakpoint in the main function.
+ * <br><br>
+ * @image html eclipse013.jpg
+ * <br>
* From there you can perform all the usual debugging tasks, set breakpoints,
* single step execution, variables, memory and registers inspection etc.
* Please refer to the Eclipse documentation about those "normal" operations.