Skip to main content
Visitor II
September 30, 2020
Solved

How to program/flash STEVAL-BLUEMIC-1

  • September 30, 2020
  • 2 replies
  • 2526 views

How do I flash the STEVAL-BLUEMIC-1 board? The STEVAL-BLUEMIC-1 board came with a 5 pin SWD programming cable. What does this interface with? Is there an ST Link tool that connects to the SWD cable and a USB port on a computer?

    This topic has been closed for replies.
    Best answer by Eleon BORLINI

    Hi @SHack.1​ ,

    you are right, the 5 pin JTAG /SWD cable has to be interfaced with an ST Link programming tool. For example, the STLINK-V3 debugger has a direct connection for this cable. If you don't have this tool, you can use any NUCLEO board, which is equipped of the SWD termination.

    In both cases, the suggested interface for the programming is the STM32CubeProgrammer.

    -Eleon

    2 replies

    ST Employee
    October 1, 2020

    Hi @SHack.1​ ,

    you are right, the 5 pin JTAG /SWD cable has to be interfaced with an ST Link programming tool. For example, the STLINK-V3 debugger has a direct connection for this cable. If you don't have this tool, you can use any NUCLEO board, which is equipped of the SWD termination.

    In both cases, the suggested interface for the programming is the STM32CubeProgrammer.

    -Eleon

    SHack.1Author
    Visitor II
    October 1, 2020

    Thank you so much for your quick response. I will purchase the STLINK-V3 debugger.

    SHack.1Author
    Visitor II
    October 16, 2020

    @Eleon BORLINI​ 

    I have connected the STEVAL-BLUEMIC-1 board to the STLINK-V3 debugger using the SWD cable (see below).

    0693W000004K5rfQAC.jpg 

    I am using the STM32CubeProgrammer software. I updated the firmware on the STLINK-V3, and the power light is green and the COM light is red on the STLINK-V3. The STEVAL-BLUEMIC-1 board is powered on. When I click the "Connect" button, I get the following error.

     0693W000004K61VQAS.jpg 

    How can I resolve this error?

    ST Employee
    October 19, 2020

    Hi @SHack.1​ ,

    Uhm... I have some question for you:

    • Can you check the voltage on the T_VCC pin? And did you disconnect the Li-ion battery before running the upload?
    • Can you please also check that the SWD cable is connected in the right orientation?
    • Did you do the full chip erase before the firmware upgrade?

    -Eleon

    SHack.1Author
    Visitor II
    October 19, 2020

    Hi @Eleon BORLINI​ 

    • I tried to connect to the BLUEMIC board with and without the Li-Ion battery. Below are my error logs and the value of T_VCC for each case.
      • BLUEMIC with battery connected and powered On
        • T_VCC=2.19V
        • Error log: 0693W000004KI9MQAW.png

    • BLUEMIC with battery connected and powered Off
      • T_VCC = 0V
      • Error log: 0693W000004KI9bQAG.png
    • BLUEMIC connected without the battery
      • T_VCC = 0.001V
      • Error log: 0693W000004KI9gQAG.png

    • The SWD cable is connected in the right orientation. The CLK, GND, and DIO pins on both the BLUEMIC board and STLINK board are connected.
    • By full chip erase, do you mean on the STLINKV3 board or on the BLUEMIC board? I did not erase anything on either boards.

    Here is a screenshot of what the STM32CubeProgrammer looks like. 0693W000004KIBDQA4.png