![]() So now I just want to upload with STLINK, but I can't do that either. Am I just doomed to have to use the ST-Link to do code uploads? I might add that I have spent around 6-8 hours trying to figure this out on my own, so I have searched pretty much everything on Google and read anything I thought might be pertinent, so advice would be much appreciated. When I attempt to re-install the drivers, Windows tells me the 'best driver for your device is already installed' and 'Windows has determined the driver software for your device is up to date'.Ĭan anyone tell me what is going on. However I get the attached (screenshot) error when attempting to upload from the Arduino IDE. Under ports in device manager I get 'USB Serial Device (COM7)' with no error. Under ports in device manager I get 'USB Serial Device (COM7)' with an error 'This device cannot start. Under USB Controllers I get 'Unknown USB Device (Device Descriptor Request Failed). Below are three things that happen seemingly randomly when I connecting to USB. Now I get extremely strange inconsistencies when connecting the board to my Windows 10 圆4 Intel PC. I had no luck flashing the USB bootloader with a cheap USB to TTL but I was able to connect with an ST-Link and successfully flashed the generic_boot20_pc13.bin file. ![]() Anyway I thought I would purchase a couple maple mini boards from eBay. otherwise it will use the old file from memory.I am completely new to Arduino, although I have some experience flashing STM32 chips (I was able to fix an F4 flight controller and a Matek Sys video transmitter with burned out STM32 chips). When the flashing finishes the LED should be blink according to our program! When you update the bin file, you should close the already opened file in ST-LINK Utility. It should flash the Blue Pill with the given bin file. (set it to 0 side after flashing)īrowse the project.bin file in Debug folder.Ĭheck the Reset after programming check box. If you get any errors, put the BOOT0 jumper to 1 side. Set Mode to Normal and Reset Mode to Software System Reset. If you do want to power from the USB, then first disconnect the 3.3V from the ST-LINK. Example do not plug in the USB on the Blue Pill when 3.3V from the ST-LINK is connected. Warning: Never power the Blue Pill from more than one source. (Pushing the usb port by finger will remove the cover.) Jumpers on Blue Pill should be set to zero side. Remove the metal cover and compare it with the labels on PCB. Some dongles may have incorrect pin out specifications. We will use this file to flash our board using ST Link utility.Ĭonnect ST-Link v2 (clone) into the Blue Pill according to the pinout as specified on the dongle. It will create your project.bin file in Debug folder. ![]() Go to Project menu and then press Build All. To blink the default LED, put following code within the while loop. You can add new code within the USER CODE BEGIN and USER CODE END comment blocks. Go to Project menu and then press Generate Code.Ĭore->Src->main.c is your main source file. Go to Clock Configuration tab and the configure it according to the following image. Go to System view and then press GPIO blue button. Go to Pinout view and then left click on PC13 pin. Click on SYS and then set Debug to Serial Wire. Click on RCC and then set High Speed Clock(HSE) to Crystal/Ceramic Resonator. Go to Pinout & Configuration tab and then click on System Core. Click Next and then press Finish.ĭouble click on your project.ioc file. Enter the project name and browse a folder to save the project. Start STM32CubeIDE and create a new STM32 project. Download and install STM32CubeIDE and ST-LINK Utility.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |