dimanche 13 avril 2014

Android Tutorial

installing Eclipse 
-you can download Eclipse Standard from this link http://www.eclipse.org/downloads/ 
-unzip the file and run eclipse.exe  
-click on  Help > Install New Software
-click on "add..."

-choose a name an put in "Location" this link  "http://download.eclipse.org/technology/babel/update-site/R0.11.0/<version>"
-be careful th number 11.0 can change you have to check the lastest here :  http://download.eclipse.org/technology/babel/update-site/R0.11.1/kepler
-wait for a while and select your language click next
-accept the terms of the license agreement and click finish 
-restart Eclipse
- go to  http://developer.android.com/sdk/index.html  and download  Android SDK

-install the appliction, run it  and install packages that you need
-now we are going to add the plugin , open Help > Install New Software 
select a name and put this link https://dl-ssl.google.com/android/eclipse/ 

-press Ok

-check all features in the list 
-press Next 
restart Eclipse and enjoy.

see also :
stm32 f4 discovery tutorial

samedi 12 avril 2014

Getting started with STM32F4DISCOVERY

This blog describes the software, firmware environment and development 
recommendations required to build an application around the STM32F4DISCOVERY board. 
It presents the firmware applications package provided within this board with details on its 
architecture and contents. It provides guidelines to novice users on how to build and run a 
sample application and allows them to create and build their own application.

System requirements

-install the new release of KEIL C Compiler
-install the new driver for ST-Link-v2
-for testing your installation and bulding your first project download STM32CubeF4
-Before running your application, you should establish the connection with the STM32F4DISCOVERY board as following.

unzip the file and open any project , for example GPIO EXTI , click on Project.uvproj

or use an existing project on your pc : C:\Keil\ARM\Boards\ST\STM32F4-Discovery\Blinky

Select Target Options and select the Debug tab. In the drop-down menu box select ST-Link
Debugger as shown here:

In the Project menu, select Rebuild all target files to compile your project
 If your project is successfully compiled, the following Build Output window  is displayed.

In the MDK-ARM µVision4 IDE, click the magnifying glass to program the Flash memory 
and begin debugging as shown below
run and see the leds blinking