 My cube ID is now opened and you can see there my homework and I've got my GPDMA but I call this one GPADMA number one and I've now got all my files and I'm ready to start editing code. So the first item I need to do in the code, hopefully you've all got this far, if anyone's fallen behind please let us know in the chat. The first item we need to do is we need to include the link list in our file. So sheet sheet. So I'll include the link list to my file. So that goes in my user code includes. Next I need to create my buffer that I configured in the cuba mechs. So my buffer is called data. So that needs to go into private variables, buffer into the private variables. Now as a default the device applies standard power saving parameters. So therefore VDDA is disabled by default. So we need to enable our VDDA because we're using the ATD converter. So we have these two lines to enable the clock and then enable the VDDA. They need to go into our system init section, line number 92. So we need to now add items related to our link list now. So our queue name is defined in our link list. So it needs to be declared as an extern for our main.c file. So we need to add that to our private variables. Our data array that we've declared in our main.c needs to be visible to our linked list. So we need to declare that in our linked list as an extern as well. Finally we need to configure our queue name, actualize our queue name. So that goes in user code begin number two of main.c. So what we've just done when we configure the queue name is we're going to load our data structure into the registers. So when we call the command dma list build node, what we do is take all our parameters from our data structure and we load it into all the registers that make up the dma node itself. And then when we do the insert node tail, we will move from the linked list area into our linked list queue. So then our linked list will jump to the next node which is the same address, this particular case. So we're just going to go around one area in here. So our linked list will end up going like that. So we're in circular mode. So we'll have our original list. We'll have our next list and then that'll go back to our original list. In our case, all of these are the same at the moment. So now we're going to link the queue to the specific dma channel. So we're going to add this into our code, user code begin number two and then we can start our ADC off. So we're going to start our linked list and then start our ADC. So that's also going into user code begin number two. So once you've completed all that, you should now be able to compile the code and run a debug session. I've just connected my board to my laptop. Highlight the project. In case you've got multiple projects open in an Eclipse environment, make sure you're highlighting the correct project that you want to build. Now you can build your project. Okay, we've got zero errors and one warning which is for a casting assignment. Okay, that's not too bad. And now I can enter debug. Okay, so because I've not actually launched anything, I need to debug and launch a new debug application on my debug. So switch to debug mode. We want to view live expressions. So window, show view. And I'm looking for live expressions. There we go. It's appeared here. That one, my previous example. And now we want to add a new expression to our live expressions. And we want to look for our data array. 64-bit array, which is correct. Expand that. It should be all zeros because I've not run any code yet. Now if I run or resume, you'll see now that I'm getting data parameters coming in. So what we've created at the moment is we've declared dma channel one. We've set up all the registers. And we've linked it to our link list, which is got a default configuration as it starts. It hits the link register at the very bottom. It loads in the next item in the link list, which is the same item. And then once that link list is finished, it then loops back around to our very start. So that's it. So we've created one node in our link list queue now.