 Okay, I have here my project with the GPO toggle in Atolic and the macros we can for example found here in the MX GPO in GPO underscore init. You can go there with usually with the right click on the function and select open declaration or I know that this definition this function it's few lines below the main it's here and you can see we have here for example the macro to enable the clocks because before we configure the pay-free we need also to enable the clocks if you want found the more macros we can go here into the drivers into the HL drivers and usually if you found the driver which you desire in our case the RCC you can click here to expand the RCC and it show us to to related include files in our case it will be somewhere then not in Atolic okay in Atolic it's a little bit different it will be here in the includes sorry and I need to for a search for my for my driver include is this one here I need to search for the RCC dot H is this one here I can found the definition also of some structures usually here starting here the macros for each clock for the pay-phrase okay but why why the enabling the clock is so important we can do a simple test we put here the breakpoint okay with the double click on on the left side of our our editor now I will run my my IDE I will compile the code again now I will start to debug in case that I debug it before there will be no problem okay I am in the in the beginning of the main I will run my code which will be stopped after the clock clock enable okay and now I need to look into the registers then in the in Atolic it's here I think in the system system registers and here I need the registers for the GPL GPL a part okay you have here see some GPL 8 you you see that they have some some values here which are defined and I can also modify modify the values if I modify here the value it will be immediately reflected inside or the outside the microcontra definitely this output data register can modify the state of the pins in case that the pins are correctly configured which is not not not yet done but okay if I have the clocks you can see I have here some some valid values but here if I leave the debugging and if I comment this clock enabling part I compile my code again and I will go to the debugger again okay I run the code also near my code to my breakpoint I will go here to the SFR this strange because the value shouldn't shouldn't be here okay I cannot modify the value now okay if I for sure I will go there again enable the clocks then I will try it compile the code flash and debug and now I will run it I will try here to modify the register for example still I cannot for this I need to prepare my lap okay about this little bit little bit later now in Atollic first we will go to the debug then we save the save the code we compile it and then we enter the debugger debug session okay we also put the breakpoint after the initialization of the clocks which mean here then we run around the code here okay we are on the on the breakpoint here we can found the registers we need to search for the GPLGPLA the output data register the ODR and we for example modified a bit zero nothing I think some steps ah my my code is here sorry the code was ordered is better to do the do the optimization which are very high the code is not consistent then I will put the breakpoint here which will be better I restart my debugging session okay I run my code I'm here here I put one we can we can step it for sure and you can see the one is still there everything is okay that that is what we expect but now I will here command the GPOA clock enable a disable a session I will save it file save okay it's if I will compile it and I will debug it again the same code but without clocks same breakpoint I run my code I go to the registers the output data register now I will try to to change the output data register and you can see it's not possible because the clocks are disabled okay how to do this lab in IR it's very simple in the IR we run the debugging you can see that my my perfey was commented the GPO clock enable I go here into the debug okay and I here close it and if I want to see the registers I here go to the view I here select the registers and here I will search for the GPO GPO A GPO A in here you can see in the input data register if I change it it's not possible it's the zero because my clocks are disabled in case that I again enable enable the clocks was enabled rebuild flash again and if I run my code I stop it for for a while you can see now I can modify modify the registers how how I want be careful with the with the modifying the registers the the values really change the behavior of the pins then I recommend here to play only with the output that register with changing the output state in case that the GPOs are unconfigured it's safe it's safest option how to play then please not not change definitely not the mod or the pull up pull down can be can be very dangerous danger you can also destroy the board okay I will show you also how this looks like in KL how to open the registers you go also into the debug with the KL okay no problem and here the registers are hidden here in this in this system window viewer or here the pay files system viewer and you select the pay file which you want it's in our case is the GPO and the GPO H again the same behavior the the output data register you can you can directly change here okay and I try it last in the system verb bench okay I opening the system verb bench it will take a few couple of seconds okay again I am in main I can hear go to the to the debugger to click on the debug if I debug before no problems yes I want to the into the debugger perspective okay the registers here mean only the core registers which is the not not the the correct one but here the I registers is the correct correct tap and here I search for the GPO GPO A here the GPO A you can search for the output data register and ask for the reflash with the double click to activate ask for the reflash I think okay we need to create the more steps I put here the big point I run my code now you will see the value I think you can also try to change the value if I make make one step you see the the value stay there if I hear in the main command the the clocks if I first leave the debug I compile my code I need to first save my code it will be better yes now it's it's compiled I go to the debug again yes I want to the debugger perspective I run my my code okay I am here I go to the IOS you can see there is some default value I will change here the output data register I will make step and see there was no change reflected in the registers because I cannot write into registers when the clocks are disabled then be careful in case that you're trying to configure the pay pay and it's doesn't working it's maybe possible that you not enable the clocks then don't forget before you start to configure the pay pay you need first enable the clocks