1
00:00:03,060 --> 00:00:03,560
Hello.

2
00:00:03,600 --> 00:00:04,710
Welcome back.

3
00:00:04,710 --> 00:00:12,390
So in this lesson we shall give an overview of the art of the graphical interface we have here.

4
00:00:12,390 --> 00:00:13,890
So let's start with the menus.

5
00:00:13,950 --> 00:00:16,910
Let's start with this very first menu bar.

6
00:00:17,160 --> 00:00:20,700
Of course this is file this the standard File menu that we use.

7
00:00:20,700 --> 00:00:22,870
You can create a new project from here.

8
00:00:22,900 --> 00:00:27,180
Load on existing project save your project or save us.

9
00:00:27,420 --> 00:00:28,240
Right.

10
00:00:28,260 --> 00:00:31,190
So then we have the project menu and this one here.

11
00:00:31,230 --> 00:00:34,230
This first item is used to generate the code.

12
00:00:34,230 --> 00:00:40,250
Once we've done all our pin of selections and our peripheral selections we can click over here.

13
00:00:40,320 --> 00:00:45,840
Generates code and it would take us to the code generation and we generate the secret for us.

14
00:00:45,840 --> 00:00:53,490
We can also generate a report and this report is a PDA file that gives us the pin out and the various

15
00:00:53,490 --> 00:00:57,510
configurations that we chose is going to store it in a PDA format for us.

16
00:00:57,520 --> 00:00:58,980
And that's very useful.

17
00:00:59,010 --> 00:01:00,290
And of course we have settings.

18
00:01:00,300 --> 00:01:01,030
They see.

19
00:01:01,020 --> 00:01:02,070
Click over here.

20
00:01:02,070 --> 00:01:06,320
And this set is the setting for generation actually.

21
00:01:06,330 --> 00:01:10,390
So over here we'll take a look at this later by the way.

22
00:01:10,440 --> 00:01:16,070
So over here we can choose our two chain whether we use an embedded workbench or we use it called Empty

23
00:01:16,130 --> 00:01:20,600
key version 4 version 5 true to do other to chain.

24
00:01:20,610 --> 00:01:29,130
We can choose the here and we can of course choose our project location and project to name if we export

25
00:01:29,130 --> 00:01:29,790
the project.

26
00:01:29,790 --> 00:01:34,780
What name do we want to call the project to let's say we want to call our project to Blinky project.

27
00:01:34,800 --> 00:01:38,710
We just put a name here and then we can choose all of that.

28
00:01:38,820 --> 00:01:40,670
This just happens to be under this menu.

29
00:01:40,670 --> 00:01:44,010
We are examining but we've got an entire lesson just for this.

30
00:01:44,040 --> 00:01:46,840
So keep that aside.

31
00:01:47,010 --> 00:01:52,230
So then of course we have the window over here we can activate the output window or disable it.

32
00:01:52,230 --> 00:01:57,900
And of course you've got the help window where we can check for update install new libraries and update

33
00:01:57,900 --> 00:01:59,070
settings.

34
00:01:59,070 --> 00:02:01,020
Take a look at that data.

35
00:02:01,230 --> 00:02:03,910
Now let's look at the second menu bar here.

36
00:02:03,930 --> 00:02:05,520
We have the code generator.

37
00:02:05,520 --> 00:02:06,360
He has an icon.

38
00:02:06,360 --> 00:02:08,720
We can just click here to generate code.

39
00:02:08,760 --> 00:02:16,110
You can click here to generate reports like we saw and yes he can generate a CSP file of our pin out

40
00:02:16,260 --> 00:02:24,360
as well and we can save save the project in a new file extra.

41
00:02:24,360 --> 00:02:25,850
So this is what we have.

42
00:02:25,860 --> 00:02:30,540
This the microcontroller of my SDM 32 for this school board.

43
00:02:30,540 --> 00:02:31,970
This the peanut.

44
00:02:32,010 --> 00:02:34,610
So to start this is the default it's peanuts.

45
00:02:34,610 --> 00:02:38,870
It's initialize these periods for us to start a new project.

