T16:58:12 INFO common.c: Flash page at addr: 0x08000c00 erased T16:58:12 INFO common.c: F1xx Medium-density: 20 KiB SRAM, 64 KiB flash in at least 1 KiB pages.įile /home/w/STM32duino-bootloader-PB2.bin md5 checksum: c6e9f747f7812876fde1ed22d3ac913, stlink checksum: 0x0009036f bin file you downloaded at the beginning! Yay! st-flash -reset write ~/STM32duino-bootloader-PB2.bin 0x8000000 Still in the /stlink folder, we can now flash the bluepill with the bootloader and. Sometimes things decide to just work or not work after a bit of use lol If something weird pops up like “unknown” you probably have it not plugged in, wires placed incorrectly, or maybe you just need to unplug & plug it back in. → Here, you can also run a probe command to make sure it’s working correctly. Picture from Getting Started with STM32F103C8T6 Blue Pill | Program with Arduino IDE cd ~/.arduino15/packages/stm32duino/tools/stm32tools/2022.9.26/linuxīefore we start flashing, make sure the BOOT0 pin in high and the BOOT1 pin is low. Depending on the version of things you might have a different folder date than me. The Arduino IDE so rudely assumes we are using Windows, so you need to manually navigate to the linux directory and install the linux version of the package. It has “Maple Mini” in the description.Ĭlicking install adds the stm32duino folder in ~/.arduino15/packages/ STM32dunio. You’ll want to install the “STM32F1xx” by stm32dunio. ![]() In the window that pops up, search for “STM32” Next, go to Tools → Boards → Boards Manager In the “Additional Boards Managers URL” box copy an paste: Once installed, navigate to File → Preferences The arduino section will install the foundation, specifically ~/.arduino15/packages/ arduino15 folder we’re going to create is how we will flash the BluePill without needing the Windows ST-Link Utility. (There was!) STM32dunio Package For Arduino IDE To do this in Linux we could (and I did) try to use a virtual machine, but I decided there must be a better way. ![]() I installed and sure enough, that worked.ĭownload here → Bootloader Flash (Linux)įirst off, the ST-Link Utility is a Windows-based program. Also, according to the website (linked below) you need the 32bit version. I had an issue where the ST-Link Utility would not open, turns out this was due to not having the “Microsoft Visual C++ 2015 Redistributable Update 3 RC” installed. Go to Target → Click on “Program” make sure “reset after programming” is toggled on and click “Start”Ĭtrl + D will safely disconnect the BluePill. Press and hold the “reset” button on the blue pill. In Target → Settings, Make sure “Hardware reset” and “Connect under reset” are set from the drop down manus. Windows Install the ST-Link Utility Driversĭownload here → STSW-LINK009 - ST-LINK, ST-LINK/V2, ST-LINK/V2-1, STLINK-V3 USB driver signed for Windows7, Windows8, Windows10 - STMicroelectronics Install the ST-Link Utility Programmerĭownload here → STSW-LINK004 - STM32 ST-LINK utility - STMicroelectronics Bootloader Flash (Windows) Mv m_star_classic ~/qmk_firmware/keyboardsĮven if you do all the steps correctly, without being in the dialout group you will not have the correct permissions. I put mine in ~/ but if you want it somewhere else, just remember for future commands where you put it. Ubuntu and similar flavors should be the same as what I’m doing. Commands/setup may vary depending on your distro. You will still probably use linux for QMK, but the bootloader is much easier on Windows.įor the guide I put the. ![]() bin file that has the stm32duino bootloader configuration. Whether or not you use Windows or Linux, you will need the. You can order your own, or you can buy the replacement kit from Level1Techs that comes with a pre-flashed BluePill and a PCB with surface mounts ready a for model M.bin Bootloader File
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |