 Hello and welcome to video about firmware upgrade service and stack update in STM32WB microcontroller using STM32Q programmer. In this video I will shortly describe memory map of STM32WB microcontroller, show you where to get tools and software needed for upgrade of fuse and stack and then also demonstrate all steps needed for update with SWD debugger connection or through broader interfaces which can be UART or USB DFU. Let's start with quick look on STM32WB memory map. Using option bytes it's set split between secured and non-secured memory. Upper part of flash memory is intended for fuse, RF stack and user keys for security application. This location is secured only CPU2 can access this area. Size of secure part is flexible determined by option bytes SFSA which is set during stack or fuse update. Unsecured flash area can be accessed by both cores and it's intended for application code and data. Also SRAM2 memory can be split to secured and non-secured part using option bytes and like for flash only CPU2 can access secure to RAM. Goal of this video is to show you how to update secured part of flash using STM32Q programmer. Let's take a look on the resources which we need and where to get them. First one is STM32Q programmer. So if you go to st.com and enter the keyword STM32Q programmer you can download up to date software for the platform which you are using. Second thing we need is STM32QWB firmware package which we can download either to STMQBemix or QubedID or directly again on st.com either from github or directly here. Let's move to hands-on part. I have now connected PNWB55 to my PC with the jumper connection as showed on the slide and using connector CN15. Important is also to locate the repository for WB you have just downloaded and there is the folder with virus binaries for my microcontour. First source here is the release node. In the release node you can find all the details about the update procedure changes between the version in the stack and mainly what we will use now the addresses of the stack where to load it. So now let's jump to the Q programmer. As I have connected the board with the SWD debugger I go for connect and click to the wireless part. With the SWD I need to start with pressing start fuse operator. Once full use operator is started I can read the fuse version and now I can take either fuse or the wireless stack binary, paste it into the file path, set the correct start address and go for firmware upgrade. First all the fuse is deleted then the upgrade itself is done. So after fuse update I can jump also to stack update where I need to enter different address according to the release node. Again first delete then upgrade itself and now is device ready to use. Fuse and stack update is possible also from the system book loader. To do that I need to be sure that microcontour start from the book loader. There is multiple way to do that. I will use the option bytes on STM32 WB. So I will connect using the SWD and in the user configuration ensure that SW boot 0 is unchecked and the same for nboot 0. Apply. Ok and I can disconnect and now I need to set the microcontour and the board to one of the configuration which allows start in the book loader. For the USB DFU I need to use second USB connector and if I want to power the board from the steering I need to switch the JP1 jumper configuration. Equivalently I can use also the UART connection which is connected to the STLink virtual comport. In this case I will use again the CN15 so the STLink USB connection jumper configuration like for original configuration with debugger. And since the pins are not connected directly to UART I need to use the jumper cable as described on the picture. Now I configured my board to be used with USB book loader and I can connect using STM32 Q programmer so I will switch to USB. Refresh and connect. Now go to wireless tab. Since I am using the book loader I don't have to start the fuse and I can directly enter the path for my binaries and enter the addresses. And in the same way like for SWD I will do the upgrade of first live use. Done. And also the stack. Thank you for your attention and looking forward to meet you during next videos.