NUCLEO-WB55 development kit is now ready for use with Python. Programming MicroPython firmware is now done. Press CTRL + C to bring up the python command interpreter: Then click on ʻOpen`.Ĭheck if the kit is enumerated on the correct COM port, see ** Checking the COM port allocation **. Set the fields Serial Line to COM3 and Speed to 115200. To do this, start Puttytel, available in the TP_Python directory: The test consists in sending a python command and checking that the execution is OK.Ĭommunication is done by USB through a serial port, we need software to send the python commands as text to the board and receive the result of the execution. We need to test communication with Python. Now, MicroPython is present on the NUCLEO-WB55 kit. These manipulations should be mastered by the students so that they can communicate with the interpreter and edit MicroPython scripts on the NUCLEO-WB55 kit. Installation of the programming environment We will see later how to edit the Python scripts available in the PYBFLASH filesystem.įirst we will try to communicate with the Python command interpreter directly on the NUCLEO-WB55 development kit. Open the PYBFLASH device with Windows Explorer. Let’s look at the files generated by the MicroPython system with the Windows explorer: You can now communicate with the MicroPython software via the USB link. If you see this message, the operation is done Press the Reset button (SW4) above the USB_USER socket on the development kit.ĭon’t pay attention to the message: drive problem Now you need to move the jumper from connector CN7, PIN 5-7 to SWDIO: When the window is closed, programming is complete Use the “flash_dfu-util” software by double-clicking on it.Ī command prompt windows opens (it may be too fast to see it), please wait for programming to finish: This step could potentially be performed by the student, in the event that the MicroPython firmware needs to be updated. We will use the ** dfu-util ** software for this. It is now mandatory to program the card with the MicroPython firmware. Programming the board’s MicroPython firmware (dfu-util) We are now using USB communication with the NUCLEO-WB55 board under Windows.Įxit to Zadig software. Then start the driver installation by clicking on “Replace Driver”. Select “libusbK (v3.0.7.0)” using the arrows: If it doesn’t appear in the drop-down list, change the USB cable (some cables don’t work). Select “USB DFU in FS mode” from the drop-down list. Go to “Options” then click on “List All Devices”. Installation of the free USB driver (Zadig)Īllow the application to make changes by clicking the “Yes” button. The first step is to install the free USB drivers to communicate with the STM32WB55 board. This file must be present on each workstation.Ĭonnect the NUCLEO-WB55 board to your computer with the USB cable. Board programmingĭownload the “TP Python” folder on the Windows Desktop, available on the drive: TP_Python.zip We will be able to update the firmware by USB. These modifications allow the STM32WB55 to be configured in bootloader mode. Here is how the kit should be configured:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |