Hello.
Welcome back.
So in this lesson we shall give an overview of the art of the graphical interface we have here.
So let's start with the menus.
Let's start with this very first menu bar.
Of course this is file this the standard File menu that we use.
You can create a new project from here.
Load on existing project save your project or save us.
Right.
So then we have the project menu and this one here.
This first item is used to generate the code.
Once we've done all our pin of selections and our peripheral selections we can click over here.
Generates code and it would take us to the code generation and we generate the secret for us.
We can also generate a report and this report is a PDA file that gives us the pin out and the various
configurations that we chose is going to store it in a PDA format for us.
And that's very useful.
And of course we have settings.
They see.
Click over here.
And this set is the setting for generation actually.
So over here we'll take a look at this later by the way.
So over here we can choose our two chain whether we use an embedded workbench or we use it called Empty
key version 4 version 5 true to do other to chain.
We can choose the here and we can of course choose our project location and project to name if we export
the project.
What name do we want to call the project to let's say we want to call our project to Blinky project.
We just put a name here and then we can choose all of that.
This just happens to be under this menu.
We are examining but we've got an entire lesson just for this.
So keep that aside.
So then of course we have the window over here we can activate the output window or disable it.
And of course you've got the help window where we can check for update install new libraries and update
settings.
Take a look at that data.
Now let's look at the second menu bar here.
We have the code generator.
He has an icon.
We can just click here to generate code.
You can click here to generate reports like we saw and yes he can generate a CSP file of our pin out
as well and we can save save the project in a new file extra.
So this is what we have.
This the microcontroller of my SDM 32 for this school board.
This the peanut.
So to start this is the default it's peanuts.
It's initialize these periods for us to start a new project.
Let's say we want to start out a Blinky project or we want to do is disable all the pins and just enable
the pins.
We want to do that.
I can come to pin out and clear pin out before I do that.
Actually let's just take a look at this too.
Over here we know the OLED are connected to PD 15 14 13 and twelve.
So we'll activate the early days later.
Let's just clean it come to pin out clip in out.
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
entity set 14 US output as well 13 as output and in 12 hours output.
So once this is done I can send my debug as well as my system clock.
So I'll come here as y as and then select to my debugger which is the which is the serial wire.
And as you can see it's activated automatically activated opinions for the debugger.
And if I want to set my clock I can go to RCC to do the let's see over here.
I can enable my high speed clock.
I use this drop down menu and use the crystal.
And it's enabled it for me automatically.
Once this is done we can we can generate our code and let's just test it out to see if our installation
is working.
So to generate the code I'll just come and click here like this code generation and then it brings me
to the project settings and what do I want to call this.
I want to call this blinking.
I can choose where I want the project to be stored.
I just started to.
It would create its new folder I'll store it in my cube it makes folder where I kept the installation
and want to change my use and I'm using the S I'm using the MDC version 5.
So like this.
Then let's see we can come to code generator and over here we can select what we want to copy or use
libraries into the project folder or copy only the necessary library files all at necessary library
files as reference in the to change project files and the generated files we can select whether we want
to generate power for initialization is as pair of dot c dot H files pair peripheral or we just want
to keep all of them bundled together.
This is not a huge project it's just GPL entities.
So we won't separate the implementation and header files.
Let's just keep them to we can keep the default settings here and we've caught some advance settlements
that we can make which we'll take a look at later.
For a simple project we just need to give it a name.
So time to change and then leave everything the way it is and then click OK.
Then it generates for us
then once it's done we can choose to open the project or open the folder.
Well we take a look at the photo.
Click here to open a folder and it's open the folder where I store the project and whenever I want to
change my settings and cube and cube emacs I can double click this and it would open the Cuban mix and
I can make any updates I want with it.
And because I chose column decay it generated a column decay project for me.
If I had chosen I are embedded what bench would have generated embedded workbench project for me.
And so this the content of our folder.
How about we generate a report I'll click here to generate a report.
And as you see it would start a report in the folder because the photos open I'll just close it and
just come back to the folder.
Now we have our blinker report here.
I can double click here to open it.
And this the report it's generated automatically.
It's got a project to name here.
It's got a name of the board.
It's called the version of Cuban next it's generated with its content date.
It's got the MCU details here.
This very useful.
And then it shows us the pins we're using as you saw.
We initialize these for GPL Europeans and this is our debugger pins.
And this is for our RCC clock days.
And yeah this gives the pin up configuration and it gives the clock settings we've not taken a look
at this but we'll take a look at this later.
Yeah.
So this is what it looks like it's very useful.
You just click and it generates.
So yeah I'll just close this and I'll open our project.
I'll double click to open my car your vision.
So this is our project generated from Cuba Max.
And it's created a file structure on its own.
It's demarcated the default into try this application application MDA where it stores the M.S. use startup
that as file and then it's got a drivers for the hardware obstruction they are provided by SD Yeah.
So I could just open here this demand that see and it comes with this template and it's in fact already
initialized the GPL use we we chose already hands we've got the emacs GPL you in it here it's initialize
them it's initialize the clock to the default clock and the default clock it chose for us let's see
it chose ninety six megahertz for us it's initialize it to ninety six megahertz we look at how to change
the clock frequency later to because it's done all of this for us all we need to do is just blink our
LCD or just toggle it or just right in the logic in which we want the LCD to operate right.
So in the next lesson we show yeah we should adjust program our LCD to blink to verify I'll see you
in the next lesson.