Dear friends.
I bought two $3 STM32 BluePill and one ST-LINK V2 Clone on AliExpress.
After reading and studying about the STM32 technology, I started to practice...
I installed on the PC those aplications:
- STM32 ST-LINK Utility (To flash .HEX and .BIN files)
- STM32CubeMX (To pregenerate projects and define I/Os clock & buses)
- STM32CubeIDE 1.0.2 (To write and compile C programs for the STM32)
So first I made a simple blinking led project with STM32CubeIDE, I had some debugging issues with the ST LINK V2 Clone but I could fix thanks to these informations there:
https://www.eevblog.com/forum/beginners/unexpected-idcode-flashing-bluepill-clone/
After I tried to compile those GRBL STM32 firmwares with STM32CubeIDE and NO PROBLEM, it compiles, it loads BUT... NOT USB/Virutal serial port detected :(
I tried to download the HEX files but... same there... Windows error 43, USB not identificated...
I tired with the arduino USB bootloader, same...
I looked about the 10K resistor error, changed it for a 1.8K SMD, no FIX. I resolded the micro USB conector of the board, NO FIX :(
But, I found a strange firmware there:
https://jeelabs.org/2017/09/enabling-usb-on-a-blue-pill/
I download the BIN located in the part 3 of this page, pass the jumper form 1 to 0, push reset, connect the micro USB and here we go! The bluepill is DETECTED AS "STMicroelectronics Virtual COM Port"!!!
This firmware is the only .BIN I found that have the working USB.
So it isn't an HARDWARE Problem this is a firmware ISSUE...
Here goes a pic of the STM32 of my bluepill. I saw on the web there is a lot of boards with fakes STM... I'm not able to identify an original or a fake. (The pic is in attachement to have a good resolution and see well the engraved characters)
I have these informations about it:
20:32:39 : Device ID:0x410
20:32:39 : Device flash Size : 64KBytes
20:32:39 : Device family :STM32F10xx Medium-density
Question 1 the MAIN QUESTION : I think there is something I'm making BAD or I forgot into my flashing configuration... and I don't have the experience and the sufficient knowledge to find the problem.
Regards
Modify message