stm32 ecosystem workshop

34
STM32 Ecosystem workshop T.O.M.A.S Team

Upload: others

Post on 19-Jan-2022

22 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: STM32 Ecosystem workshop

STM32 Ecosystem workshopT.O.M.A.S Team

Page 2: STM32 Ecosystem workshop

Now it is a right time for some theory

• We will present basic information about version control systems

SVN and GIT within SW4STM32 to share the projects within the

team

2

Page 3: STM32 Ecosystem workshop

Goal of this partDemonstrate SNV and GIT mechanisms implemented within SW4STM32 tool

Gain knowledge about SVN and GIT repositories creation

Gain knowledge about manipulating on files between local project and its

repository

Gain knowledge about importing projects from SVN and GIT repositories

3

Page 4: STM32 Ecosystem workshop

Sharing projects with the team (SVN)

Page 5: STM32 Ecosystem workshop

Benefits of using project sharing tools

• Registering of all changes

• Possibility to compare all previous changes

• Get recent version at anytime later

• Automatic log – changes description

• Sharing the source code among developers

• Several developers can work on the same project and sharing their changes

• In case of conflict (i.e. two developers working on the same file) you are warned and

merging options are available

• Branching of software versions

5

Page 6: STM32 Ecosystem workshop

Let’s try first SubVersion (SVN)

6

Page 7: STM32 Ecosystem workshop

SubVersion (SVN)general points

• SubVersion is a GNU project, Server-Client type

• It requires:

• Installation of SVN server application on the PC which would contain the projects

repository

• Installation of SVN client application on each PC which would like to use the projects

repository:

• It can be a standalone application, like TurtoiseSVN:

www.tortoisesvn.net

• Or it can be a build in Eclipse plugin (like present in SW4STM32)

7

Page 8: STM32 Ecosystem workshop

Sharing projects with the team - SVN

1. In order to send your project to SVN repository, click the right button on mouse on project

name

2. From menu select Team->Share Project(s)

3. From pop-up window select SVN

4. Click Next

8

1

23

4

Page 9: STM32 Ecosystem workshop

9Sharing projects with the team - SVN

5. Next step would be

selection of the SVN

repository:

a. Create a new one

b. Use existing one

6. Press Next for further

configuration

Page 10: STM32 Ecosystem workshop

10

Sharing projects with the team – SVNusing existing repository location

7. Select the project folder

location on the server

8. Press Finish

Page 11: STM32 Ecosystem workshop

Sharing projects with the team – SVNcreating a new repository location

7. In General tab, please fill:

a. URL address of SVN repository server

b. Custom label of the repository (if any)

c. User name and password for log-in

d. Click Next

8. Follow instructions inline with your SVN

repository configuration and at the end

press Finish

11

a

b

c

d

Page 12: STM32 Ecosystem workshop

Sharing projects with the team - SVN

• Enter project comment/description

• Select files to be copied

• Click OK to copy selected files to

repository

12

Page 13: STM32 Ecosystem workshop

Sharing projects with the team - SVN

1. After sending to repository, all project

files are marked differently and have

added the version number (224 in this

case)

13

2. Each file modified after this

operation is marked as “modified”

(using ‘>’ symbol) like below:

Page 14: STM32 Ecosystem workshop

Team Synchronizing perspective14

• In case of synchronization

with repository, Eclipse will

switch to Team

Synchronizing perspective

• Here we can track any

conflicts, differences and

control synchronization in

both directions (from and

to repository)

Page 15: STM32 Ecosystem workshop

Sharing projects with the team - SVN

• To synchronize modified files with repository:

• Either right-click selected file (single file synchronization)

• Or right-click project itself (complete project synchronization)

• Select Team->Commit

• Add a comment if any and select files to be synchronized

• Press OK -> files in repository will be updated

15

Page 16: STM32 Ecosystem workshop

Disconnecting project from SVN

• Right-click project name

• Select Team->Disconnect

• Select appropriate option concerning SVN meta-information

• All files are marked like before SVN connection

• The project is not automatically removed from the SVN repository

16

Page 17: STM32 Ecosystem workshop

Importing projects from SVN17

From already opened workspace select

Import->SVN->Project from SVN

Select repository

Select project to be checked-out

Page 18: STM32 Ecosystem workshop

Importing projects from SVN18

Set additional project optionsIn case of adding existing project

warning message would appear

Page 19: STM32 Ecosystem workshop

Now we can try GIT

19

Page 20: STM32 Ecosystem workshop

Sharing projects with the team - GIT

1. In order to send your project to Git repository, click the right button on mouse on project

name

2. From menu select Team->Share Project(s)

3. From pop-up window select Git

4. Click Next

21

1

2

3

4

Page 21: STM32 Ecosystem workshop

22

Sharing projects with the team – GITcreation of new repository 1/4

5. Next step would be

selection of GIT

repository:

a. Create a new one

b. Use existing one

6. Press Finish for further

configuration

ab

6

Page 22: STM32 Ecosystem workshop

23

Sharing projects with the team – GITcreation of new repository 2/4

1. Click Create button

2. Specify the location of the repository

3. Click Finish

1

2

3

Page 23: STM32 Ecosystem workshop

4. Further we need to “commit” the

project files to the repository

5. It is done by right mouse button on

project name, Team->Commit

24

Sharing projects with the team – GITcreation of new repository 3/4

Page 24: STM32 Ecosystem workshop

Sharing projects with the team – GITcreation of new repository 4/4

6. Before sending the project to the repository it is necessary to identify

ourselves by giving

a. Full name, i.e. John Smith

b. Email address: i.e. [email protected]

7. Press OK

25

a

b

Page 25: STM32 Ecosystem workshop

26

Sharing projects with the team – GITusing existing repository location 1/2

1. Select repository from the

list

2. Press Finish

Page 26: STM32 Ecosystem workshop

3. Further we need to “commit” the

project files to the repository

4. It is done by right mouse button on

project name, Team->Commit

27

Sharing projects with the team – GITusing existing repository location 2/2

Page 27: STM32 Ecosystem workshop

Sharing projects with the team - GIT

1. After sending to repository, all project

files are marked differently

28

2. Each file modified after this

operation is marked as “modified”

(using ‘>’ symbol) like below:

Page 28: STM32 Ecosystem workshop

Team Synchronizing perspective29

• In case of synchronization

with repository, Eclipse will

switch to Team

Synchronizing perspective

• Here we can track any

conflicts, differences and

control synchronization in

both directions (from and

to repository)

Page 29: STM32 Ecosystem workshop

Sharing projects with the team - GIT

• To synchronize modified files

with repository:

• Either right-click selected file

(single file synchronization)

• Or right-click project itself

(complete project

synchronization)

• Select Team->Commit

• Add commit message

• Press Commit -> files in

repository will be updated

30

Page 30: STM32 Ecosystem workshop

Disconnecting project from GIT

• Right-click project name

• Select Team->Disconnect

31

Page 31: STM32 Ecosystem workshop

Importing projects from GIT32

From already opened workspace select

Import->Git->Project from GitSelect repository

Page 32: STM32 Ecosystem workshop

Importing projects from GIT33

Select project to be imported In case of adding existing project

warning message would appear

Page 33: STM32 Ecosystem workshop

What have we learnt?Demonstrate SNV and GIT mechanisms implemented within SW4STM32 tool

Gain knowledge about SVN and GIT repositories creation

Gain knowledge about manipulating on files between local project and its

repository

Gain knowledge about importing projects from SVN and GIT repositories

34

Page 34: STM32 Ecosystem workshop

Enjoy!

www.st.com/mcu

/STM32 @ST_World st.com/e2e