![Page 1: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/1.jpg)
Create your first Assembly Program
Alberto [email protected]
Univeristé de Montpellier
October 19, 2017
![Page 2: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/2.jpg)
2
Eclipse
Start Eclipse -> Menu Project -> C Project
![Page 3: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/3.jpg)
3
Eclipse
Configure the Project
1 Select AC6 STM32 MCU Project2 Select Toolchain3 Give a name4 Click on Next
![Page 4: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/4.jpg)
4
Eclipse
Configure the Project (Cont’d)
![Page 5: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/5.jpg)
5
Eclipse
Configure the Project (Cont’d)
1 Select the Series: STM32F3
2 Select the Board: STM32F3DISCOVERY
3 Click Next
![Page 6: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/6.jpg)
6
Eclipse
Configure the Project (Cont’d)
1 Select No Firmware
![Page 7: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/7.jpg)
7
Eclipse
Your Project
![Page 8: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/8.jpg)
8
Eclipse
Add a source file
1 Select src directory
2 Click using right button
3 Select New -> File
![Page 9: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/9.jpg)
9
Eclipse
Add a source file (cont’d)
1 Specify the file name: in this example is main.s
![Page 10: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/10.jpg)
10
Eclipse
Add a source file (cont’d)
Write you asm program!Download the example fromhttp://www.lirmm.fr/~bosio/L3/ASM/main.s
![Page 11: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/11.jpg)
11
Eclipse
Build your program
Menu Project -> Build ProjectCheck for errors/results in the Build Console
![Page 12: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/12.jpg)
12
Eclipse
Debug/Run your program
1 Menu Run -> Debug Configuration
2 Double click on “Ac6 STM32 Debugging”
3 Click on Debug
![Page 13: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/13.jpg)
13
Eclipse
Debug/Run your program (Cont’d)
![Page 14: Create your first Assembly Programbosio/HLEE503/TP/TP0.pdf · 2017. 10. 19. · 63 ma.n.s s workspace - C/C++ - TPO/src/main.s - Eclipse / * Start OF the program code section Quick](https://reader035.vdocument.in/reader035/viewer/2022071302/60ad148a749991392f5831e0/html5/thumbnails/14.jpg)
14
Eclipse
Debug/Run your program (Cont’d)