Close

Getting To Ready To Code

A project log for Electronic Load 3.3V-16V 1A

Electronic load that supports 3.3V-16V at 1A of current. Equipped with keypad, LCD, rotary encoder, STM32 Microcontroller and more!

schwarzrmsuschwarzrmsu 12/12/2019 at 00:340 Comments

Getting started with the software portion of the project proved to be quite difficult.  I had to learn which tools and software to use in order to do so.  Below is a breakdown of my selections along with how you can get started yourself if you wish to use a similar tool chain.

Programming Tool:

I chose the STLINK-V3

https://www.st.com/en/development-tools/stlink-v3set.html

This seems to be a very versitile tool.  I plan on using the following pins to interface with my board:

  1. VCC (3.3V)
  2. CLK
  3. GND
  4. DIO
  5. NRST (Forgot to route, going to need to solder wire to make connection [TP 47])

Choosing an IDE:

Choosing an IDE seemed to be the most difficult decision.  Through a bit of research I decided on using the following tools:

Powering Board:

I simply plugged in a 12V center positive plug pack into the power connector.  You could power up using a current limited supply just in case, but I felt confident so I plugged directly into wall.

You should see the back light on LCD power on:

You should also be able to measure 3.3V on the voltage regulator:

Connecting Board To Programming Tool:

Next I connected the programming tool to my board.  You will need to make the following connections:

  1. VCC (3.3V)
  2. CLK
  3. GND
  4. DIO
  5. NRST (Forgot to route, going to need to solder wire to make connection [TP47])

I plan on switching to the STLINK-V3 main 14 way connector for future revisions in order to simplify the programming tool connections.

Communicating With Microcontroller:

With everything plugged in.  I opened the STM32CubeProgrammer, crossed my fingers and hit connect:

I succesfully connected to the microcontroller which means I am ready to start programming.

Discussions