Electronics > Projects, Designs, and Technical Stuff
STM32F103 min system with USB-TTL converter?
<< < (4/10) > >>
MFraylich:
I use "blue pills" STM32F103CB boards for every task an arduino would be used for and am sure that the F103 chips don't need a USB-TTL converter, as the USB on these boards connect directly to the chip. You might need to configure it in the bootloader (I use STM32duino bootloader and this needs to be flashed to the board, instructions on this below if needed).

STM32F103C bootloader and USB fix for STM32duino

    1. Set B0 (right when USB is top) to 1.
    2. Install Flasher from en.flasher-stm32. Available from https://www.st.com/en/development-tools/flasher-stm32.html
    3. Connect the STM to a UART interface with RX of the UART to pin A9 and TX to pin A10.
    4. Use the flasher to add the DFU bootloader in STM32duino-bootloader.
    5. Remove power and move B0 back to 0.
    6. Install the Maple drivers using the bat files from https://github.com/rogerclarkmelbourne/Arduino_STM32
    7. Add http://dan.drown.org/stm32duino/package_STM32duino_index.json to the board manager in preferences.
    8. In Arduino IDE go to boards manager and install Arduino SAM for the Due board to get the correct g++ files.
    9. Connect the board using its USB connector to the PC.
    10. Select STM32F103C and the 128k Flash option and make sure “STM32duino bootloader” is selected as the upload method. At this point the device doesn’t have a port, don’t worry.
    11. Flash a sketch to the board and it will install the full bootloader, the device will now have a port.
    12. Use the board!

Perhaps this will solve the problem.
ajb:
I'm glad you had ground pours, that's good! 


--- Quote from: bjdhjy888 on January 30, 2019, 01:09:13 am ---4. Do I really need to follow the datasheet of FT232 exactly? The schematic I found from the Internet had no other capacitors. Does that mean that schematic is inaccurate? I better follow FT232's datasheet stringently?
--- End quote ---
Definitely favor the datasheet over random examples found on the internet!  The datasheet will tend to be fairly conservative, so while it may cost a little bit more in terms of components and board space, it generally gives you a much better chance of having the part work as expected.  Datasheets are NOT infallible, but on the whole, they're FAR more reliable than random schematics on the internet.  As you gain experience you'll be better able to tell what's really required to get a part to work reliably, which won't always be what the datasheet says, but it will usually be pretty close.

Regarding the picture of that Novatel PCB, the way to do that in Altium is generally to place the copper pour using a polygon, place vias as you like, and then place an object on the solder mask layer to create an opening to expose the copper.  (The mask layers are negative layers, in that any object placed on the layer creates an opening in the mask.)  Altium does have a tool for automatically placing stitching vias, but it's kind of clunky.  For small areas it's just as easy to place the vias manually, perhaps with the aid of the grid or by copying and pasting blocks of them.
bjdhjy888:

--- Quote from: Doctorandus_P on January 30, 2019, 06:51:20 am ---Why do you not simply buy some ST-Link V2's from Ali / Ebay / China?
These cost less than a the FTDI chips and you can not only program the STM32 with it, but you can also use them for debugging.

The hardware of these is also just a STM32 in a nice small aluminum USB stick format. You can pull the aluminimum tube off to look what's inside (and for re-programming etc.).

Unfortunately there are some different variants of these, and not all have the same quality.

Most of these can also be re-flashed with the "black magic probe" firmware to increase their capabilities, but I haven't yet seen a need to dive into this.

--- End quote ---
Thank you for your suggestion.

The reason that I wanted to add my own USB-TTL circuit onto my STM min. system was I think the best way to master electronics is to DIY modules(systems) from scratch. (I did buy them before, including the USB-TTL converter)

I was playing with Arduino and interested in Raspberry Pi, but I realized that despite they are cool platforms with an easy to use IDE and language, I will never fully understand the fundamentals(electronic parts and the C programming language). It's a like good C# programmer may never know what a transistor on an IC is.

I believe that buidling an electronic module from scratch with schematics and then get them manufactured at a PCB factory for further soldering and debugging is the best way to understand them with hands-on experience, though it takes quite a lot of efforts. Just my 2 cents though.
coromonadalix:

--- Quote from: MFraylich on January 30, 2019, 01:33:48 pm ---I use "blue pills" STM32F103CB boards for every task an arduino would be used for and am sure that the F103 chips don't need a USB-TTL converter, as the USB on these boards connect directly to the chip. You might need to configure it in the bootloader (I use STM32duino bootloader and this needs to be flashed to the board, instructions on this below if needed).

STM32F103C bootloader and USB fix for STM32duino

    1. Set B0 (right when USB is top) to 1.
    2. Install Flasher from en.flasher-stm32. Available from https://www.st.com/en/development-tools/flasher-stm32.html
    3. Connect the STM to a UART interface with RX of the UART to pin A9 and TX to pin A10.
    4. Use the flasher to add the DFU bootloader in STM32duino-bootloader.
    5. Remove power and move B0 back to 0.
    6. Install the Maple drivers using the bat files from https://github.com/rogerclarkmelbourne/Arduino_STM32
    7. Add http://dan.drown.org/stm32duino/package_STM32duino_index.json to the board manager in preferences.
    8. In Arduino IDE go to boards manager and install Arduino SAM for the Due board to get the correct g++ files.
    9. Connect the board using its USB connector to the PC.
    10. Select STM32F103C and the 128k Flash option and make sure “STM32duino bootloader” is selected as the upload method. At this point the device doesn’t have a port, don’t worry.
    11. Flash a sketch to the board and it will install the full bootloader, the device will now have a port.
    12. Use the board!

Perhaps this will solve the problem.

--- End quote ---

Be sure r10 is around 1.5 k ohms, there was some connection problems on some computers

Check known issues section :  https://wiki.stm32duino.com/index.php?title=Blue_Pill#Software_installation
bjdhjy888:
I re-drew my schematic from scratch, correcting all my previous mistakes.
Would you please help me review my latest schematic? Thank you so much!
The STM32 min. systems is supposed to blink an LED, with the function of USB-TTL.
Navigation
Message Index
Next page
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod