Programming cz mini STM32F103ZET6 board with Arduino IDE

All about boards manufactured by ST
Post Reply
r1s8k
Posts: 15
Joined: Tue Mar 10, 2020 7:14 pm
Answers: 1

Programming cz mini STM32F103ZET6 board with Arduino IDE

Post by r1s8k »

Hi,

First this is the board:

Image

I want to post my solution for solving the problem to program this board with Arduino IDE.

First of all, the board has two usb ports, the normal and the rs-232. All the work should be with the one using rs-232.

Second, connecting this board to the PC should have this usb driver issue:

Image

And the solution is in this YouTube tutorial:
https://www.youtube.com/watch?v=m1RTEAo6jRI

Next, follow this YouTube video to flash the bin file containing stmduino bootloader to use the board in Arduino IDE.
https://www.youtube.com/watch?v=KurLFm-90w8&t=190s

After that follow my setting in Arduino IDE:

1. Choose the board type as "Generic STM32F103Z series"
2. In variant option select "STM32F103ZE"
3. Upload method, select "Serial"
4. CPU speed ""72MHz"
5. Optimized "Smallest"
6. Select the required COM port
7. Keep boot1 set to GND
8. Reset the board
9. Then program blink example

I used this sketch:

Code: Select all

#define LED0 PE0
#define LED1 PE2

void setup() {
  pinMode(LED0, OUTPUT);
  pinMode(LED1, OUTPUT);
}

void loop() {
  digitalWrite(LED0, HIGH);
  digitalWrite(LED1, HIGH);
  delay(1000);
  digitalWrite(LED0, LOW);
  digitalWrite(LED1, LOW);
  delay(1000);
}
Post Reply

Return to “STM boards (Discovery, Eval, Nucleo, ...)”