EclipseArmebs4/FirstSteps
(Difference between revisions)
(→The leds project) |
|||
Line 29: | Line 29: | ||
* Run it | * Run it | ||
** Run > Debug configuration ... select "GDB OpenOCD Debugging"/leds > Debug | ** Run > Debug configuration ... select "GDB OpenOCD Debugging"/leds > Debug | ||
− | * If eclipse ask for switching to the debug perspective > OK | + | ** The program will be programmed in flash, this can take some time |
+ | ** If eclipse ask for switching to the debug perspective > OK | ||
* The program is now stopped at the beginning of main, start it with "run > resume" or the corresponding button. | * The program is now stopped at the beginning of main, start it with "run > resume" or the corresponding button. | ||
** The 4 red leds should blink | ** The 4 red leds should blink | ||
* Add a breakpoint by double-clicking in the left (blue) margin, at the "counter++" line. | * Add a breakpoint by double-clicking in the left (blue) margin, at the "counter++" line. | ||
** The program is stopped. | ** The program is stopped. | ||
+ | |||
== Debugger buttons == | == Debugger buttons == | ||
[[File:eclipse_debug_buttons.png]] | [[File:eclipse_debug_buttons.png]] |
Revision as of 13:05, 5 September 2014
|
If you're here, you should have already followed the setup (for windows/for linux). Please have a look at the troubleshooting page before asking for help.
Before the first project
Eclipse is somewhat complicated to configure, so there is a preconfigured workspace in your setup,
probably in C:\Programs\ARMEBS4\___VERSION___\tools\default_workspace_to_be_copied
.
- Copy the default_workspace_to_be_copied to a convenient place, for instance your desktop.
- Run Eclipse (C:\Programs\ARMEBS4\___VERSION___\start.bat)
- Import the
libheivs_stm32
library- Right-click in the "Project explorer" -> import... > Project from SVN >
- URL : https://repos.hevs.ch/svn/armebs4
- Use a custom label : armebs4
- user : hevslabs
- password : hevslabs
- > Next
- Browse... > select armebs4/trunk/libheivs_stm32 > OK
- Finish > Finish
- Right-click in the "Project explorer" -> import... > Project from SVN >
The leds
project
- Import the
leds
project- Right-click in the "Project explorer" -> import... > Project from SVN >
- Use existing repository (armebs4) > Next
- Browse... > select armebs4/trunk/demos/leds > OK
- Finish > Finish
- Build the code (ctrl-B)
- Run it
- Run > Debug configuration ... select "GDB OpenOCD Debugging"/leds > Debug
- The program will be programmed in flash, this can take some time
- If eclipse ask for switching to the debug perspective > OK
- The program is now stopped at the beginning of main, start it with "run > resume" or the corresponding button.
- The 4 red leds should blink
- Add a breakpoint by double-clicking in the left (blue) margin, at the "counter++" line.
- The program is stopped.