46
00:02:38,880 --> 00:02:45,570
Let's say we want to start out a Blinky project or we want to do is disable all the pins and just enable

47
00:02:45,560 --> 00:02:46,070
the pins.

48
00:02:46,080 --> 00:02:47,760
We want to do that.

49
00:02:47,760 --> 00:02:50,850
I can come to pin out and clear pin out before I do that.

50
00:02:50,850 --> 00:02:53,280
Actually let's just take a look at this too.

51
00:02:53,310 --> 00:02:58,770
Over here we know the OLED are connected to PD 15 14 13 and twelve.

52
00:02:58,770 --> 00:03:01,320
So we'll activate the early days later.

53
00:03:01,320 --> 00:03:04,580
Let's just clean it come to pin out clip in out.

54
00:03:04,600 --> 00:03:12,810
And yes I want to clip out so I can come to PD 15 and set us output pin cause I want to turn on the

55
00:03:12,810 --> 00:03:21,250
entity set 14 US output as well 13 as output and in 12 hours output.

56
00:03:21,270 --> 00:03:25,750
So once this is done I can send my debug as well as my system clock.

57
00:03:25,870 --> 00:03:34,550
So I'll come here as y as and then select to my debugger which is the which is the serial wire.

58
00:03:34,740 --> 00:03:40,930
And as you can see it's activated automatically activated opinions for the debugger.

59
00:03:40,930 --> 00:03:50,390
And if I want to set my clock I can go to RCC to do the let's see over here.

60
00:03:50,960 --> 00:03:53,280
I can enable my high speed clock.

61
00:03:53,850 --> 00:03:57,260
I use this drop down menu and use the crystal.

62
00:03:57,450 --> 00:04:00,460
And it's enabled it for me automatically.

63
00:04:00,450 --> 00:04:07,920
Once this is done we can we can generate our code and let's just test it out to see if our installation

64
00:04:07,920 --> 00:04:08,740
is working.

65
00:04:08,790 --> 00:04:14,070
So to generate the code I'll just come and click here like this code generation and then it brings me

66
00:04:14,070 --> 00:04:17,770
to the project settings and what do I want to call this.

67
00:04:17,880 --> 00:04:19,700
I want to call this blinking.

68
00:04:20,570 --> 00:04:24,270
I can choose where I want the project to be stored.

69
00:04:24,270 --> 00:04:25,170
I just started to.

70
00:04:25,230 --> 00:04:31,110
It would create its new folder I'll store it in my cube it makes folder where I kept the installation

71
00:04:31,320 --> 00:04:37,310
and want to change my use and I'm using the S I'm using the MDC version 5.

72
00:04:37,860 --> 00:04:39,520
So like this.

73
00:04:39,600 --> 00:04:46,610
Then let's see we can come to code generator and over here we can select what we want to copy or use

74
00:04:46,650 --> 00:04:54,360
libraries into the project folder or copy only the necessary library files all at necessary library

75
00:04:54,360 --> 00:05:00,060
files as reference in the to change project files and the generated files we can select whether we want

76
00:05:00,060 --> 00:05:07,020
to generate power for initialization is as pair of dot c dot H files pair peripheral or we just want

77
00:05:07,020 --> 00:05:09,960
to keep all of them bundled together.

78
00:05:09,960 --> 00:05:13,080
This is not a huge project it's just GPL entities.

79
00:05:13,080 --> 00:05:16,860
So we won't separate the implementation and header files.

80
00:05:16,860 --> 00:05:23,910
Let's just keep them to we can keep the default settings here and we've caught some advance settlements

81
00:05:23,940 --> 00:05:26,960
that we can make which we'll take a look at later.

82
00:05:27,080 --> 00:05:30,710
For a simple project we just need to give it a name.

83
00:05:30,810 --> 00:05:36,970
So time to change and then leave everything the way it is and then click OK.

84
00:05:37,150 --> 00:05:38,790
Then it generates for us

85
00:05:43,190 --> 00:05:49,070
then once it's done we can choose to open the project or open the folder.

