User Tools

Site Tools


eclipse

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
eclipse [2012/07/16 11:16]
duggle
eclipse [2012/07/17 00:19] (current)
duggle
Line 115: Line 115:
 The following is used in this section:\\ The following is used in this section:\\
 **core:​**................STM32\\ **core:​**................STM32\\
-**OS:​**..................windows 7 x64\\ +**OS:​**..................windows 7 x64 **//WinXP should work the same use with OpenOCD 0.5.0 (non x64)//**\\ 
-**toolchain:​**......mios32_toolchain (wiki)\\ +**toolchain:​**......mios32_toolchain (mentioned in the wiki). **//Ensure that workspace environment PATH includes e.g C:​\mios32_toolchain\bin//​**\\ 
-**IDE:​**.................Eclipse (Indigo)\\+**IDE:​**.................Eclipse (Indigo) ​**//later versions will probably not work at this point//**\\
 **OpenOCD:​**.......0.5.0 x64 [[http://​www.freddiechopin.info/​en/​download/​category/​4-openocd|Download]]\\ **OpenOCD:​**.......0.5.0 x64 [[http://​www.freddiechopin.info/​en/​download/​category/​4-openocd|Download]]\\
-**GDB:​**.................Yagarto (gdb version 7.3.1)\\ +**GDB:​**.................Yagarto (gdb version 7.3.1) ​**//later versions should work//​**[[http://​http://​www.yagarto.de/#​download|download]] ​\\ 
-**JTAG:​**................Amontec JTAGkey-tiny\\+**JTAG:​**................Amontec JTAGkey-tiny ​ ​**//​many other brands and types of JTAG interface are supported by OpenOCD//**\\
  
 ===== OpenOCD ===== ===== OpenOCD =====
Line 202: Line 202:
  
 ==== Flash/Debug Configuration ==== ==== Flash/Debug Configuration ====
 +In this configuration the app will be built, then flashed into the core, then loaded ready to execute.
 +  * Open Debug configurations (click pulldown on button pictured below)\\
 +{{:​eclipse:​debugconfigbutton.png|}}
 +  * Select "Debug Configurations..."​
 +  * Copy the previous debug only configuration from the last section:
 +  * (re)Name it "//​MyProject//​ flash,​debug"​
 +  * Main tab->​select "​Enable auto build"
 +  * Debugger tab-> same as before.
 +  * Startup tab-> same except for contents of Initialization Commands text box:
 +''​target extended-remote localhost:​3333\\
 +monitor reset halt\\
 +monitor wait_halt\\
 +monitor poll\\
 +''​
 +
 +as well as in the "Run Commands"​ text box:
 +
 +''​monitor flash probe 0\\
 +monitor stm32f1x mass_erase 0\\
 +monitor flash write_image MyProjectFolder/​project_build/​project.bin 0x08000000 bin\\
 +disconnect\\
 +target remote localhost:​3333\\
 +monitor soft_reset_halt\\
 +''​
 +  * Click apply to save configuration settings
  
 ==== Running the Flash/Debug Configuration ==== ==== Running the Flash/Debug Configuration ====
 +  * Make sure OpenOCD is running (see previously)
 +{{:​eclipse:​debugconfigbutton.png|}}
 +  * Click the pull down and select the item "//​MyProject//​ flash,​debug" ​
 +  * Project will build
 +  * GDB diagnostics will appear (black, commands are in red). 
 +  * There will be a significant pause during the actual flash programming operation (see pictured below, in a project called AqCntSVN)
 +{{:​eclipse:​consoledebugflashing.png|}}
 +  * The program will halt. Activate "​Resume"​ from the run menu or debug toolbar and the program will run from as if hard reset, that is the bootloader pulsing of the LED will happen followed by execution of the app.
 +  * You are now debugging and the program will halt on break points, allow single stepping, inspection of variables, etc, etc.  ​
  
 +==== The FreeRTOS StateViewer Plugin ====
eclipse.1342437361.txt.gz · Last modified: 2012/07/16 11:16 by duggle