Printf Debugging & enabling SWO pin in the ST-LINK V2 clone - For STM32 CubeIDE - BluePill

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 41

  • @stiffcookie
    @stiffcookie 7 месяцев назад +2

    Thanks for the video. I got it working too perfectly! I actually had a bit of a nightmare because I decided to use one of the GND pins instead (there's two, so I get to keep SWIM pin - great idea right? Nope!). So I cut the track to the top GND pin and soldered the wire as per the video, went to check the other GND pin to make sure it was still working...nothing! I then realised that the GND pins have a via in the middle of the pads connecting them, so in actual fact I had cut the ground to BOTH GND pins!. So I then had to remove the pin that I wanted to remain GND from the connector so that I could remove the pad it was soldered to (which was now connected to my new SWO pin!). Then insulated the via just in case, put the pin back in and ran new GND from the ground plane on that side. It worked in the end, but I should have bloody just used the SWIM pin instead! hahaha.

  • @ferchuu9
    @ferchuu9 9 месяцев назад

    Thank you!!!! I didn't know I was missing a pin for SWO. Now it works. The soldering is really difficult on a package this tiny, I couldn't solder it without making a short with one contiguous pin. I did take the risk of leaving it like that and it works, so I'll leave it.

  • @arjunchaurasiya5150
    @arjunchaurasiya5150 Год назад +1

    finally it worked on my stm32F103 bluepill with stlink v2 clone, ITM requires SWO output pin to be connected

  • @bobweiram6321
    @bobweiram6321 Год назад +2

    With BlackMagic Probe (BMP) Firmware, this method is now obsolete. In addition to running locally as a remote GDB server, BMP also runs directly on STLink probe and reconfigures the RST and SWIM pin as UART RX/TX. Of course, this means you'll have to flash BMP on your STLink which is easy.

    • @danielagustinmorales5696
      @danielagustinmorales5696 10 месяцев назад

      Thanks, I was wondering if it was necessary for the bmp

    • @manojverma507
      @manojverma507 10 месяцев назад

      hi pls tell me how to install BMP on st link v2 clone

  • @xiuyangzhang6955
    @xiuyangzhang6955 2 года назад +3

    Thank you very much, it helps me to sent message to PC, just use ST link

  • @andreazaffino
    @andreazaffino 2 года назад +2

    Ottima guida, grazie!
    It works like a charm

  • @micha68v
    @micha68v 9 месяцев назад +1

    Thank you! Helped me lot!

  • @JOSIAHINNOV8
    @JOSIAHINNOV8 3 месяца назад

    It was quite helpful, thanks

  • @phongnguyenhung4097
    @phongnguyenhung4097 Год назад

    I have one question that if I don't solder pin 10 to swim pin, I can use printf() on stm32f103c8t6 with stlink ?
    Thank you for your video

  • @TheChrisey
    @TheChrisey 3 года назад +3

    LOL that solder blob just hanging there

    • @marcotrevisanmota5209
      @marcotrevisanmota5209 3 года назад +1

      Haha, I used the wrong wire for the soldering. Anyways it works. That’s the important thing

  • @yasirshahzad3732
    @yasirshahzad3732 2 месяца назад

    int _write(int file, char *ptr, int len)
    {
    /* Implement your write code here, this is used by puts and printf for example */
    int i=0;
    for(i=0 ; i

  • @emrestro
    @emrestro 2 года назад +1

    while we debug, do we have to power up our board? or debugger automatically powers up?

    • @marcotrevisanmota5209
      @marcotrevisanmota5209 2 года назад +1

      If you connect the 3.3V and GND it already powers the board, you should see the schematic. If the board requires to much current, then it's better to only connect the gnd and for the power rely from an external power supply.

  • @vivekanand_dhakane
    @vivekanand_dhakane 3 года назад +2

    Thank you

  • @lehuubaothuan8559
    @lehuubaothuan8559 7 месяцев назад +1

    love u

  • @malkin_laboratory4692
    @malkin_laboratory4692 2 года назад

    tried to use Scanf, made changes in _read, but doesn't work...

  • @جابور
    @جابور Год назад

    how to remove the blue metal cover on it ?

    • @ferchuu9
      @ferchuu9 9 месяцев назад +1

      I suppose you already did this, but for anyone reading, don't pull to the IO pins side. Pull the metal case to the USB plug side and it will easily come out. You can help pushing down in a table with the usb plug facing down.

  • @yvanpearson7024
    @yvanpearson7024 3 года назад +2

    thanks

  • @EmbeddedEnigma
    @EmbeddedEnigma 3 года назад +1

    while soldering the wire to pin on stlink I fucked it up badly, my hands were shaking so much that all the pins on stlink got attached together due to solder and now my stlink is not working XD. I have order 2 other stlinks V2 to test on them but can u give me anytips how to solder wire on IC pin so I don't fuck it up again ?

    • @marcomotaelectronics3134
      @marcomotaelectronics3134  3 года назад

      hey, some suggestions is to use flux, a hot soldering iron (above 400degrees celsius) and to preheat the pin for a few seconds before applying the wire with solder.
      Also you could use a desoldering copper braid or. desoldering air pump.
      Hope it helped a bit.
      also remember to cut the track, if no you will make aa short circuit.

    • @EmbeddedEnigma
      @EmbeddedEnigma 3 года назад +1

      Yes cutting the track is not a issue only issue is when i try to solder the wire to ic the other pins also get connected

    • @EmbeddedEnigma
      @EmbeddedEnigma 3 года назад

      My hands are shaky as hell

    • @marcotrevisanmota5209
      @marcotrevisanmota5209 3 года назад +1

      ​@@EmbeddedEnigma yes maybe first do some tests in another board that you dont need wich uses really small ICs so you get practice.

    • @xiuyangzhang6955
      @xiuyangzhang6955 2 года назад +1

      It's really difficult to weld such small wires together. It's even more difficult without welding experience, but there are ways to repair them. You can use a soldering iron to stick away the excess solder, or use a tin suction belt to suck away the excess solder. Search RUclips for soldering tips and so on. Or try holding the wire with your fingers so that it just touches the corresponding pin. At the same time, gently touch the soldering iron at the connection and hold it with a force point. It's better for two people, one to take the wire and one to weld. It's much easier. Remember to check whether there is a short circuit after welding. Of course, it's ok if there is a short circuit. If the welding is not firm, you can stick it with a piece of tape to prevent it from being torn. That's what I did.

  • @aherte1257
    @aherte1257 2 года назад

    guys, advice for you don't try to solder st link because it always be fucked up.

    • @marcomotaelectronics3134
      @marcomotaelectronics3134  2 года назад

      mine works fine, what problem did you encounter?

    • @aherte1257
      @aherte1257 2 года назад

      @@marcomotaelectronics3134 i could not solder the pin and i broke the pcb

    • @stiffcookie
      @stiffcookie 7 месяцев назад

      @@aherte1257 well I think the only problem is you need to improve your soldering skills before trying this :)

  • @10bokaj
    @10bokaj 2 года назад +1

    HMMM, just saying that you don't need to do any of that. IT WORKS OUT OF THE BOX....

    • @marcotrevisanmota5209
      @marcotrevisanmota5209 2 года назад

      maybe its a new model. The swim model for this pin didn't work. Because it was made to work also with stm8 microcontrollers

    • @stiffcookie
      @stiffcookie 7 месяцев назад

      No, it doesn't