86
00:05:49,170 --> 00:05:50,790
Well we take a look at the photo.

87
00:05:50,810 --> 00:05:56,750
Click here to open a folder and it's open the folder where I store the project and whenever I want to

88
00:05:56,780 --> 00:06:03,170
change my settings and cube and cube emacs I can double click this and it would open the Cuban mix and

89
00:06:03,170 --> 00:06:05,610
I can make any updates I want with it.

90
00:06:06,560 --> 00:06:12,740
And because I chose column decay it generated a column decay project for me.

91
00:06:12,770 --> 00:06:19,420
If I had chosen I are embedded what bench would have generated embedded workbench project for me.

92
00:06:19,500 --> 00:06:23,090
And so this the content of our folder.

93
00:06:23,220 --> 00:06:27,000
How about we generate a report I'll click here to generate a report.

94
00:06:27,640 --> 00:06:33,630
And as you see it would start a report in the folder because the photos open I'll just close it and

95
00:06:33,630 --> 00:06:35,380
just come back to the folder.

96
00:06:35,460 --> 00:06:37,440
Now we have our blinker report here.

97
00:06:37,440 --> 00:06:40,220
I can double click here to open it.

98
00:06:40,600 --> 00:06:43,620
And this the report it's generated automatically.

99
00:06:43,620 --> 00:06:45,570
It's got a project to name here.

100
00:06:45,570 --> 00:06:47,910
It's got a name of the board.

101
00:06:47,940 --> 00:06:53,100
It's called the version of Cuban next it's generated with its content date.

102
00:06:53,160 --> 00:06:55,900
It's got the MCU details here.

103
00:06:56,040 --> 00:06:57,680
This very useful.

104
00:06:58,050 --> 00:07:01,920
And then it shows us the pins we're using as you saw.

105
00:07:01,920 --> 00:07:06,740
We initialize these for GPL Europeans and this is our debugger pins.

106
00:07:06,750 --> 00:07:10,270
And this is for our RCC clock days.

107
00:07:10,290 --> 00:07:17,610
And yeah this gives the pin up configuration and it gives the clock settings we've not taken a look

108
00:07:17,610 --> 00:07:19,910
at this but we'll take a look at this later.

109
00:07:20,400 --> 00:07:20,730
Yeah.

110
00:07:20,750 --> 00:07:23,820
So this is what it looks like it's very useful.

111
00:07:23,850 --> 00:07:26,690
You just click and it generates.

112
00:07:27,870 --> 00:07:32,290
So yeah I'll just close this and I'll open our project.

113
00:07:32,360 --> 00:07:39,420
I'll double click to open my car your vision.

114
00:07:39,480 --> 00:07:42,860
So this is our project generated from Cuba Max.

115
00:07:43,320 --> 00:07:46,660
And it's created a file structure on its own.

116
00:07:46,710 --> 00:07:56,280
It's demarcated the default into try this application application MDA where it stores the M.S. use startup

117
00:07:56,560 --> 00:08:03,650
that as file and then it's got a drivers for the hardware obstruction they are provided by SD Yeah.

118
00:08:04,170 --> 00:08:12,410
So I could just open here this demand that see and it comes with this template and it's in fact already

119
00:08:12,410 --> 00:08:20,810
initialized the GPL use we we chose already hands we've got the emacs GPL you in it here it's initialize

120
00:08:20,810 --> 00:08:27,680
them it's initialize the clock to the default clock and the default clock it chose for us let's see

121
00:08:28,560 --> 00:08:35,000
it chose ninety six megahertz for us it's initialize it to ninety six megahertz we look at how to change

122
00:08:35,000 --> 00:08:41,720
the clock frequency later to because it's done all of this for us all we need to do is just blink our

123
00:08:41,810 --> 00:08:49,920
LCD or just toggle it or just right in the logic in which we want the LCD to operate right.

124
00:08:50,120 --> 00:08:56,230
So in the next lesson we show yeah we should adjust program our LCD to blink to verify I'll see you

125
00:08:56,240 --> 00:08:57,140
in the next lesson.
