2/20/2024 0 Comments Windows 10 stm32 stlink driverThe Getting-Started article then said to go to the Tools > Port menu to select the board's serial port, which should appear on a Mac as something like /dev/tty.usbmodem-1511. I chose Generic STM32F0 series as the board type. I went down the list of instructions in the Getting-Started wiki article above, and verified that the installations of Arduino IDE, the board files, and STM32CubeProgrammer were normal. To keep things simple, I'll just discuss the Mac in this post. I'm still seeing issues while testing on both the Mac and the Windows PC. Thanks, I wish I'd seen the Getting-Started wiki article earlier. Preferably, review this manual as this is the original source. 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. It also withstands voltages of up to 2500 VRMS.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 addition to providing the same functionalities as the ST-LINK/V2, the ST-LINK/V2-ISOL features digital isolation between the PC and the target application board. It supports all the features of ST-LINK plus some additional featuresĪt the same price. STM32 applications use the USB full speed interface to communicate with Atollic, IAR, Keil, TASKING, etc, integrated development environments. STM8 applications use the USB full speed interface to communicate with STMicroelectronic’s ST Visual Develop ( STVD) or ST Visual Program ( STVP) software. The single wire interface module ( SWIM) and JTAG and Serial Wire Debugging ( SWD) interfaces are used to communicate with any STM8 or STM32 microcontroller located on an application board. The ST-LINK/V2 is an in-circuit debugger and programmer for the STM8 and STM32 microcontroller families.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |