Plug in the USB-TTL module to PC after installing the CP2102 driver USB-TTL module built on CP2102 is used for this purpose. This post is related to USB uploading on to an Arduino core Bluepill.įirmware (.bin file) for bootloader can be flashed only through UART1 of STM32 To enable USB uploading we need to flash a bootloader. By default Bluepill modules are not shipped with boot loader. Its also possible to upload code through USB port of STM32. Thanks again Jim and good luck to all with these low cost Blue Pill boards.In the previous post we explored the ways of uploading code on to STM32 using UART1 & Serial Wire Interface. If anyone succeeds in using the STMduino bootloader, please leave the information required to make it work on these crippled Blue Pills using an STM32F103FEBK6 instead of the STM32F103C8T6. I providing this information to confirm the existence of improperly manufactured Blue Pill boards and to help other users with similar problems. I got the Blink on PC13 to work from Arduino, but could not get the STMduino boutloader to work on these chip (the generic_boot20_pc13.binis probably incorrectly built for the STM32F103FEBK6) but load the Blink.ino using the builtin bootloader (with boot0 jumper at 1). With your help, I can now at least reuse these improperly manufactured Blue Pill. Thanks a lot for your information on the fake STM32F103C8T6 which is really a relabelled STM32F103FEBK6. _data_size=10240įor jtag_c6.ld I copied the jtag_c8.ld modified the following text to: With your modified board.txt and ldscript_c6.ld, I could create a board.txt and jtag_c6.ld files to be placed in my Arduino install location: C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1 (for board.txt) and C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1 (for jtag_c6.ld). The supplier refunded my purchase when I advised hime that the incorrect STM32 chip was used to assemble their Blue Pill. The devices came from the following supplier. The chip package surface was also rough and appeared to have been remarked as a STM32F103C8T6. Hi Jim, I also received in December 2018 3 BluePill with the wrong Flash and 10KB RAM with the same ST-Link Device ID and Flash and RAM information. This one is 64K and seems to program and work just fine. Received another Blue Pill board from a eBay seller today. You should see a new 32kbyte entry under Flash Memory Size. Load Arduino editor, choose Board as “Generic STM32F103 Series”. To make these 32kbyte boards work with Arduino, download the above linker script and place it in (xxxxx is your windows user name)Ĭ:\Users\xxxxx\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.4.0\variants\BLUEPILL_F103C8\ĭownloads updated boards.txt with new 32kbyte entry and place it inĬ:\Users\xxxxx\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.4.0\ I couldn’t even get the simple Arduino blink program to run until I changed the stm32 linker script for 32kbyte flash and 10kbyte ram. – Flash : Up to 32KiB (size first sector: 4×1024) – RAM : Up to 10KiB (512b reserved by bootloader) This is the Arduino stm32flash programming response when connected to the board.ĭevice ID : 0x0412 (STM32F10xxx Low-density) The ebay seller did eventually refunded my purchase. I created a user on the forum but they they don’t allow new users to post. Here is a thread at that has more info on this issue. My guess is they relabeled STM32f103c6 chips as STM32f103c8.ģ2Kbyte chip version. Slightly different looking text is used from my older C8 64kbyte board version. Upon inspecting the top chip label, looks like it may have been erased and new laser marking has been put on. C8 versions have 64kbyte flash with 20kbyte ram. Looked up the STM32f103 datasheet and the C6 version is 32kbyte flash with 10kbyte ram. Connected my older dev board and the version is “medium density” 64kbyte with device ID 0x0410. Connected st-link and the chip version comes up as “low density” 32kbyte with device ID 0x0412 on both boards. Received two new STM32f103c8t6 “Blue Pill” boards from ebay yesterday.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |