![]() ![]() The more complete manual for STM32Cube Programmer is actually on ST's web site Preferably, connect the target reset pin from st-link to the reset pin on blue pill as well With st-link, it isn't necessary to press that boot0 button.īut you need to select st-link from the options and that the st-link has to be properly wired to the blue pill board. Then you can use STM32Cube programmer to flash this file to the deviceĪn example of using STM32Cube programmer on its own is shown in this Adafruit tutorial The "official" STM core is integrated with STM32Cube programmer, hence, it can program it directly from within Arduino IDE.Īlternatively, you can use Sketch > Export compiled binary from the Arduino IDEĪnd a *.bin file should be left in your sketch folder. On the Blue Pill, the red LED near the ground connection pin lights solidly, while the LED near the 3.3v connection pin flashes.Īny suggestions on what to try next? I note that st.com only appears to have an ST-Link v2 driver for Windows - is there another option for Mac? If the programmer I bought seems dodgy, I'm fine with investing in a new one if anyone has suggestions on one known to work well. Although the ST-Link doesn't appear to be recognized by any of the computers, the small red LED on the ST-Link is illuminated when it's attached to any computer. I double-checked the plug-in wires between the ST-Link v2 and the Blue Pill, and verified that 3.3v, gnd, clock and IO were all connected correctly. ![]() If I remove the STLink and plug in an Arduino Uno using its USB cable, it works normally on all three computers - it shows up as /dev/cu.usbmodem14201 on the Macs, and on COM3 on the Windows PC. However, the Port menu item is grayed out and can't be selected. The driver install appeared to execute normally, and Device Manager now shows a USB device with name STM32 STLink, reporting "This device is working properly." If I go to Tools > Get Board Info, it says I first must select a port. When the ST-Link v2 was plugged in it didn't show up in Device Manager, so I went to st.com and downloaded the driver package stsw-link009. On the Windows 10 PC, I tried installing Arduino IDE 1.8.19. It doesn't appear as an option in Arduino IDE, and doesn't show up as a device in Terminal in \dev\cu*. Neither computer sees the ST-Link v2 when it's attached to a USB port. On Mac, I've tried installing Arduino IDE 2.0.0 on a 2018 Intel MacBook Pro running macOS 12.6 Monterey, and also on a 2015 Intel MacBook Pro running macOS 10.15.7 Catalina. The STM32 and programmer were bought in this package. Remember, the correct installation of the ST-Link driver is of utmost importance upon obtaining your board.Today I've had problems while trying to install Arduino IDE, configure it for STM32, and communicate with an STM32F103C8T6 connected through an ST-Link v2, trying both on macOS and in Windows 10. In order to communicate with the board over UART, you use the ST-Link Virtual COM Port interface, and your host application or host IDE uses STMicroelectronics STLink dongle interface, which is an interface used for debugging. When your Nucleo board is connected, a COM port will be visible under “Ports,” and the “STMicroelectronics STLink dongle” option will appear in “USB devices” (Figure 8) Upon completion of the installation, click “Finish” (Figure 7).įigure 6. The software will install the WinUSB driver (Figure 6), which is required in order to talk to the ST-Link, and it also installs other drivers.Within it, you’ll find two applications (Figure 4), one for 32-bit and the other for 64-bit systems. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |