create your first assembly programbosio/hlee503/tp/tp0.pdf · 2017. 10. 19. · 63 ma.n.s s...

Post on 22-Jan-2021

1 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Create your first Assembly Program

Alberto Bosiobosio@lirmm.fr

Univeristé de Montpellier

October 19, 2017

2

Eclipse

Start Eclipse -> Menu Project -> C Project

3

Eclipse

Configure the Project

1 Select AC6 STM32 MCU Project2 Select Toolchain3 Give a name4 Click on Next

4

Eclipse

Configure the Project (Cont’d)

5

Eclipse

Configure the Project (Cont’d)

1 Select the Series: STM32F3

2 Select the Board: STM32F3DISCOVERY

3 Click Next

6

Eclipse

Configure the Project (Cont’d)

1 Select No Firmware

7

Eclipse

Your Project

8

Eclipse

Add a source file

1 Select src directory

2 Click using right button

3 Select New -> File

9

Eclipse

Add a source file (cont’d)

1 Specify the file name: in this example is main.s

10

Eclipse

Add a source file (cont’d)

Write you asm program!Download the example fromhttp://www.lirmm.fr/~bosio/L3/ASM/main.s

11

Eclipse

Build your program

Menu Project -> Build ProjectCheck for errors/results in the Build Console

12

Eclipse

Debug/Run your program

1 Menu Run -> Debug Configuration

2 Double click on “Ac6 STM32 Debugging”

3 Click on Debug

13

Eclipse

Debug/Run your program (Cont’d)

14

Eclipse

Debug/Run your program (Cont’d)

top related